On Saturday 20 November 2010 02:40:26 mouss wrote:
> Le 18/11/2010 10:15, Ralf Hildebrandt a écrit :
> > * J. Roeleveld<jo...@antarean.org>:
> >> Hi All,
> >> 
> >> I've been having issues where emails are being rejected by Cyrus because
> >> the "From" address contains an underscore in the domain name.
> > 
> > Envelope or header?
> > 
> >> Example address: u...@lists_example.org
> >> 
> >> What I am looking for is a way to parse email addresses and replace all
> >> underscores to dashes, eg. the following:
> >> 
> >> u...@lists_example.org ->  u...@lists-example.org
> > 
> > sender_canonical_maps regexp:/etc/postfix/cyrus_sucks
> > 
> > with /etc/postfix/cyrus_sucks containing something like:
> > 
> > /^(.*)_(.*)$/  $1-$2
> 
> that's too something and not enough
> - it will rewrite john_...@example.com.
> 
> - it won't fix j...@lis_ts_exa_mp_le_com
> 
> /(.*)_([^@)*/ $1-$2
> helps a little, but not much.

There is only 1 email address causing issues, eg. am only rewriting that 
specific one.

> better reject the address and let the sender fix his ratware...

That is the default behaviour, unfortunately, I am using fetchmail to get the 
emails out of a mailbox elsewhere and injecting that into postfix.
If postfix rejects the email, it tries to send the bounce out via the relay 
smtp-server (which rejects the address) and I end up with error messages on my 
side.
At least this way, I can still see the list-messages from this individual.

I don't have a guaranteed fixed IP-address which is a requirement for having 
the MX-records point to my server directly.

--
Joost

Reply via email to