Allow only few users to send mails: Difference between revisions
Punit.jain (talk | contribs) No edit summary |
(Adding Templates: Unsupported, Article Footer, and Category: Customizing ZCS) |
||
Line 2: | Line 2: | ||
---- | ---- | ||
{{Unsupported}} | |||
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" . | 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" . | ||
Line 40: | Line 42: | ||
postfix restart | postfix restart | ||
{{Article Footer|unknown|4/18/2008}} | |||
[[Category:Customizing ZCS]] |
Revision as of 21:57, 28 April 2008
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 zmmta.cf
POSTCONF smtpd_sender_restrictions FILE postfix_sender_restrictions.cf
b) Modify postfix_sender_restrictions.cf 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:-
test1@test.in.zimbra.com DUNNO
test2@test.in.zimbra.com DUNNO
test3@test.in.zimbra.com REJECT
test.in.zimbra.com 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