* punit jain <[email protected]>: > Hi, > > I have configured postfix to DISCARD messages with specific To: header using > the rule below : - > > header_checks=pcre:/etc/postfix/header_checks > > cat /etc/postfix/header_checks : > > /^To: (\d)+@test\.com/i DISCARD > > So basically any email sent as [email protected] should be discarded.
No. Any mail containing a TO: header with [email protected] should bei discarded! > /usr/local/amavis/tmp/amavis-20110725T112203-28069: <[email protected]> -> < > [email protected]> SIZE=617 Received: from test.com ([127.0.0.1]) by > localhost (test.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for < > [email protected]>; Mon, 25 Jul 2011 11:22:03 +0530 (IST) This doesn't log the To: header -- 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 [email protected] | http://www.charite.de
