TLS error on connection from (localhost.localdomain) [172.17.0.2]

The script was not an option for me. Exim is custom installed and working with dozens of different domain names and using the script would have put files in all sorts of wrong places and changed configurations in various ways that would have broken my server.

Instead what I did was:

#edit /etc/hosts
172.17.0.2      localhost.localdomain marketers.coop

then

#added to my dns
mail._domain...TXT "v=DKIM1; k=rsa; p={my rsa key}"
_domainkeyTXT "t=y; o=~;"
_dmarcTXT "v=DMARC1; p=none"
@TXT "v=spf1 a mx ip4:172.17.0.2 ~all"
@MX10 172.17.0.2.
imap A 172.17.0.2
pop A 172.17.0.2
smtp A 172.17.0.2

then

ls -s /etc/exim4/domains/localhost.localdomain /path/to/my/domain/exim_files

finally

#edit containers/app.yml
DISCOURSE_SMTP_ENABLE_START_TLS: false

After all the above steps were done it started working (and yes I did try TLS false from the start but it still failed with auth denied from 172.17.0.2)

Happy to say, my mails are now being delivered from the script.