Allow only few users to send mails

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Allow only few users to send mails

Requirement "in a domain there may be a requirement of restricting few users from sending mails (local or public) while allowing other users to send mails" .

Here is how to implement the requirement in zimbra. If using elsewhere please make sure to change the domain.

a) In /opt/zimbra/conf enter following lines in

POSTCONF smtpd_sender_restrictions FILE

b) Modify to add following line to the top of the file: -

check_sender_access hash:/opt/zimbra/conf/sender_acl reject

c) In /opt/zimbra/conf/sender_acl add all the users in the domain:- DUNNO DUNNO REJECT REJECT

d) We need to postmap sender_acl using :-

postmap /opt/zimbra/conf/sender_acl

This creates a hashed db file of users which is referenced every time mail is sent from the domain.

e) Restart postfix as a zimbra user

  postfix restart
Verified Against: unknown Date Created: 4/18/2008
Article ID: Date Modified: 2015-03-23

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 »

Jump to: navigation, search