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_...@domain\.com/ REJECT junk
/^From:(*)boarding(*)\...@adomain\.com/ REJECT junk
/^From: *boardin...@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 "board...@doamin.com" regexp:/etc/postfix/headerchecks
Also, be sure and test anything like this very carefully. You might
even consider running it with a WARN instead of REJECT for a time.
I would recommend that instead of 'junk' you have a longer
description, even if it is only "Boarding Junk", but "Suspicious user
name BOARDING not allowed" is probably better.
--
Instant karma's going to get you!