Hi, On Thu, Apr 17, 2025 at 4:09 PM Wietse Venema via Postfix-users < postfix-users@postfix.org> wrote:
> Alex via Postfix-users: > > For multi-criteria rules use an smtpd_milters milter-regex plugin. > > >> > > >> Example: > > >> > > >> /etc/postfix/main.cf: > > >> smtpd_milters = inet:127.0.0.1:9999 > > >> > > >> /etc/mail/milter-regex.conf: > > >> reject > > >> header /From/ /^user@baddom\.tld$/i and envrcpt /@example\.com$/i > > > > > It looks like this is the place to start? > > https://github.com/milter-regex/milter-regex/tree/main > > There appear to be Debian and Redhat style packages. > Some months ago, I was investigating rejecting senders based on individual recipients. I'm now wondering if this can be done with check_recipient_access, like this: smtpd_recipient_restrictions = ... check_recipient_access hash:/etc/postfix/check_recip_access, /etc/postfix/check_recip_access: mysqlstud...@gmail.com re...@example.com REJECT Sender blocked for this recipient This would be much simpler, but would it work? In my basic testing, it seems to be completely ignored, but I wanted to be sure. Thanks, Alex
_______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org