How To Restrict SASL Login/Access

 # Open smtpd_sender_restrictions.cf

su - zimbra

vi /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf 

Add check_sasl_access lmdb:/opt/zimbra/conf/sasl_access above permit_sasl_authenticated. Please see example below


permit_mynetworks

check_sasl_access lmdb:/opt/zimbra/conf/sasl_access

permit_sasl_authenticated


# Save and create sasl_access

vi /opt/zimbra/conf/sasl_access

please fill it as follows


user1 REJECT Sorry, you cannot use SMTP for now

user1@imanudin.net REJECT Sorry, you cannot use SMTP for now

Note : You can change REJECT with HOLD or DISCARD. If using REJECT, all email from that user will be rejected and user getting error “Sorry, you cannot use SMTP for now”


# Save and postmap

postmap /opt/zimbra/conf/sasl_access



Ref: https://imanudin.net/2018/06/13/zimbra-tips-how-to-restrict-sasl-login-access/

Comments

Popular posts from this blog

Disabling Zimbra's AntiSpam, Amavis and AntiVirus filtering

Cambium cnPilot E400/E410/E500 Configuration Tutorial

Error "Unable to retrive Zimbra GPG key for package validation"