Facing an issue with exim, that it doesn’t send any mails to certain SMTP server’s like gmail etc?
First place to check is the
/var/log/exim_mainlog and see if you can spot something like this
You can see that exim is trying to send outgoing emails via IPv6 . It happens if the recipient server supports it, ( gmail supports it ) as a result mail delivery gets affected or the mails reach junk/spam folder.
If IPv6 delivery is not intended and DNS records for the same are not configured, then the recipient SMTP server would not be able to obtain a reverse DNS entry of the sending IP ( IP in IPv6 ) and as a result it affects the mail delivery.
To get around this, either configure your IPv6 DNS entries or just force exim to send mails only via IPv4 by adding the below line to the exim config file (
disable_ipv6 = true
Finally restart exim.