Restricting Users to Send Emails Locally and Externally
We, sometimes, need to block users to send emails both the internal and external destinations. For example, you are running an email account for receiving CVs only. However, you don’t have to reply them from this account. All the feedback email is maintained from another account. In that case, you may block the user to send emails. It will not impact in email receiving status. Please follow below guideline to achieve our goal. Goal: Restricting users to send emails to all internal and external domains. Resolution: Step 1: Open the file smtpd_sender_restrictions.cf and add the below line at the top. root@mail:~# vim /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf %%contains VAR:zimbraMtaSmtpdSenderRestrictions check_sender_access lmdb:/opt/zimbra/common/conf/restricted_senders%% Step 2: Execute the below line as Zimbra user. zimbra@mail:~$ zmprov ms `zmhostname` +zimbraMtaSmtpdSenderRestrictions "check_sender_access lmdb:/opt/zimbra/common/con...