Sendmail Smart_Host Configuration


Table of Contents

Sendmail Smart Host 
Problems sending mail to SMTP Server 
Problems sending mail to SMTP Server 
sendmail.mc request 
How to use different auth for smarthost 
How to use different auth for smarthost 
User name and domain rewriting for Verizon 

Sendmail Smart Host 

To: NetBSD netbsd-help mailing list <netbsd-help@netbsd.org>
Date: 03/24/2004
> How do I configure a Smart Host in Sendmail ? (that means that all outgoing
> emails are going to another mailserver)

You can configure a smart host by changing the 'DS' entry in sendmail.cf. My smart host is called orthanc, so my /etc/mail/sendmail.cf contains the line:

DSorthanc

However, it's probably better to generate the sendmail.cf from an mc file in /usr/share/sendmail/cf:

copy the netbsd-proto.mc file:

cp netbsd-proto.mc mydomain.mc

add the smart host line:

define(`SMART_HOST', mysmarthost)dnl

build the cf file with:

make mydomain.cf

backup original cf:

mv /etc/mail/sendmail.cf /etc/mail/sendmail.cf.dist

copy new cf:

mv mydomain.cf /etc/mail/sendmail.cf.dist

restart sendmail:

/etc/rc.d/sendmail restart

Julian Coleman @coris.org.uk

documented on: 2007.12.21