I receive once in a while mail pretending to come from my own domain.
Are there people who figured out a filter rule or a condition to put into
smtpd.conf to block those kind of mail ?
table legalto file:/etc/mail/legal-rcpt-to
match !auth from any for any mail-from <legalto> reject
match from any for any rcpt-to <legalto> action "relay2Mailbox"
match auth from any for any action "relay2Internet"
In my case /etc/mail/legal-rcpt-to contains a list of all my email
addresses. But you could also just enter @yourdomain.example.com