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

Thread: setting domain-wide mail filter

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    7
    Rep Power
    7

    Default setting domain-wide mail filter

    Is it possible to setup a domain-wide mail filter? I know users have the ability to do this in the Preferences|Mail Filters section, but it obviously only applies to messages sent to that specific user. The domain administrator doesn't seem to have any way to do this when logged into the admin interface.
    If there isn't a way to do this through the web interface can it be done via CLI?
    Thanks.

  2. #2
    Join Date
    Jul 2006
    Posts
    623
    Rep Power
    10

    Default

    Not quite sure I understand the use case, can you elaborate on the intended use?
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Join Date
    Apr 2008
    Posts
    7
    Rep Power
    7

    Default

    I'm talking about the Mail Filter within the Preferences section in the web interface. Users can create filters that will perform an action (bounce, forward, move to folder, etc.) on messages based on various conditions (subject, To/From address, etc.). Is there a way to apply one of these filters across all users within a domain?
    As an example, domain.com is hosted on our Zimbra system. The domain admin want all their accounts to automatically forward any message from user@externaldomain.com to another email address.

  4. #4
    Join Date
    Apr 2008
    Posts
    7
    Rep Power
    7

    Default

    Is there any update on my question? Our domain administrators found this feature very useful in Imail and SmarterMail. It could be used to block all emails from a specific email address or domain; or to move messages with "SPAM" in the subject line to a junk mail folder. It is intended to apply these rules across the entire domain.
    If there is no such funtionality, what is the best way to take a user's filter and apply it to all users in that domain?
    What is the proper way to request such a feature?
    Thanks.

  5. #5
    Join Date
    Apr 2009
    Posts
    70
    Rep Power
    6

    Default

    Are there anyupdates on this query whioch will be very useful?

  6. #6
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by tiarra View Post
    Are there anyupdates on this query whioch will be very useful?
    Not unless anyone has filed a bug report or RFE in bugzilla.
    Last edited by phoenix; 10-10-2009 at 09:17 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    Join Date
    Oct 2009
    Posts
    6
    Rep Power
    6

    Default Opened Request for enhancement.

    Although there were a lot of bugs under search for 'domain filter' none appeared to fit our criteria
    New bug - 41688

  8. #8
    Join Date
    Jan 2009
    Posts
    369
    Rep Power
    6

    Default

    postfix had a solution about this problem, you can read in it's webpage. But I'm not sure when apply in zimbra ( Hope this can works because zimbra uses postfix as it's MTA)

  9. #9
    Join Date
    Oct 2009
    Posts
    6
    Rep Power
    6

    Default Create rules for every email address of a domain using shell

    With the help of
    http://www.goldfisch.at/knowwiki/bas...?do=export_raw (giving good examples)
    How to check mailbox size of all accounts in Zimbra mail server. | STORY of AODDY. (good example of going through all accounts and doing a routine)
    CLI of zimbra -h
    I've come up with a set of instuctions and script which should complete the required task of making a NEW domain wide filter through seive. There probrably is an easier way to do it because it's creates a new rule for every email address. I see zimbra has maildrop but I'm to scared to tamper with main.cf and whatever .cf files. This set of instructions needs to be expanded to be put into a cron job in case of new email addresses and to not duplicate already made filters on email accounts.
    So please nitpick, correct, enhance, or best of all give a better solution with detailed instructions.
    **************************
    cd /opt/zimbra/bin
    vi filter1.sh

    #!/bin/bash
    all_account=`zmprov gaa |grep @whaterverdomain.com`
    for account in ${all_account}
    do
    `zmmailbox -m ${account} -z afrl "nameoffilter1" active any header "subject" contains "***SPAM***" fileinto "Inbox/spam" stop`

    done

    :wq

    su zimbra
    ./filter1.sh
    *************

    Use at your own risk

  10. #10
    Join Date
    Apr 2008
    Posts
    7
    Rep Power
    7

    Default

    Thanks for the example. For now, we tell our customers that we do not support domain-wide filters. I would really like to see this in a future version. I voted for 41688.

Similar Threads

  1. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  2. Replies: 30
    Last Post: 01-13-2009, 08:00 AM
  3. Migration Assistance
    By dwill in forum Administrators
    Replies: 10
    Last Post: 12-02-2008, 08:20 AM
  4. Replies: 20
    Last Post: 03-18-2008, 06:37 AM
  5. Mail not getting to mail boxes
    By ehults in forum Installation
    Replies: 5
    Last Post: 10-31-2005, 09:24 AM

Posting Permissions

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