Re: setting up mail and/or sendmail to use third party SMTP gateway.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 06 February 2008 14:46:24 Paul Lemmons wrote:
> That is the easiest way. The "better" way is to edit the file:
> /etc/mail/sendmail.mc and find:
>
> dnl # be sent out through an external mail server:
> dnl #
> dnl define(`SMART_HOST', `smtp.your.provider')dnl
> dnl #
>
> and change it to:
>
> define(`SMART_HOST', `mail.mydomain.com')dnl

It's also useful to understand that sendmail will attempt to find the
MX host for that name if it is specified as above.  This can be the
correct behavior, but more often you want to specify

    define(`SMART_HOST', `[mail.mydomain.com]')dnl

to suppress that MX lookup and just use the A record of that host.

-- 
Garry T. Williams --- +1 678 656-4579


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux