Hello,

I would like to block a particular user who is authenticated using
SASL from sending mail.  Is there a way to do this?

I found one way to do it, but it is not perfect.  I can block the
the email address of that user (the one they normally use) using
smtpd_sender_login_maps.  This doesn't prevent them from using another
email address, however.

smtpd_recipient_restrictions =
    ...
    reject_sender_login_mismatch
    ...

smtpd_sender_login_maps = regexp:/path/sender_login_map

sender_login_map:

/^u...@example\.com$/   unmatchable_string_SLDKFJNSDFLKJSDNFSKSDLFJN

The unmatchable string is because I want the entry to exist for that
email address, but I don't want to list any string that could be
matched as a SASL username.

Is this the right approach or have I missed something entirely?

Reply via email to