On 13/03/2024 08:37, SeraphJACK wrote:
I am wondering is there any solution to reject submissions whose sender name does not match the authenticated username?

I think you are looking for this:
listen on [...] senders <users> masquerade

As stated in smtpd.conf:
  Look up the authenticated user in the users mapping table to find
  the email addresses that user is allowed to submit mail as. In
  addition, if the masquerade option is provided, the From header is
  rewritten to match the sender provided in the SMTP session.


Rodolphe Bréard
B229 CCD5 6900 91E7 D5D6  189F 09BC 23A1 D556 2635

Reply via email to