Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-03-2008, 11:12 PM
Intermediate Member
 
Posts: 18
Default GUIDE: Postifx: HOW TO: Multiple access lists for protected Distribution-lists

I have just implemented Zimbra 5 in my company. Its great. One problem I encountered was there are multiple distribution lists with different groups having access to it.

For e.g. Sales users alone should send email to Sales distribution list. Others cant. Likewise, Accounts users can send to Accounts distribution list.

I found this wiki
on Zimbra Wiki page.

- but this talks about several distribution lists but with SINGLE set of users having access to it. I researched the net and have found easy ways for GRANULAR control:

Here is how you do it. Lets take Sales and Accounts for with respective rights. Execute the commands as 'zimbra' user. Use sudo where necessary.

*******
Create a file called sales-senders: "/opt/zimbra/postfix/conf/sales-senders"
This file has sales group who can send to sales@domain.com. The content shoud be like this (add emails as necessary):
Code:
user1@domain.com		OK
user2@domain.com		OK
Create a 2nd file: "/opt/zimbra/postfix/conf/accounts-senders"
This file has accounts group which can send to accounts@domain.com. The content shoud be like this (add emails as necessary):
Code:
user3@domain.com		OK
user4@domain.com		OK
Create the access-list file: "/opt/zimbra/postfix/conf/protected_recipients"
This is the access-list file defining who can send to particular lists. Add the following content: (add as necessary)

Code:
accounts@domain.com		accounts-senders-list
sales@domain.com		  sales-senders-list
Create a script file to update and execute the access-list: "/opt/zimbra/postfix/conf/update-sec-list"
Code:
#!/bin/bash

echo "rebuild authorised sales-list senders..."
postmap /opt/zimbra/postfix/conf/sales-senders

echo "rebuild authorised accounts-list senders..."
postmap /opt/zimbra/postfix/conf/accounts-senders

echo "REBUILD protected_recipeints..."
postmap /opt/zimbra/postfix/conf/protected_recipients
Now, update the main configuration file: "/opt/zimbra/postfix/conf/main.cf"
Here you are actually restricting access by groups you defined.
And add the following code in the last section.

Code:
sales-senders-list = check_sender_access hash:/opt/zimbra/postfix/conf/sales-senders, reject
accounts-senders-list = check_sender_access hash:/opt/zimbra/postfix/conf/accounts-senders, reject

smtpd_restriction_classes = sales-senders-list, accounts-list
Now, edit this file: "/opt/zimbra/conf/postfix_recipient_restrictions.cf"
Add the following line the FIRST LINE of the file above all else
Code:
hash:/opt/zimbra/postfix/conf/protected_recipients
Now reload postfix from the command line.

Code:
postfix reload
That's it! You are done. Now sales cant send to accounts and vice versa. You can create as many access-lists you want.

Thanks to Zimbra and the Postfix group for making such features possible.

Last edited by gtdaqua : 02-07-2008 at 01:09 AM. Reason: typo.
Reply With Quote
  #2 (permalink)  
Old 02-04-2008, 12:09 AM
Member
 
Posts: 14
Default

better if zimbra has builtin this feature by default
Reply With Quote
  #3 (permalink)  
Old 02-04-2008, 12:23 AM
Intermediate Member
 
Posts: 18
Default

hmm...yeah! it should appear in the WebUI. I think there is a vote going on in bugzilla or somewhere - hope it comes in the next major update. But for now, this guide shud be good enough.
Reply With Quote
  #4 (permalink)  
Old 02-04-2008, 12:34 AM
Zimbra Consultant & Moderator
 
Posts: 11,517
Default

Quote:
Originally Posted by echoadisan View Post
better if zimbra has builtin this feature by default
Search bugzilla and vote for anything you find on this topic.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 02-06-2008, 04:02 PM
Senior Member
 
Posts: 55
Default

Still a very nice manual that suits it's purpose for many use-cases:
propose to make it sticky or promote to the wiki
cheers,
Peter
__________________
Using ZCS Network-edition 5.0.16 on Ubuntu 6.06.2 LTS and 8.04 LTS
Reply With Quote
  #6 (permalink)  
Old 02-07-2008, 01:10 AM
Intermediate Member
 
Posts: 18
Default

promoting to the wiki would be awesome! reachability will be high.

thanks!
Reply With Quote
  #7 (permalink)  
Old 02-07-2008, 01:24 AM
Zimbra Consultant & Moderator
 
Posts: 11,517
Default

Quote:
Originally Posted by gtdaqua View Post
promoting to the wiki would be awesome! reachability will be high.
The wiki is a community resource i.e. you can edit the wiki yourself and put this artice in there if you create an account.
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 02-12-2008, 09:40 PM
Member
 
Posts: 14
Default

please vote this enhancement

Bug 9620 - Mail policies and access control for sending to distribution lists

tx
eko
Reply With Quote
  #9 (permalink)  
Old 09-03-2009, 08:25 AM
Starter Member
 
Posts: 1
Default

Hi

I am new to Zimbra Postfix I tried your above steps after refers the mail systems SMTP not responding

Some one help me out

THanks
Manickam
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0