On 2020-10-07 16:28, Dominic Raferd wrote:
On Wed, 7 Oct 2020 at 14:04, Vieri Di Paola <[email protected]>
wrote:
On Wed, Oct 7, 2020 at 2:34 PM Tom Sommer <[email protected]> wrote:
>
> So SASL user "[email protected]" would be able to send only from
> "@example.com".
This would force sasl-authed user "me" to only send from
[email protected] or [email protected].
You can change the regex to allow from @domain instead.
If, for authenticated users, you also want to enforce an *exact match*
between the Envelope Sender and the mail address in the 'From:'
header, this is offered by the milter at
https://github.com/magcks/milterfrom (but I have not tested it).
Not a bad idea to write a policy_service for this, should be rather
simple to do (If there is no built-in solution)
---
Tom