Re: [exim] Odd delivery failure msg

Page principale
Supprimer ce message
Répondre à ce message
Auteur: John Horne
Date:  
À: Exim users
Sujet: Re: [exim] Odd delivery failure msg
On Sat, 2009-09-26 at 22:32 +0100, John Horne wrote:
> On Sat, 2009-09-26 at 23:12 +0200, Heiko Schlittermann wrote:
> > Hello John,
> >
> > John Horne <john.horne@???> (Sa 26 Sep 2009 22:39:37 CEST):
> > > Hello,
> > >
> > > Received this a couple of times in our mailhub logs today:
> > >
> > >    2009-09-26 04:00:10 1MrNW6-0006xp-K0 failed to
> > >    open //your.greetingwiz.com/E-Greetings.exe"@saturne.pearl-online.com
> > >    when checking
> > > ""google.comhttp://your.greetingwiz.com/E-Greetings.exe"@saturne.pearl-online.com":
> > >    No such file or directory

> >
> > Do you try to open some files (for lookups/searches) based on
> > $local_part, $domain, $sender_address* in your ACL checks?
> >
> No. We do file lookups, but the file that is looked up is not based on
> any part of the address (local part, domain etc).
>
> Given that the log message says 'open //your' without the 'http:' part,
> I am assuming that it is failing during some 'match' which is using
> expecting a colon-separated list. So it is seeing 'google.comhttp' and
> then '//your.greeting...' as a different item.
>

Okay, after more debugging I found the problem. Our config has an 'or'
condition containing:

    {match_address {${address:$h_To:}} {${address:$h_From:}} }


This is the only instance where the From: header (in fact any header) is
used as a list, rather than an item to be looked up in a list. The
debugging shows:

============================================================
23:38:14 15209 expanding: $h_To:
23:38:14 15209    result: jhorne@???
23:38:14 15209 expanding: ${address:$h_To:}
23:38:14 15209    result: jhorne@???
23:38:14 15209 expanding: $h_From:
23:38:14 15209    result:
"google.comhttp://your.greetingwiz.com/E-Greetings.exe"@saturne.pearl-online.com
23:38:14 15209 expanding: ${address:$h_From:}
23:38:14 15209    result:
"google.comhttp://your.greetingwiz.com/E-Greetings.exe"@saturne.pearl-online.com
23:38:14 15209 address match: subject=jhorne@???
pattern="google.comhttp
23:38:14 15209 plymouth.ac.uk in ""google.comhttp"? no (end of list)
23:38:14 15209 LOG: MAIN PANIC DIE
23:38:14 15209   failed to
open //your.greetingwiz.com/E-Greetings.exe"@saturne.pearl-online.com
when checking
""google.comhttp://your.greetingwiz.com/E-Greetings.exe"@saturne.pearl-online.com": No such file or directory
23:38:14 15209 SMTP>> 421 Unexpected failure, please try later
============================================================


As can be seen the From: address gets treated as two items.




John.

-- 
John Horne, University of Plymouth, UK
Tel: +44 (0)1752 587287    Fax: +44 (0)1752 587001