Exim ipv6 localhost relay

Freddy

Verified User
Joined
Apr 14, 2016
Messages
41
So I enabled IPv6 for Exim and I want to start sending email from PHPmailer through localhost. But Exim refuses to relay because the IPv6 localhost is not on the whitelist.

The log says:
Code:
2018-07-11 11:59:08 H=localhost (mail.myhost.nl) [::1] F=<sender@myhost.nl> rejected RCPT <recipient@gmail.com>: authentication required
My Exim conf currently has the following line which works fine for IPv4.
Code:
hostlist relay_hosts=net-lsearch;/etc/virtual/pophosts : 127.0.0.1
I think that line needs to be something like this to work for IPv6.
Code:
hostlist relay_hosts=net-lsearch;/etc/virtual/pophosts : 127.0.0.1 : ::1
But that doens't work because of the :: in the IP address which is also a seperator for the configuration.

So how to whitelist IPv6 localhost relay?
 

dave097

Verified User
Joined
May 8, 2014
Messages
113
Do you want to add these one to your configuration file:

hostlist relay_hosts=net-lsearch;/etc/virtual/pophosts : 127.0.0.1 : ::::1
 
Top