Prev: How did I get this [Sender address rejected: User unknown in virtual alias table] and how do I get rid of it?
Next: Postfix 2.3.15 RPM package and no SASL support
From: Henrik K on 17 Sep 2009 01:06 On Wed, Sep 16, 2009 at 07:53:51AM -0600, LuKreme wrote: > On 16-Sep-2009, at 05:28, Laurence Moughan wrote: >> postmap -q "boarding" regexp:/etc/postfix/headerchecks >> >> This comes back with nothing - i thought it might coma back with a >> match ? > >> /^From:(.*)boarding_pc\@domain\.com/ REJECT junk >> /^From:(*)boarding(*)\@adomain\.com/ REJECT junk >> /^From: *boarding*\@domain\.com/ REJECT junk >> /^From: (.*)boarding(.)*\@domain\.com/ REJECT junk > > Your regex all require an '@domain\.com. > > First, change them to one line as Martijn suggested: > > /^From: .*boarding.*\@domain\.com$/ REJECT junk > > Note the $ at the end of the match, that is quite important. > > then > > postmap -q "boarding(a)doamin.com" regexp:/etc/postfix/headerchecks Naturally that won't match, since regex has start anchored. postmap -q "From: boarding(a)domain.com" regexp:/etc/postfix/headerchecks |