Jaroslaw Rafa: > Dnia 12.08.2022 o godz. 13:23:25 Dominik George pisze: > > > > now that I have moved alias expansion to a socketmap service, I was > > wondering what would be best for policy checks (for now, as simple as > > "is address A allowed to send to address B?). > > > > This os obviously possible using the milter, but then there is > > Postfix' SMTP Access Policy Delegation. > > > > When would I choose one over the other? > > By the way: does anybody know of a tool ready to use with Postfix, that > does exactly this and only this, ie. allows to define sender/recipient pairs > that are (with "default deny") or aren't (with "default allow") allowed to > send mail to each other?
Long ago Jozsef Kadlecsik wrote code that concatenated a sender and recipient address, and that used the result as an access table lookup key. It was part of a collection of patches some of which have been adopted. https://www.kfki.hu/~kadlec/sw/postfix_patch.html Wietse