Re: [EXIM] Recurrent problem with exim and fetchmail.

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Rob Browning
CC: exim-users
Subject: Re: [EXIM] Recurrent problem with exim and fetchmail.
On 14 Apr 1998, Rob Browning wrote:

>
> Recently, I don't know why, I have received mail from a couple of
> different sources with completely screwed up domains. Each time it's
> been something like <foo@.somehost.bar>. Needless to say, when
> fetchmail hands this to exim's SMTP listener it balks, and then
> fetchmail dies, refusing to get any more messages.
>
> This effectively leaves me with no way to get more mail until I go and
> edit my mailbox to fix the offending From address. I'm sure there's a
> better way to handle this, but I'm not sure what it is. Is there some
> way I should reconfigure exim or fetchmail to
> skip/delete/bounce/ignore these messages?


I'm afraid that I feel this is really a fetchmail problem. Nevertheless,
Exim 1.90 has a feature whereby you can apply a special rewriting rule
to incoming SMTP addresses before anything else is done to them. You
could use this to rewrite <foo@.somehost.bar> to <foo@???> I
suppose, to paper over this particular mess. Something like

^([^@]+)@\.(.*)$ $1@$2 S


-- 
Philip Hazel                   University Computing Service,
ph10@???             New Museums Site, Cambridge CB2 3QG,
P.Hazel@???          England.  Phone: +44 1223 334714



--
*** Exim information can be found at http://www.exim.org/ ***