* 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

> 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.

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | http://www.charite.de
            

Reply via email to