Re: How to write the rule to avoid spam

2023-04-05 Thread Thomas Bohl
Thank you for your answer. However it doesn't work because "from domain..." is an invalid syntax I personally use this: table legalto file:/etc/mail/legal-rcpt-to match !auth from any for any mail-from reject # cat /etc/mail/legal-rcpt-to @mx.example.com m...@mydomain2.org

Re: How to write the rule to avoid spam

2023-04-05 Thread Mik J
Hello Thomas, Thank you for your answer.However it doesn't work because "from domain..." is an invalid syntax Le mercredi 5 avril 2023 à 11:33:09 UTC+2, Thomas Bohl a écrit : Hello, > So I would tend to write a rule such as > match ! from domain for domain action TO-CLAM_SMTPD_IN

Re: How to write the rule to avoid spam

2023-04-05 Thread Thomas Bohl
Hello, So I would tend to write a rule such as match ! from domain for domain action TO-CLAM_SMTPD_IN Considering that users that write from mydomain2.org to mydomain1.org match the first rule since they are local or authenticated or coming from one of the known IPs. But this rule is not