* punit jain <contactpunitj...@gmail.com>: > 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 num...@test.com should be discarded.
No. Any mail containing a TO: header with numb...@test.com should bei discarded! > /usr/local/amavis/tmp/amavis-20110725T112203-28069: <ad...@test.com> -> < > 919923600...@test.com> 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 < > 919923600...@test.com>; 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 ralf.hildebra...@charite.de | http://www.charite.de