by wintpe » Oct 2nd, '13, 10:35
Dave
I think you need to define smarthost in your /etc/mail/sendmail.mc before you run make, to produce the sendmail.cf
this defines where sendmail connects to as the next hop to send your mail.
this could be a local mailhost or your ISP's
define(`SMART_HOST',`smarthost.example.com')dnl
but that smarthost is defined via an MX record, and therefore become multiple hosts to try
so for example the smarthost for microsoft.com are found with
nslookup
>set q=MX
>microsoft.com
Server:
Address:
Non-authoritative answer:
microsoft.com mail exchanger = 10 microsoft-com.mail.protection.outlook.com.
so in that case microsoft.com would be the smarthost.
also if you only want the host to listen on the locahost address, so that it cant be used as a relay, then add the option
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
in place of the similar one you have
to your sendmail.mc
hope this points you in the right direction.
However also look at postfix, as this makes smtp configuration (IMHO) much easier to grasp
that uses the Transfer map to define the next hop
regards peter
Redhat 6 Certified Engineer (RHCE)
Sometimes my posts will sound short, or snappy, however its realy not my intention to offend, so accept my apologies in advance.