POSTFIX how to block/delete mail from sender...
Hi,
I recently receive a lot of junk mail from these two email address: Blupill@cw69.com hallegrene@sm66.com My question is: can I setup postfix auto delete all mail from these 2 address? If yes, how to do that? Thanks |
One way is to use procmail as a backend mail processor to postfix, then tell procmail to delete all mail from these two accounts.
|
|
cat regexp_table
/^From: "MS / REJECT /^From: "microsoft/ REJECT /^From: "Microsoft/ REJECT /^Blupill@cw69.com/ REJECT /^hallegrene@sm66.com/ REJECT main.cf header_checks = regexp:/etc/postfix/regexp_table pcre:/etc/postfix/regexp_table |
I'm recently frequently getting bad traffic to/from the same user such as
to: user@example.com from: user@example.com Is it possible to reject an email based on a sender AND recipient? From what I've got from the man page, the decisions are only based on one line at a time. If that's the case, what are my options? |
See the regexp_table examples above.
It shows the contents of the file. To: can also be used. The main.cf file is where you define the file to use for header checks. |
All times are GMT -5. The time now is 09:33 AM. |