I recive lot of email that are trash it, I wannt to block them, for example *@domain.com, and this configuration is distributed to all the mail in my server. I use Centos 4.4 with ISPConfig. Thanks a lot.
You can do this in /etc/postfix/restrictions 1) add in the file restrictions (it's in /etc/postfix/) the following Code: domain.com REJECT anotherdomain.com REJECT 2) Now run Code: postmap /etc/postfix/restrictions 3) Now reload Postfix with Code: postfix reload After this any email from domain.com and anotherdomain.com will be rejected. Please note that everytime when you add, or remove a domain from restrictions, you WILL need to do step 2 and 3 again!
yes you can, but in that case you will need to add the following to /etc/postfix/main.cf smtpd_sender_restrictions = hash:/etc/postfix/restrictions You will need to restart postfix again after this!
Ok, I do it. If i wannt to restrict a email, ex. [email protected]. Can I add to file restrictions????.
I see that many email have diferent domine name, but in the body of the message have a many same words, how can I create a rule for restrict email with the same body and/or subject???. For example, subject: VIAGRA
I could already make work the Header_checks, but the Body_checks I have not been able to. They could help me giving me a simple example: For example, Body: "Sale of Software", thank you.
But in the header_checks, put for example: I write "/^Subject:.*viagra*/ REJECT", if you see "Subject". But how need to write for say "Body"??? "/^Body:.*viagra*/ REJECT" ????