mail sent always relay by 'root@localhost' from sendmailsendmail: SMTP host name lookup failuresendmail - DSN: Name Server host not foundWhy am I seeing double entries in maillog for each email sent?How to configure a real domain name for sender addressHow can I confirm what specific MX priorities SendMail saw when delivering a message?Why are messages queued and not sent with sendmail?SendMail: Connection refused by [127.0.0.1]Why does Sendmail produce “Recipient names must be specified” error?sendmail taking lot of time to send emailFreeBSD: system is sending mail for any user to an external smtp - why?

Security vulnerabilities of POST over SSL

Count all vowels in string

Shorten or merge multiple lines of `&> /dev/null &`

How do I superimpose two math symbols?

How to patch glass cuts in a bicycle tire?

Did 20% of US soldiers in Vietnam use heroin, 95% of whom quit afterwards?

Which European Languages are not Indo-European?

Why did Theresa May offer a vote on a second Brexit referendum?

Drums and punctuation

Why was this character made Grand Maester?

Must a warlock replace spells with new spells of exactly their Pact Magic spell slot level?

Of strange atmospheres - the survivable but unbreathable

Why haven't we yet tried accelerating a space station with people inside to a near light speed?

Does French have the English "short i" vowel?

How to cut a climbing rope?

Can my floppy disk still work without a shutter spring?

USPS Back Room - Trespassing?

Why is the Eisenstein ideal paper so great?

I know that there is a preselected candidate for a position to be filled at my department. What should I do?

What is the meaning of "<&3" and "done < file11 3< file22"

How did NASA Langley end up with the first 737?

Make 24 using exactly three 3s

Is my plasma cannon concept viable?

What was the idiom for something that we take without a doubt?



mail sent always relay by 'root@localhost' from sendmail


sendmail: SMTP host name lookup failuresendmail - DSN: Name Server host not foundWhy am I seeing double entries in maillog for each email sent?How to configure a real domain name for sender addressHow can I confirm what specific MX priorities SendMail saw when delivering a message?Why are messages queued and not sent with sendmail?SendMail: Connection refused by [127.0.0.1]Why does Sendmail produce “Recipient names must be specified” error?sendmail taking lot of time to send emailFreeBSD: system is sending mail for any user to an external smtp - why?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I want to configure local sendmail to work as a MSA and directly submit mail to specified MTA.



ENV:
CentOS 7.2
sendmail-8.14.7-4.el7.x86_64



Configuration:
only modified this line in submit.mc for MTA address (192.168.14.21)



FEATURE(`msp', `[192.168.14.21]')dnl


Run command:



/usr/sbin/sendmail -L sm-msp-queue -Ac -q30m


tried to use 'mail' cmd to send a test email, log was shown as below:



Jan 20 09:13:26 example110 sendmail[24551]: v0K9DQ5U024551: from=root, size=245, class=0, nrcpts=1, msgid=<201701200913.v0K9DQ5U024551@example110.dev.net>, relay=root@localhost
Jan 20 09:13:27 example110 sendmail[24551]: v0K9DQ5U024551: to=jzou@qq.com, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30245, relay=[192.168.14.21] [192.168.14.21], dsn=2.0.0, stat=Sent (Ok: queued as ED1A546CAE)


mail header was shown as below:



Received: from pekdev110.dev.net (PEKdev110.dev.net
[192.168.0.110]) by smtp1.dev.net (Postfix) with ESMTP id ED1A546CAE
for <jzou@qq.com>; Fri, 20 Jan 2017 09:13:26 +0000 (GMT)
Received: (from root@localhost) by pekdev110.dev.net
(8.14.7/8.14.7/Submit) id v0K9DQ5U024551 for jzou@qq.com; Fri, 20 Jan
2017 09:13:26 GMT
From: root <root@pekdev110.dev.net>
Message-ID: <201701200913.v0K9DQ5U024551@pekdev110.dev.net>


any hints would be appreciated.










share|improve this question
























  • You are showing headers and logs, but you aren't explaining what is wrong with these and what you think they should look like. Please explain what you think should be different.

    – Moshe Katz
    Jan 30 '17 at 3:16

















0















I want to configure local sendmail to work as a MSA and directly submit mail to specified MTA.



ENV:
CentOS 7.2
sendmail-8.14.7-4.el7.x86_64



Configuration:
only modified this line in submit.mc for MTA address (192.168.14.21)



FEATURE(`msp', `[192.168.14.21]')dnl


Run command:



/usr/sbin/sendmail -L sm-msp-queue -Ac -q30m


tried to use 'mail' cmd to send a test email, log was shown as below:



Jan 20 09:13:26 example110 sendmail[24551]: v0K9DQ5U024551: from=root, size=245, class=0, nrcpts=1, msgid=<201701200913.v0K9DQ5U024551@example110.dev.net>, relay=root@localhost
Jan 20 09:13:27 example110 sendmail[24551]: v0K9DQ5U024551: to=jzou@qq.com, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30245, relay=[192.168.14.21] [192.168.14.21], dsn=2.0.0, stat=Sent (Ok: queued as ED1A546CAE)


mail header was shown as below:



Received: from pekdev110.dev.net (PEKdev110.dev.net
[192.168.0.110]) by smtp1.dev.net (Postfix) with ESMTP id ED1A546CAE
for <jzou@qq.com>; Fri, 20 Jan 2017 09:13:26 +0000 (GMT)
Received: (from root@localhost) by pekdev110.dev.net
(8.14.7/8.14.7/Submit) id v0K9DQ5U024551 for jzou@qq.com; Fri, 20 Jan
2017 09:13:26 GMT
From: root <root@pekdev110.dev.net>
Message-ID: <201701200913.v0K9DQ5U024551@pekdev110.dev.net>


any hints would be appreciated.










share|improve this question
























  • You are showing headers and logs, but you aren't explaining what is wrong with these and what you think they should look like. Please explain what you think should be different.

    – Moshe Katz
    Jan 30 '17 at 3:16













0












0








0








I want to configure local sendmail to work as a MSA and directly submit mail to specified MTA.



ENV:
CentOS 7.2
sendmail-8.14.7-4.el7.x86_64



Configuration:
only modified this line in submit.mc for MTA address (192.168.14.21)



FEATURE(`msp', `[192.168.14.21]')dnl


Run command:



/usr/sbin/sendmail -L sm-msp-queue -Ac -q30m


tried to use 'mail' cmd to send a test email, log was shown as below:



Jan 20 09:13:26 example110 sendmail[24551]: v0K9DQ5U024551: from=root, size=245, class=0, nrcpts=1, msgid=<201701200913.v0K9DQ5U024551@example110.dev.net>, relay=root@localhost
Jan 20 09:13:27 example110 sendmail[24551]: v0K9DQ5U024551: to=jzou@qq.com, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30245, relay=[192.168.14.21] [192.168.14.21], dsn=2.0.0, stat=Sent (Ok: queued as ED1A546CAE)


mail header was shown as below:



Received: from pekdev110.dev.net (PEKdev110.dev.net
[192.168.0.110]) by smtp1.dev.net (Postfix) with ESMTP id ED1A546CAE
for <jzou@qq.com>; Fri, 20 Jan 2017 09:13:26 +0000 (GMT)
Received: (from root@localhost) by pekdev110.dev.net
(8.14.7/8.14.7/Submit) id v0K9DQ5U024551 for jzou@qq.com; Fri, 20 Jan
2017 09:13:26 GMT
From: root <root@pekdev110.dev.net>
Message-ID: <201701200913.v0K9DQ5U024551@pekdev110.dev.net>


any hints would be appreciated.










share|improve this question
















I want to configure local sendmail to work as a MSA and directly submit mail to specified MTA.



ENV:
CentOS 7.2
sendmail-8.14.7-4.el7.x86_64



Configuration:
only modified this line in submit.mc for MTA address (192.168.14.21)



FEATURE(`msp', `[192.168.14.21]')dnl


Run command:



/usr/sbin/sendmail -L sm-msp-queue -Ac -q30m


tried to use 'mail' cmd to send a test email, log was shown as below:



Jan 20 09:13:26 example110 sendmail[24551]: v0K9DQ5U024551: from=root, size=245, class=0, nrcpts=1, msgid=<201701200913.v0K9DQ5U024551@example110.dev.net>, relay=root@localhost
Jan 20 09:13:27 example110 sendmail[24551]: v0K9DQ5U024551: to=jzou@qq.com, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30245, relay=[192.168.14.21] [192.168.14.21], dsn=2.0.0, stat=Sent (Ok: queued as ED1A546CAE)


mail header was shown as below:



Received: from pekdev110.dev.net (PEKdev110.dev.net
[192.168.0.110]) by smtp1.dev.net (Postfix) with ESMTP id ED1A546CAE
for <jzou@qq.com>; Fri, 20 Jan 2017 09:13:26 +0000 (GMT)
Received: (from root@localhost) by pekdev110.dev.net
(8.14.7/8.14.7/Submit) id v0K9DQ5U024551 for jzou@qq.com; Fri, 20 Jan
2017 09:13:26 GMT
From: root <root@pekdev110.dev.net>
Message-ID: <201701200913.v0K9DQ5U024551@pekdev110.dev.net>


any hints would be appreciated.







sendmail






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 20 '17 at 12:48







matrixzj

















asked Jan 20 '17 at 9:30









matrixzjmatrixzj

11




11












  • You are showing headers and logs, but you aren't explaining what is wrong with these and what you think they should look like. Please explain what you think should be different.

    – Moshe Katz
    Jan 30 '17 at 3:16

















  • You are showing headers and logs, but you aren't explaining what is wrong with these and what you think they should look like. Please explain what you think should be different.

    – Moshe Katz
    Jan 30 '17 at 3:16
















You are showing headers and logs, but you aren't explaining what is wrong with these and what you think they should look like. Please explain what you think should be different.

– Moshe Katz
Jan 30 '17 at 3:16





You are showing headers and logs, but you aren't explaining what is wrong with these and what you think they should look like. Please explain what you think should be different.

– Moshe Katz
Jan 30 '17 at 3:16










1 Answer
1






active

oldest

votes


















0














The solution is found at: http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:Ch21:_Configuring_Linux_Mail_Servers#Using_Sendmail_to_Change_the_Sender.27s_Email_Address



I'll include it here for reference:



With sendmail, you can change both the domain and username on a case-by-case basis using the genericstable feature:



1) Add these statements to your /etc/mail/sendmail.mc file to activate the feature:



FEATURE(`genericstable',`hash -o /etc/mail/genericstable.db')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl


2) Create a /etc/mail/generics-domains file that is just a list of all the domains that should be inspected. Make sure the file includes your server's canonical domain name, which you can obtain using the command:



sendmail -bt -d0.1 </dev/null


Here is a sample /etc/mail/generics-domains file:



my-site.com
another-site.com
bigboy.my-site.com


3) Create your /etc/mail/genericstable file. First sendmail searches the /etc/mail/generics-domains file for a list of domains to reverse map. It then looks at the /etc/mail/genericstable file for an individual email address from a matching domain. The format of the file is



linux-username username@new-domain.com


Your e-mails from linux-username should now appear to come from username@new-domain.com.
Here are some other examples:



alert security-alert@my-site.com
peter urgent-message@my-site.com
apache mailer@my-site.com


To commit these changes, run the script activate-sendmail.sh :



#
# Script: /usr/local/bin/activate-sendmail.sh
#

#!/bin/bash
cd /etc/mail
/usr/bin/make
/usr/bin/newaliases
systemctl restart sendmail.service
systemctl restart spamassassin.service





share|improve this answer























  • sorry, there is misunderstanding for my questions. i did not want to sender address. what i want is to submit emails directly to MTA configured and not relay with root@localhost

    – matrixzj
    Jan 20 '17 at 12:37











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f827491%2fmail-sent-always-relay-by-rootlocalhost-from-sendmail%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














The solution is found at: http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:Ch21:_Configuring_Linux_Mail_Servers#Using_Sendmail_to_Change_the_Sender.27s_Email_Address



I'll include it here for reference:



With sendmail, you can change both the domain and username on a case-by-case basis using the genericstable feature:



1) Add these statements to your /etc/mail/sendmail.mc file to activate the feature:



FEATURE(`genericstable',`hash -o /etc/mail/genericstable.db')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl


2) Create a /etc/mail/generics-domains file that is just a list of all the domains that should be inspected. Make sure the file includes your server's canonical domain name, which you can obtain using the command:



sendmail -bt -d0.1 </dev/null


Here is a sample /etc/mail/generics-domains file:



my-site.com
another-site.com
bigboy.my-site.com


3) Create your /etc/mail/genericstable file. First sendmail searches the /etc/mail/generics-domains file for a list of domains to reverse map. It then looks at the /etc/mail/genericstable file for an individual email address from a matching domain. The format of the file is



linux-username username@new-domain.com


Your e-mails from linux-username should now appear to come from username@new-domain.com.
Here are some other examples:



alert security-alert@my-site.com
peter urgent-message@my-site.com
apache mailer@my-site.com


To commit these changes, run the script activate-sendmail.sh :



#
# Script: /usr/local/bin/activate-sendmail.sh
#

#!/bin/bash
cd /etc/mail
/usr/bin/make
/usr/bin/newaliases
systemctl restart sendmail.service
systemctl restart spamassassin.service





share|improve this answer























  • sorry, there is misunderstanding for my questions. i did not want to sender address. what i want is to submit emails directly to MTA configured and not relay with root@localhost

    – matrixzj
    Jan 20 '17 at 12:37















0














The solution is found at: http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:Ch21:_Configuring_Linux_Mail_Servers#Using_Sendmail_to_Change_the_Sender.27s_Email_Address



I'll include it here for reference:



With sendmail, you can change both the domain and username on a case-by-case basis using the genericstable feature:



1) Add these statements to your /etc/mail/sendmail.mc file to activate the feature:



FEATURE(`genericstable',`hash -o /etc/mail/genericstable.db')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl


2) Create a /etc/mail/generics-domains file that is just a list of all the domains that should be inspected. Make sure the file includes your server's canonical domain name, which you can obtain using the command:



sendmail -bt -d0.1 </dev/null


Here is a sample /etc/mail/generics-domains file:



my-site.com
another-site.com
bigboy.my-site.com


3) Create your /etc/mail/genericstable file. First sendmail searches the /etc/mail/generics-domains file for a list of domains to reverse map. It then looks at the /etc/mail/genericstable file for an individual email address from a matching domain. The format of the file is



linux-username username@new-domain.com


Your e-mails from linux-username should now appear to come from username@new-domain.com.
Here are some other examples:



alert security-alert@my-site.com
peter urgent-message@my-site.com
apache mailer@my-site.com


To commit these changes, run the script activate-sendmail.sh :



#
# Script: /usr/local/bin/activate-sendmail.sh
#

#!/bin/bash
cd /etc/mail
/usr/bin/make
/usr/bin/newaliases
systemctl restart sendmail.service
systemctl restart spamassassin.service





share|improve this answer























  • sorry, there is misunderstanding for my questions. i did not want to sender address. what i want is to submit emails directly to MTA configured and not relay with root@localhost

    – matrixzj
    Jan 20 '17 at 12:37













0












0








0







The solution is found at: http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:Ch21:_Configuring_Linux_Mail_Servers#Using_Sendmail_to_Change_the_Sender.27s_Email_Address



I'll include it here for reference:



With sendmail, you can change both the domain and username on a case-by-case basis using the genericstable feature:



1) Add these statements to your /etc/mail/sendmail.mc file to activate the feature:



FEATURE(`genericstable',`hash -o /etc/mail/genericstable.db')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl


2) Create a /etc/mail/generics-domains file that is just a list of all the domains that should be inspected. Make sure the file includes your server's canonical domain name, which you can obtain using the command:



sendmail -bt -d0.1 </dev/null


Here is a sample /etc/mail/generics-domains file:



my-site.com
another-site.com
bigboy.my-site.com


3) Create your /etc/mail/genericstable file. First sendmail searches the /etc/mail/generics-domains file for a list of domains to reverse map. It then looks at the /etc/mail/genericstable file for an individual email address from a matching domain. The format of the file is



linux-username username@new-domain.com


Your e-mails from linux-username should now appear to come from username@new-domain.com.
Here are some other examples:



alert security-alert@my-site.com
peter urgent-message@my-site.com
apache mailer@my-site.com


To commit these changes, run the script activate-sendmail.sh :



#
# Script: /usr/local/bin/activate-sendmail.sh
#

#!/bin/bash
cd /etc/mail
/usr/bin/make
/usr/bin/newaliases
systemctl restart sendmail.service
systemctl restart spamassassin.service





share|improve this answer













The solution is found at: http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:Ch21:_Configuring_Linux_Mail_Servers#Using_Sendmail_to_Change_the_Sender.27s_Email_Address



I'll include it here for reference:



With sendmail, you can change both the domain and username on a case-by-case basis using the genericstable feature:



1) Add these statements to your /etc/mail/sendmail.mc file to activate the feature:



FEATURE(`genericstable',`hash -o /etc/mail/genericstable.db')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl


2) Create a /etc/mail/generics-domains file that is just a list of all the domains that should be inspected. Make sure the file includes your server's canonical domain name, which you can obtain using the command:



sendmail -bt -d0.1 </dev/null


Here is a sample /etc/mail/generics-domains file:



my-site.com
another-site.com
bigboy.my-site.com


3) Create your /etc/mail/genericstable file. First sendmail searches the /etc/mail/generics-domains file for a list of domains to reverse map. It then looks at the /etc/mail/genericstable file for an individual email address from a matching domain. The format of the file is



linux-username username@new-domain.com


Your e-mails from linux-username should now appear to come from username@new-domain.com.
Here are some other examples:



alert security-alert@my-site.com
peter urgent-message@my-site.com
apache mailer@my-site.com


To commit these changes, run the script activate-sendmail.sh :



#
# Script: /usr/local/bin/activate-sendmail.sh
#

#!/bin/bash
cd /etc/mail
/usr/bin/make
/usr/bin/newaliases
systemctl restart sendmail.service
systemctl restart spamassassin.service






share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 20 '17 at 10:59









siiiirsiiiir

11




11












  • sorry, there is misunderstanding for my questions. i did not want to sender address. what i want is to submit emails directly to MTA configured and not relay with root@localhost

    – matrixzj
    Jan 20 '17 at 12:37

















  • sorry, there is misunderstanding for my questions. i did not want to sender address. what i want is to submit emails directly to MTA configured and not relay with root@localhost

    – matrixzj
    Jan 20 '17 at 12:37
















sorry, there is misunderstanding for my questions. i did not want to sender address. what i want is to submit emails directly to MTA configured and not relay with root@localhost

– matrixzj
Jan 20 '17 at 12:37





sorry, there is misunderstanding for my questions. i did not want to sender address. what i want is to submit emails directly to MTA configured and not relay with root@localhost

– matrixzj
Jan 20 '17 at 12:37

















draft saved

draft discarded
















































Thanks for contributing an answer to Server Fault!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f827491%2fmail-sent-always-relay-by-rootlocalhost-from-sendmail%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company