Configure exim4 MTA for smarthost

1 minute read Modified:

Smarthost mail sending via exim4 on a Debian system.

Configure a Debian system to send all mails through a smarthost with SMTP authentication.

Start exim4 configuration:

dpkg-reconfigure exim4-config

Select smarthost, no local delivery. Leave all the defaults, enter address of SMTP server as smarthost when asked.

Configure SMTP authentication in /etc/exim4/passwd.client:

mailserveraddress:login:password

Restart exim4:

/etc/init.d/exim4 restart