Agreed. Why would you want to discard my emails? :( Is there something wrong with having an email named admin?
On 11/13/2013 10:01 AM, Noel Jones wrote: > On 11/13/2013 2:34 AM, naser sonbaty wrote: >> Hi, >> >> I need help with postfix regexp in header_checks. >> I want discard all emails(any domain) from admin@ >> >> I use following: >> /^(To|From|Cc|Reply-To): admin@(.*)/ DISCARD >> >> but its not working >> >> thx for help > > > WARNING: This looks like a really bad idea. Use at your own risk. > In particular, discarding mail should be a last resort, especially > for a broad expression like this. > > Anyway, this should match better: > /^(To|From|Cc|Reply-To): .*[" <]admin@/ DISCARD > > > > -- Noel Jones >