[CentOS] Mail from domain problem
John R Pierce
pierce at hogranch.com
Tue Feb 24 08:19:08 UTC 2009
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.
More information about the CentOS
mailing list