Results 1 to 7 of 7

Thread: How do I "unset" a zimbraMTARestriction

  1. #1
    Join Date
    Dec 2005
    Posts
    19
    Rep Power
    10

    Default How do I "unset" a zimbraMTARestriction

    How do I "unset" a zimbraMTARestriction with zmprov?

    I can set it with:

    $ zmprov mcf zimbraMTARestriction "reject_rbl_client x.y.z"

    What if I decide I don't want to RBL x.y.z? How do I unset
    the restriction? Pl. advise. Thanks.

  2. #2
    Join Date
    Nov 2005
    Posts
    518
    Rep Power
    11

    Default

    try this:
    $ zmprov mcf zimbraMtaRestriction ''

    note that it's Mta (not MTA)
    Last edited by bobby; 01-14-2006 at 09:51 AM.

  3. #3
    Join Date
    Dec 2005
    Posts
    19
    Rep Power
    10

    Default case doesn't matter?

    $ zmprov gcf zimbraMTARestriction
    zimbraMTARestriction: reject_invalid_hostname
    zimbraMTARestriction: reject_non_fqdn_hostname
    zimbraMTARestriction: reject_non_fqdn_sender


    $ zmprov gcf zimbraMtaRestriction
    zimbraMtaRestriction: reject_invalid_hostname
    zimbraMtaRestriction: reject_non_fqdn_hostname
    zimbraMtaRestriction: reject_non_fqdn_sender

    Are these different attributes? I assume case matters?
    A convenience in case you can't keep MTA vs Mta straight?

    Finally, how does 'zmprov mcf zimbraMtaRestriction '' ' know which
    restriction to stop? All of them? Ugh.

    Thanks.

  4. #4
    Join Date
    Dec 2005
    Posts
    19
    Rep Power
    10

    Default helping myself

    I realized I was an adult and could help myself, at least a little bit.

    zmprov mcf zimbraMtaRestriction '' appears to wipe out the list (i.e. all) of restrictions. I guess this makes some sense.

    I wrote this script for myself to set the restrictions I want:

    #!/bin/bash

    # dump existing restrictions just in case
    /opt/zimbra/bin/zmprov gcf zimbraMtaRestriction > $0.before

    # start clean
    /opt/zimbra/bin/zmprov mcf zimbraMtaRestriction ''

    # assert your restrictions
    /opt/zimbra/bin/zmprov mcf \
    zimbraMtaRestriction "reject_rbl_client dnsbl.njabl.org" \
    zimbraMtaRestriction "reject_rbl_client opm.blitzed.org" \
    zimbraMtaRestriction "reject_rbl_client relays.ordb.org" \
    zimbraMtaRestriction "reject_rbl_client cbl.abuseat.org" \
    zimbraMtaRestriction "reject_rbl_client bl.spamcop.net" \
    zimbraMtaRestriction "reject_rbl_client dnsbl.sorbs.net" \
    zimbraMtaRestriction "reject_rbl_client sbl.spamhaus.org" \
    zimbraMtaRestriction "reject_rbl_client relays.mail-abuse.org" \
    zimbraMtaRestriction "reject_invalid_hostname" \
    zimbraMtaRestriction "reject_non_fqdn_sender" \
    zimbraMtaRestriction "reject_non_fqdn_hostname"


    # whadya get?
    /opt/zimbra/bin/zmprov gcf zimbraMtaRestriction

  5. #5
    Join Date
    Nov 2005
    Posts
    518
    Rep Power
    11

    Smile

    see this post about entering your settings from a file like this:
    zmprov < file.txt

  6. #6
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default multi valued attributes

    In general, for multi-valued attributes, you have 3 choices. In all cases, case matters (for both attribute names and values)

    You can set all of the values at once:
    zmprov mcf attrName value1 attrName value2 attrName value3

    Or you can modify them this way:

    zmprov mcf +attrName new_value

    Will add new_value to the list for attrName

    likewise,
    zmprov mcf -attrName remove_value

    will remove the value.

    You can mix and match +/-attrName on one line:
    zmprov mcf +attrName add_value -attrName remove_value

    but you CANNOT mix +/- with setting:
    zmprov mcf +attrName add_value -attrName remove_value attrName set_value

    that will kick out an error.

    Have fun

  7. #7
    Join Date
    Nov 2005
    Posts
    518
    Rep Power
    11

    Default

    thanks marc

Similar Threads

  1. zimbraMtaRestriction and check_policy_service
    By behanw in forum Installation
    Replies: 6
    Last Post: 09-01-2009, 11:50 PM
  2. Spam Filter - a few questions
    By sternfan in forum Administrators
    Replies: 12
    Last Post: 08-08-2007, 01:12 PM
  3. Trend Micro RBL doesn't work
    By crowley in forum Administrators
    Replies: 2
    Last Post: 07-25-2007, 07:41 AM
  4. zimbraMtaRestriction values not saved
    By scalper in forum Administrators
    Replies: 8
    Last Post: 10-19-2006, 10:21 AM
  5. SMTP restrictions
    By Yvonne in forum Administrators
    Replies: 2
    Last Post: 10-16-2006, 05:48 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
  •