Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: distribution list tweak

  1. #1
    scalper is offline Partner (VAR/HSP)
    Join Date
    Jul 2006
    Location
    KL, Malaysia
    Posts
    123
    Rep Power
    8

    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!

  2. #2
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    18

    Default

    There are no ACL's today. All lists are open. Use zmprov it has a bulk command option.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  3. #3
    claros's Avatar
    claros is offline Project Contributor
    Join Date
    Mar 2006
    Location
    L'Aquila, ITALIA
    Posts
    59
    Rep Power
    9

    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

  4. #4
    area is offline Active Member
    Join Date
    Feb 2006
    Posts
    47
    Rep Power
    9

    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).

  5. #5
    scalper is offline Partner (VAR/HSP)
    Join Date
    Jul 2006
    Location
    KL, Malaysia
    Posts
    123
    Rep Power
    8

    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 ?

  6. #6
    jdell is offline Project Contributor
    Join Date
    Jul 2006
    Location
    Reno, NV, USA
    Posts
    203
    Rep Power
    8

    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!

  7. #7
    area is offline Active Member
    Join Date
    Feb 2006
    Posts
    47
    Rep Power
    9

    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.

  8. #8
    scalper is offline Partner (VAR/HSP)
    Join Date
    Jul 2006
    Location
    KL, Malaysia
    Posts
    123
    Rep Power
    8

    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

  9. #9
    area is offline Active Member
    Join Date
    Feb 2006
    Posts
    47
    Rep Power
    9

    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.

  10. #10
    jdell is offline Project Contributor
    Join Date
    Jul 2006
    Location
    Reno, NV, USA
    Posts
    203
    Rep Power
    8

    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

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Distribution List
    By tbullock in forum Users
    Replies: 6
    Last Post: 01-24-2008, 10:25 PM
  2. distribution List
    By cg48 in forum Users
    Replies: 1
    Last Post: 06-08-2007, 07:42 AM
  3. Reply To for Distribution List
    By alivebyscience in forum Administrators
    Replies: 3
    Last Post: 10-28-2006, 10:35 AM
  4. Orphaned alias for a distribution list
    By area in forum Administrators
    Replies: 0
    Last Post: 09-17-2006, 08:22 PM
  5. Distribution list problem
    By achow in forum Users
    Replies: 1
    Last Post: 05-15-2006, 08:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •