* punit jain <contactpunitj...@gmail.com>: > > > /^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! > > How do we make sure this only applies to outgoing messages and doesnot ffect > incoming ?
Well, it doesn't work anyway, so why bother :) ? Maybe you should rather check the envelope recipient and then use smtpd_restriction_classes, like here: http://www.arschkrebs.de/postfix/postfix_restriction_classes.shtml http://www.arschkrebs.de/postfix/postfix_restriction_classes2.shtml http://www.arschkrebs.de/postfix/postfix_restriction_classes3_en.shtml -- 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