VR a écrit :
> Having read postfix.org/regexp_table.5.html, I'm experimenting to stop
> junk mail to common system accounts with
> check_recipient_access regexp:/etc/postfix/reject_by_recipient_regexp
> 
> and trying to learn how to craft regexp's. I've tried many iterations
> similar to:
> /^To: man@/ REJECT  or  /^To: m...@mydomain\.tld/ REJECT

there's no "To: " in a recipient address. don't confuse with headers.

simply use a hash table (cdb if you can):
[email protected]               REJECT

if you want regex/pcre, be as precise as you can. start with

/^...@mydomain\.tld$/   REJECT

you don't want to accidentally reject mail for [email protected], nor
[email protected].


> [snip]

Reply via email to