Disabling outgoing mail delivery over IPv6

spacecabbie

Verified User
Joined
Oct 11, 2019
Messages
149
Location
The Netherlands
So we know the issue about gmail and ipv6
host gmail-smtp-in.l.google.com [2a00:1450:400c:c07::1a]
SMTP error from remote mail server after pipelined end of data:
550-5.7.1 [2a01:4f8:1c17:426e::1] Our system has detected that this message does
550-5.7.1 not meet IPv6 sending guidelines regarding PTR records and
550-5.7.1 authentication. Please review
550-5.7.1 https://support.google.com/mail/?p=IPv6AuthError for more information
550 5.7.1 . f15si4065602wrg.98 - gsmtp

Now the recommendation is to set disable_ipv6=true

But its also possible to prefent sending via ipv6 see here.
I have tried this in my exim.conf:
lookuphost_forward_router:
driver = dnslookup
domains = ! +local_domains
ignore_target_hosts = 127.0.0.0/8 : 0::0/0
condition = ${if !eq{$original_domain}{$domain}}
condition = ${if !eq{$original_domain}{}}
condition = "${perl{check_limits}}"
transport = remote_smtp_forward_transport
no_more

lookuphost:
driver = dnslookup
domains = ! +local_domains
ignore_target_hosts = 127.0.0.0/8 : 0::0/0
condition = "${perl{check_limits}}"
transport = remote_smtp
no_more

It din't work does any one know why ? Also how would i add this the proper way? (via routers.pre.conf)
 
don't think too much, just add this to lookuphost.
Code:
ipv4_only = true
 
don't think too much, just add this to lookuphost.
Code:
ipv4_only = true
Oh thats a good one as wel but also found out it was the syntax for ipv6 ius has to be like:
ignore_target_hosts = <; 127.0.0.0/8 ; 0::0/0 not ignore_target_hosts = 127.0.0.0/8 : 0::0/0
Still like to know how to do this via exim.routers.pre.conf
if i add it there it says dublicated drivers
 
So we know the issue about gmail and ipv6
Which issue? What I see in that error notice that only the rDNS/PTR record is missing for ipv6.
You can create that at your datacenter or where you got your vps/server from and do the same as with the ipv4. Just point it to your FQDN hostname.
And then there is no issue anymore. Not needed to do any kind of complicated things with exim.conf or something like that.

At least if you mean sending mail from your server to gmail.
 
Back
Top