setting up mail and/or sendmail to use third party SMTP gateway.
Garry T. Williams
gtwilliams at gmail.com
Sat Feb 9 14:35:19 UTC 2008
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
More information about the fedora-list
mailing list