[CentOS] Mail from domain problem
Xia Guowen
xiagw at 51poi.com
Tue Feb 24 08:38:21 UTC 2009
Thanks for the information,
I have tried, but still "hostname" not "domain"
# cd /etc/mail
# grep MASQUERADE senmail.mc
MASQUERADE_AS(`domain11.com')
# make
# service sendmail restart
# echo test | mail -s "test mail" someone at domain22.com
# tailf /var/log/maillog
Feb 24 15:56:44 centos4 sendmail[5742]: n1O7uigw005742: from=<root at centos4.domain11.com>, size=378, class=0, nrcpts=1, msgid=<200902240756.n1O7uiuZ005741 at centos4.domain11.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
regards
----- Original Message -----
From: "John R Pierce" <pierce at hogranch.com>
To: "CentOS mailing list" <centos at centos.org>
Sent: Tuesday, February 24, 2009 4:19 PM
Subject: Re: [CentOS] Mail from domain problem
> Xia Guowen wrote:
>> But, I shutdown Kerio and config MTA = sendmail.
>> Then
>> # service sendmail start
>> # hostname
>> mail.domain11.com
>> # echo "test " | mail -s "test mail" someone at domain22.com
>>
>>
>> I received is root at mail.domain11.com
>>
>
>
> with sendmail, you need to set some configuration options to masquerade
> the host if you want locally submitted mail to be 'from' the domain name.
>
> typically, in /etc/mail/sendmail.mc, the line...
>
> MASQUERADE_AS(`mydomain.com')
>
> then run `make` in that directory. for this to work correctly, you
> need to install the sendmail-cf package
>
> with any other mail client, its similar.
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
More information about the CentOS
mailing list