Restrict account from sending emails to all domains

Revision as of 12:48, 9 June 2016 by Teodor Vizirov (talk | contribs) (Created page with "=Restrict account from sending emails to all domains= {{KB|{{ZC}}|{{ZCS 8.6}}|{{ZCS 8.5}}|{{ZCS 8.0}}|}} ==Problem== <br /> How to restrict a single account from sending ema...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Restrict account from sending emails to all domains

   KB 22722        Last updated on 2016-06-9  

(0 votes)


How to restrict a single account from sending emails to all domains.



1) Specify the account for which the restriction is applied.

echo " restrict_sender" > /opt/zimbra/postfix/conf/restict_senders 
Note: If you would like to restrict all users of a domain, enter the domainname instead of email ids. For example:            restrict_sender


postmap restrict_senders 

3) Create a blank file in which no domain name is specified.

touch restrict_recipients 


postmap restrict_recipients 

5) In the file /opt/zimbra/conf/, find the "SECTION mta DEPENDS amavis", and enter the following before the "RESTART mta" line:

vi /opt/zimbra/conf/

Enter the lines

POSTCONF smtpd_restriction_classes restrict_sender 
POSTCONF restrict_sender FILE 
echo "check_recipient_access lmdb:/opt/zimbra/conf/sender_recipients, reject" >> 

6) Enter the line below at the top of the file.

vim /opt/zimbra/conf/zmconfigd/ 
check_sender_access lmdb:/opt/zimbra/conf/restrict_senders 


vim /opt/zimbra/postfix/conf/ 

Enter these two lines

smtpd_restriction_classes = restrict_sender 
restrict_senderl = check_recipient_access lmdb:/opt/zimbra/conf/sender_recipients, reject 


cd /opt/zimbra/conf 
echo "check_recipient_access lmdb:/opt/zimbra/conf/sender_recipients, reject" >> 


zmmtactl restart 

Additional Information

Verified Against: Zimbra Collaboration 8.6, 8.5, 8.0 Date Created: 06/07/2016
Article ID: Date Modified: 2016-06-09

Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Wiki/KB reviewed by SME1 SME2 COPY EDITOR Last edit by Teodor Vizirov
Jump to: navigation, search