* Julian Cowley <jul...@lava.net>:
> Hello,
> 
> I would like to block a particular user who is authenticated using
> SASL from sending mail.  Is there a way to do this?

Where do you keep this users credentials? Disable the auth account.

> 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?

-- 
All technical questions asked privately will be automatically answered on the
list and archived for public access unless privacy is explicitely required and
justified.

saslfinger (debugging SMTP AUTH):
<http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>

Reply via email to