I want my Exim 4 MTA to use another
host as SmartHost.
The remote SmartHost requires
authentication, but on port 25.
The procedure is to
- Disable direct delivery by looking up MX DNS record (dnslookup section)
- Enable SmartHosting (by telling it to use remote_msa transport)
- Ajusting remote SMTP settings (remote_msa section)
- Setup client authentication
To achieve this, the configuration
should be (yes, you comment the whole section):
#dnslookup: # driver = dnslookup # domains = ! +local_domains # transport = remote_smtp # ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 # no_more
Then
smarthost: driver = manualroute domains = ! +local_domains transport = remote_msa route_data = the.name.of.remote.smtp no_more
Then
remote_msa: driver = smtp port = 25 hosts_require_auth = *
Finally
client_auth: driver = plaintext public_name = LOGIN client_send = : test : P@ssw0rd
Note that the default Exim
configuration suggests CRAM-MD5 authentication method, but my example
gives you how to LOGIN.
I took my inspiration from Exim
authentication recipes.