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.
How do I "unset" a zimbraMTARestriction
-
- Posts: 19
- Joined: Fri Sep 12, 2014 10:02 pm
How do I "unset" a zimbraMTARestriction
try this:
$ zmprov mcf zimbraMtaRestriction ''
note that it's Mta (not MTA)
$ zmprov mcf zimbraMtaRestriction ''
note that it's Mta (not MTA)
-
- Posts: 19
- Joined: Fri Sep 12, 2014 10:02 pm
How do I "unset" a zimbraMTARestriction
$ 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.
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.
-
- Posts: 19
- Joined: Fri Sep 12, 2014 10:02 pm
How do I "unset" a zimbraMTARestriction
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
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
How do I "unset" a zimbraMTARestriction
see this post about entering your settings from a file like this:
zmprov
zmprov
How do I "unset" a zimbraMTARestriction
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
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
How do I "unset" a zimbraMTARestriction
thanks marc