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 <legalto> reject


# cat /etc/mail/legal-rcpt-to
@mx.example.com
m...@mydomain2.org
foo...@mydomain2.org
bar...@mydomain2.org


My file lists all existing email addresses. But you don't have to list them all. You could just list your domains like this:
@exmaple.com
@mydomain1.org
@mydomain2.org


Reply via email to