From: Rudy Gevaert on 11 Jun 2010 05:55 Dear list, It recently came to my attention that our canonical rewriting had stopped working. Further inspection led me to the information on the site that default behaviour was changed in Postfix 2.2. Fine no problem, I should have seen it. As this is already couple of years ago and nobody noticed it, it's a big deal :). Rewriting is partially happening again. the recipient from and sender is rewritten. However, I can't remember if in the past the To/From headers in the body of the email are rewritten too? Now it doesn't seem to happen anymore. Did it actually work in the past? :) smtp1:/etc/smtp# postconf | grep canonical canonical_classes = envelope_sender, envelope_recipient, header_sender, header_recipient canonical_maps = propagate_unmatched_extensions = canonical, virtual proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $sender_bcc_maps $recipient_bcc_maps $smtp_generic_maps $lmtp_generic_maps $smtpd_client_restrictions $smtpd_recipient_restrictions $smtpd_helo_restrictions $smtpd_sender_restrictions recipient_canonical_classes = envelope_recipient, header_recipient recipient_canonical_maps = proxy:ldap:/etc/smtp/maps/maprecipient.cfg sender_canonical_classes = envelope_sender, header_sender sender_canonical_maps = proxy:ldap:/etc/smtp/maps/mapsender.cfg Thanks in advance, Rudy
From: Wietse Venema on 11 Jun 2010 07:22 Rudy Gevaert: > Dear list, > > It recently came to my attention that our canonical rewriting had > stopped working. > > Further inspection led me to the information on the site that default > behaviour was changed in Postfix 2.2. Fine no problem, I should have > seen it. As this is already couple of years ago and nobody noticed it, > it's a big deal :). > > Rewriting is partially happening again. the recipient from and sender > is rewritten. > > However, I can't remember if in the past the To/From headers in the body > of the email are rewritten too? Now it doesn't seem to happen anymore. > Did it actually work in the past? :) http://www.postfix.org/postconf.5.html#local_header_rewrite_clients http://www.postfix.org/postconf.5.html#remote_header_rewrite_domain Wietse
From: "Rudy Gevaert" on 11 Jun 2010 09:21 Quoting "Wietse Venema" <wietse(a)porcupine.org>: > Rudy Gevaert: >> Dear list, >> >> It recently came to my attention that our canonical rewriting had >> stopped working. >> >> Further inspection led me to the information on the site that default >> behaviour was changed in Postfix 2.2. Fine no problem, I should have >> seen it. As this is already couple of years ago and nobody noticed it, >> it's a big deal :). >> >> Rewriting is partially happening again. the recipient from and sender >> is rewritten. >> >> However, I can't remember if in the past the To/From headers in the body >> of the email are rewritten too? Now it doesn't seem to happen anymore. >> Did it actually work in the past? :) > > http://www.postfix.org/postconf.5.html#local_header_rewrite_clients > http://www.postfix.org/postconf.5.html#remote_header_rewrite_domain > > Wietse > Hi Wietse, Sorry I forgot one important part in my post: local_header_rewrite_clients = permit_mynetworks smtp1:~# postconf mynetworks mynetworks = 127.0.0.1 157.193.0.0/16 172.16.0.0/16 In my case rewriting from mynetworks works for for the envelopts but **not** for the headers. Thanks in advance! -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Rudy Gevaert e-mail: Rudy.Gevaert(a)UGent.be Directie ICT, Afdeling Infrastructuur Groep Systemen tel: +32 9 264 4750 Universiteit Gent fax: +32 9 264 4994 Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
From: Wietse Venema on 11 Jun 2010 09:31 Rudy Gevaert: > Quoting "Wietse Venema" <wietse(a)porcupine.org>: > > > Rudy Gevaert: > >> Dear list, > >> > >> It recently came to my attention that our canonical rewriting had > >> stopped working. > >> > >> Further inspection led me to the information on the site that default > >> behaviour was changed in Postfix 2.2. Fine no problem, I should have > >> seen it. As this is already couple of years ago and nobody noticed it, > >> it's a big deal :). > >> > >> Rewriting is partially happening again. the recipient from and sender > >> is rewritten. > >> > >> However, I can't remember if in the past the To/From headers in the body > >> of the email are rewritten too? Now it doesn't seem to happen anymore. > >> Did it actually work in the past? :) > > > > http://www.postfix.org/postconf.5.html#local_header_rewrite_clients > > http://www.postfix.org/postconf.5.html#remote_header_rewrite_domain > > > > Wietse > > > > Hi Wietse, > > Sorry I forgot one important part in my post: > > local_header_rewrite_clients = permit_mynetworks > smtp1:~# postconf mynetworks > mynetworks = 127.0.0.1 157.193.0.0/16 172.16.0.0/16 > > > In my case rewriting from mynetworks works for for the envelopts but > **not** for the headers. I'll consider looking into this after I see one posting with: - postconf -n output. - Configuration parameters (-o name=value) in master.cf. - ALL the header lines of one mis-handled email message. - What those header lines should have looked like. Wietse
From: Rudy Gevaert on 14 Jun 2010 04:28
Dear Wietse, Please find below and in attachment the necessary information. On 06/11/2010 03:31 PM, Wietse Venema wrote: > I'll consider looking into this after I see one posting with: > > - postconf -n output. Please see attachment > - Configuration parameters (-o name=value) in master.cf. Please see attachment Info from the map: smtp1:~# postmap -q rgevaert(a)xchange.ugent.be proxy:ldap:/etc/smtp/maps/mapsender.cfg rudy.gevaert(a)ugent.be > - ALL the header lines of one mis-handled email message. This is my test email: rgevaert(a)pimp:~$ telnet smtp1.ugent.be 25 Trying 157.193.71.182... Connected to smtp1.ugent.be. Escape character is '^]'. 220 smtp.ugent.be ESMTP Postfix (Debian/GNU) helo pimp.ugent.be 250 smtp1.UGent.be mail from:<rgevaert(a)xchange.ugent.be> 250 2.1.0 Ok rcpt to:<rudy.gevaert(a)ugent.be> 250 2.1.5 Ok data 354 End data with <CR><LF>.<CR><LF> From: rgevaert(a)xchange.ugent.be Subject: test t .. 250 2.0.0 Ok: queued as 0AF583F681D quit 221 2.0.0 Bye Connection closed by foreign host. The email how it arrived: Return-Path: <rudy.gevaert(a)ugent.be> Received: from smtp1.UGent.be (smtp1.ugent.be [157.193.71.182]) by mail1.ugent.be (Cyrus v2.3.12p2) with LMTPA; Mon, 14 Jun 2010 10:24:48 +0200 X-Sieve: CMU Sieve 2.3 Received: from localhost (mcheck2.ugent.be [157.193.49.249]) by smtp1.UGent.be (Postfix) with ESMTP id AF5A53F6770 for <rudy.gevaert(a)ugent.be>; Mon, 14 Jun 2010 10:24:48 +0200 (CEST) X-Virus-Scanned: by UGent DICT Received: from smtp1.UGent.be ([157.193.71.182]) by localhost (mcheck2.ugent.be [157.193.43.11]) (amavisd-new, port 10024) with ESMTP id u0KEHcO8yKeh for <rudy.gevaert(a)ugent.be>; Mon, 14 Jun 2010 10:24:48 +0200 (CEST) Received: from pimp.ugent.be (pimp.ugent.be [157.193.44.68]) by smtp1.UGent.be (Postfix) with SMTP id 0AF583F681D for <rudy.gevaert(a)ugent.be>; Mon, 14 Jun 2010 10:24:20 +0200 (CEST) From: rgevaert(a)xchange.ugent.be Subject: test Message-Id: <20100614082428.0AF583F681D(a)smtp1.UGent.be> Date: Mon, 14 Jun 2010 10:24:20 +0200 (CEST) To: undisclosed-recipients:; X-Miltered: at mcheck2 with ID 4C15E727.001 by Joe's j-chkmail (http://helpdesk.ugent.be/email/)! X-j-chkmail-Enveloppe: 4C15E727.001/157.193.44.68/pimp.ugent.be/pimp.ugent.be/<rgevaert(a)xchange.ugent.be> X-j-chkmail-Score: MSGID : 4C15E727.001 on smtp1.UGent.be : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000 X-j-chkmail-Status: Ham t -> envelop from is rewritten, like it should > - What those header lines should have looked like. I thought it would be: From: rudy.gevaert(a)ugent.be Thanks in advance! Rudy |