Results 1 to 5 of 5

Thread: User Whitelist

  1. #1
    kevindods is offline Advanced Member
    Join Date
    Oct 2005
    Posts
    181
    Rep Power
    9

    Default User Whitelist

    I know this has been hashed about for ages and there are wiki entries on how to do whitelisting on a per user basis but they are by and large very heavy on backend admin.

    We use a third party perimeter spam/malware system that intercepts all email in/out from our networks and it uses a system of whitelisting that is simple and automatic. It simply creates a per user whitelist for every email address sent to by a specific user address.

    This can then be edited by admin if there are false entries or mistakes by users but it is far lighter than admin work to build one. Many users have heard of address books being used so as a whitelist and so start there, but I prefer the whitelisting by sending as it is using the process itself to create the list directly.

    I also quite like the idea of a user being able to email an address to a per user blacklist but that does have some potential problems.


    Any comments on using this to update amavis configs? Should be very simple to implement and transparent to users.

  2. #2
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Bug 16104 - whitelisting all contacts automatically
    That title should really be renamed "automatically whitelisting addresses you've recently sent to".

    Using Stop spam with the Anti-Spam-SMTP-Proxy (ASSP),


    But say you wanted to whitelist anything in your address books (if you want tweak it to use a specific /Contacts folder or the auto /Emailed Contacts) here's crude periodic script method:

    Code:
    #!/bin/bash
    ACC=`/opt/zimbra/bin/zmprov gaa`
    for i in $ACC
    do
    /opt/zimbra/bin/zmmailbox -z -m $i gact | grep -u email: | sort | uniq | sed -e 's/email:/whitelist_from/g' >> /tmp/autowhitelistall.tmp
    done
    sed -i '/yourdomain1.com/d' /tmp/autowhitelistall.tmp
    sed -i '/yourdomain2.com/d' /tmp/autowhitelistall.tmp
    ... Repeat for each of your domains, since already trusted - avoid bloat ...
    cat /tmp/autowhitelistall.tmp | sort | uniq > /opt/zimbra/conf/spamassassin/autowhitelist.cf
    rm -f /tmp/autowhitelistall.tmp
    /opt/zimbra/bin/zmamavisdctl restart
    The lines in autowhitelistall.tmp & autowhitelist.cf should appear like:
    whitelist_from user@domain.com

    Or instead feed that into zmprov ma user@domain.com +amavisWhiteListSender name@external.com so that users can manage it.

    (Would have to set a higher zimbraMailWhitelistMaxNumEntries on the cos/account since default is 100.)

    And as you already know from the other thread, exposed in GnR mail preferences tab:


  3. #3
    kevindods is offline Advanced Member
    Join Date
    Oct 2005
    Posts
    181
    Rep Power
    9

    Default

    Just looking back over these options, can you wild card the white/blacklisting exposed in GnR (6 release) or in the per user eg:

    zmprov ma user@domain.com +amavisBlacklistSender *@domain.name


    Just thought I'd ask before I try ;-)

    Oh and is it just a - instead of + to remove from a list?

    Last edited by kevindods; 04-20-2009 at 06:27 AM.

  4. #4
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,491
    Rep Power
    56

    Default

    Quote Originally Posted by kevindods View Post
    Just looking back over these options, can you wild card the white/blacklisting exposed in GnR (6 release) or in the per user eg:
    In the image that Mike has posted there's text shown in the input field that says 'enter email address or domain'.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    kevindods is offline Advanced Member
    Join Date
    Oct 2005
    Posts
    181
    Rep Power
    9

    Default

    Ok Ok - yep - and it seems to work that way in the zmprov in the current GA too ;-)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. [SOLVED] Zimbra logwatch.
    By nishith in forum Administrators
    Replies: 5
    Last Post: 06-10-2009, 04:42 PM
  3. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  4. Services stopped working
    By lilwong in forum Administrators
    Replies: 4
    Last Post: 08-15-2006, 09:19 AM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 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
  •