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

Reply via email to