Been using Exim a long time. Never setup TLS before however.
I think I have it configured, but need to test that it can SEND OUTBOUND only email using TLS to a mail server. The server does not receive inbound email.
As a test, as a mail server (not a client) how do I deliver email to gmail via a TLS connection so that messages bound to email@example.com are authenticated as a server, not as a user.
I have defined a router like:
GMAIL_ROUTER: driver = manualroute domains = gmail.com transport = TLS_SMTP route_list = * smtp.gmail.com::587 no_more
And a transport like:
TLS_SMTP: driver = smtp hosts_require_tls = *
But when it connects, I get:
2016-04-05 09:52:28 1anU0O-0004S4-Op ** firstname.lastname@example.org R=GMAIL_ROUTER T=TLS_SMTP: SMTP error from remote mail server after MAIL FROM:<email@example.com> SIZE=1349: host gmail-smtp-msa.l.google.com [22.214.171.124]: 530-5.5.1 Authentication Required. Learn more at\n530 5.5.1 https://support.google.com/mail/answer/14257 w62sm48080410pfa.79 - gsmtp
The error seems to suggest that I need to authenticate as a user, but this is a mail server, just trying to delivery email to a gmail.com user.
Is there a configuration to allow the mail server to authenticate using TLS without a client account??
Main goal is that we will be smart hosting all email to O365 soon, but that is not setup yet for me to test.