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 Search this Thread Display Modes
  #1 (permalink)  
Old 10-18-2006, 01:18 PM
Partner (VAR/HSP)
 
Posts: 123
Default distribution list tweak

Hi,

Sorry if this question is a bit out of topic here.

I have this one distribution list, let say all@domain.com and I want the list to only accept mails internally and not from outside. Is there any config that I can do?

One more thing, what is the attributes for distribution lists. I am looking/making some scripts for bulk add users with distribution list for users accordingly to let say departments.

Thanx in advanced! Cheers for zimbra!
Reply With Quote
  #2 (permalink)  
Old 10-18-2006, 03:48 PM
Zimbra Employee
 
Posts: 4,792
Default

There are no ACL's today. All lists are open. Use zmprov it has a bulk command option.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #3 (permalink)  
Old 10-18-2006, 05:45 PM
Project Contributor
 
Posts: 58
Default

Quote:
Originally Posted by scalper
Hi,

Sorry if this question is a bit out of topic here.

I have this one distribution list, let say all@domain.com and I want the list to only accept mails internally and not from outside. Is there any config that I can do?
You can only disable the mailing list putting it to inactive from the admin interface

Quote:
Originally Posted by scalper
One more thing, what is the attributes for distribution lists. I am looking/making some scripts for bulk add users with distribution list for users accordingly to let say departments.
Have a look at this script and change it as you need:

Code:
#!/bin/sh
for i in `zmprov gaa | grep dep.example.com`
do
zmprov adlm alluser@dep.example.com $i
done
zmprov rdlm alluser@dep.example.com <spam>@dep.example.com
zmprov rdlm alluser@dep.example.com <notspam>@dep.example.com
zmprov rdlm alluser@dep.example.com <wiki>@dep.example.com
echo "Lista alluser@dep.example.com Aggiornata!"
Ciao,
Claudio
Reply With Quote
  #4 (permalink)  
Old 10-19-2006, 07:41 PM
Active Member
 
Posts: 47
Default Use a 'local' domain

I solve this issue by configuring a domain like 'company.local' and adding that domain to the local DNS server.

I can then add distribution lists to that domain; eg All.Staff@company.local

As the 'local' domain isn't know to external DNS servers, it won't resolve externally and therefore can't be used externally (well at least easily).
Reply With Quote
  #5 (permalink)  
Old 10-19-2006, 11:32 PM
Partner (VAR/HSP)
 
Posts: 123
Default

Quote:
Originally Posted by area
I solve this issue by configuring a domain like 'company.local' and adding that domain to the local DNS server.

I can then add distribution lists to that domain; eg All.Staff@company.local

As the 'local' domain isn't know to external DNS servers, it won't resolve externally and therefore can't be used externally (well at least easily).
then the usr1@company.local mail forwards to usr1@company-fqdn.net ?
Reply With Quote
  #6 (permalink)  
Old 10-19-2006, 11:58 PM
Project Contributor
 
Posts: 203
Default How about some postfix-fu?

I did this on our Open Exchange box in postfix. We are getting ready to switch over to Zimbra, so I imagine I will be doing it again real soon...

Looking at postfix on our OX box, here is what I did:

List of originating domains or users that can send to protected list
jdell@portal:/etc/postfix> cat insiders
localhost OK
mydomain.com OK
host.mydomain.com OK
user@external-domain.com OK

Distribution lists that are being protected
jdell@portal:/etc/postfix> cat protected_destinations
all.staff@mydomain.com insiders_only
admin.staff@mydomain.com insiders_only
mgmt.staff@mydomain.com insiders_only

In main.cf, you would want something like the following:
smtpd_restriction_classes= insiders_only
insiders_only= check_sender_access hash:/etc/postfix/insiders, reject
smtpd_recipient_restrictions= hash:/etc/postfix/protected_destinations, ...

I'm not a postfix expert, and I believe this can be spoofed by a spammer who forges the mail headers, but in 3 years, I haven't had that happen (but before I put this in place, several spams did find there way to distribution lists).

There is probably a more elegant way to do this, and now that we are discussing this, anybody else think there ought to be an admin UI that allows you to restrict?

Also, from another thread, I don't think you can edit the postfix main.cf directly, rather you need to add this to /opt/zimbra/conf/zmmta.cf

If you get this working in your Zimbra, please post your setup!
Reply With Quote
  #7 (permalink)  
Old 10-20-2006, 12:19 AM
Active Member
 
Posts: 47
Default

Quote:
Originally Posted by scalper
then the usr1@company.local mail forwards to usr1@company-fqdn.net ?
Well no, as you are trying to hide the email address for the FQDN.

I would just add all the users the list@company.local distribution list or forward to an obsfucated email address for
the FQDN - eg: a6d2nda@company.fqdn.net.
Reply With Quote
  #8 (permalink)  
Old 10-20-2006, 12:22 AM
Partner (VAR/HSP)
 
Posts: 123
Default

Quote:
Originally Posted by area
Well no, as you are trying to hide the email address for the FQDN.

I would just add all the users the list@company.local distribution list or forward to an obsfucated email address for
the FQDN - eg: a6d2nda@company.fqdn.net.
okay.. then how the users will retrieve the email? need clarification thanx
Reply With Quote
  #9 (permalink)  
Old 10-20-2006, 12:31 AM
Active Member
 
Posts: 47
Default

Quote:
Originally Posted by scalper
okay.. then how the users will retrieve the email? need clarification thanx
Hmmm - the concept of a distribution list is that an email sent to the list is delivered to everyone on that list; ie: to the
inbox for each user who belongs to that list.
Reply With Quote
  #10 (permalink)  
Old 11-03-2006, 02:27 PM
Project Contributor
 
Posts: 203
Default Ok, here is my how-to...

I've created a wiki page for how I did this with postfix to restrict who can send to my distribution lists.

http://wiki.zimbra.com/index.php?tit...tfixRecipients
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.