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.
better reject the address and let the sender fix his ratware...
PS. I have contacted the domain admins where these are coming from, but I'm
not convinced the user is actually using their smtp-server for outbound
emails.
You can see that in the headers.