Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

send email over IPv6 and exim logs 'Failed to expand return path'

Update: I have discovered that if I turn off BATV in the SMTP-AntiSpam settings the email is then delivered to the destination.

I have been setting up an internal mail server to relay email to the SMTP relay and then to the Internet.

If I manually connect to the SMTP relay using 'telnet host 25' where host is an IPv4 address and issue SMTP commands to create an email destined for a yahoo email address the email is accepted and delivered as expected.

However if I make the same telnet connection but using an IPv6 address the email is accepted but the SMTP log shows the following:

2011:04:29-23:52:25 astaro exim[7854]: 2011-04-29 23:52:25 1QFo6E-000223-2u == d******@yahoo.com.au R=dnslookup T=remote_smtp defer (-1): Failed to expand return path "${if eq{${if and{{!eq{$sender_address}{}}{match_domain{${lc:$sender_address_domain}}{+domains}}{eq{${lookup{${lc:$sender_address_domain}_BATV}nwildlsearch{/etc/exim.conf.profile}}}{1}}{eq{${if or{{match_address{${if eq{${prvscheck {$sender_address}{}{}}}{}{$sender_address}{${prvscheck {$sender_address}{}{}}}}}{+except_batv_senders}}{match_address{${if eq{${prvscheck {$local_part@$domain}{}{}}}{}{$local_part@$domain}{${prvscheck {$local_part@$domain}{}{}}}}}{+except_batv_recipients}}{match_ip{$sender_host_address}{+except_batv_networks}}}{1}{0}}}{0}}}{1}{0}}}{1}{${prvs {$return_path}{UNSET}}}fail}": ".999" is not an IP address inside "or{...}" condition inside "and{...}" condition

This message is then repeated every minute when the SMTP queue is processed and the email is never attempted to be delivered to the destination.

Below is what I did when I connected to the SMTP relay and created the email:

me@lappie:~$ telnet ip6-astaro. 25
Trying 2001:5c0:110c:7602::1...
Connected to ip6-astaro.
Escape character is '^]'.
220 ip6-astaro ESMTP ready.
helo mx.darrentoussaint.com
250 ip6-astaro Hello mx.darrentoussaint.com [2001:5c0:110c:7602:226:8ff:fee7:76dd]
mail from: tester@darrentoussaint.com
250 OK
rcpt to: d***x@yahoo.com.au
250 Accepted
data
354 Enter message, ending with "." on a line by itself
From: tester@darrentoussaint.com
To: d***x@yahoo.com.au
Subject: test over IP6

test
.
250 OK id=1QFo6E-000223-2u
quit
221 ip6-astaro closing connection
Connection closed by foreign host.
me@lappie:~$ 

The only difference between my tests is that I connect to the SMTP relay via IPv6, over IPv4 and using the exact same commands as above works perfectly, ie email is delivered to the destination as expected.

Have I done something wrong or is this a bug?

Astaro version 8.102


This thread was automatically locked due to age.