Re: [exim] Quotes in address for callout

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Phil Chambers
CC: exim-users
Betreff: Re: [exim] Quotes in address for callout
On Wed, 5 Sep 2007, Phil Chambers wrote:

> I am using exim-4.62.
>
> I have just encountered a problem with callout, using it for sender
> verification.
>
> The address had an apostrophe in the local part, like
>
>    A.N.O'User@???

>
> My logs indicate that the callout actually used
>
>    "A.N.O'User"@???

>
> The quotes are not needed in this context, so were they put in by the callout
> code or is it possible it was my configuration? The callout line in my ACL is
> "accept verify = sender/callout=2m,maxwait=3m,connect=30s".


I have just tried an experiment, using Exim 4.68, and it doesn't behave
the same. I first looked at the code, which didn't look as if it would
do that, and I also looked at the ChangeLog, but couldn't find anything
relevent. My test, telnetting to a daemon with -d, showed this:

mail from:<A.N.O'User@???>
250 OK
rcpt to:<ph10@???>
550-Verification failed for <A.N.O'User@???>
550-Called:   131.111.8.142
550-Sent:     RCPT TO:<A.N.O'User@???>


The daemon's debugging output shows this:

30400 SMTP>> MAIL FROM:<>
30400 waiting for data on socket
30400 read response data: size=8
30400 SMTP<< 250 OK
30400 SMTP>> RCPT TO:<A.N.O'User@???>

The log contained:

2007-09-05 14:39:45 [30348] H=localhost (xoanon) [127.0.0.1]:32884
U=ph10 F=<A.N.O'User@???> rejected RCPT
<ph10@???>: Sender verify failed

As I say, I can't find anything in the ChangeLog that suggests things
might have changed between 4.62 and 4.68.

You might like to do the same test as I did. Run a daemon using -d and,
say, "-X 1225" so that it listens on a different port. Then telnet to it
and see what happens.

-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book