Tag Archive: zimbra


Generate file list of message to be delete.
# zmmailbox -z -m admin@mdkl.gov.my s -l 1000 -t message "in:inbox content:root@mdkl" | awk '{ if(NR > 4){print}}' | cut -c7- | awk '{print $1","}' | tr -d '\n' > /tmp/delmessg

Delete message from list file : /tmp/todel
# zmmailbox -z -m admin@mdkl.gov.my dm `cat /tmp/todel`

RBL (Real time black-hole lists) can be turned on or off in SpamAssassin from the Zimbra CLI.

The three RBL’s that are enabled during installation are the following:
• reject_invalid_hostname
• reject_non_fqdn_hostname
• reject_non_fqdn_sender

You can set the following, in addition to the three above:
• reject_rbl_client dnsbl.njabl.org
• reject_rbl_client cbl.abuseat.org
• reject_rbl_client bl.spamcop.net
• reject_rbl_client dnsbl.sorbs.net
• reject_rbl_client sbl.spamhaus.org
• reject_rbl_client relays.mail-abuse.org

To turn RBL on
1. Log on to the server as ‘zimbra’
2. Enter zmprov gacf | grep zimbraMtaRestriction, to see what RBLs are set.
3. To add any new RBL types, you must list the existing RBLs and the new RBLs all in one command as:
zmprov mcf zimbraMtaRestriction [RBL type]

To add all the possible restrictions, the command would be

zmprov mcf /
zimbraMtaRestriction reject_invalid_hostname /
zimbraMtaRestriction reject_non-fqdn_hostname /
zimbraMtaRestriction reject_non_fqdn_sender /
zimbraMtaRestriction “reject_rbl_client dnsbl.njabl.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”

Note: Quotes must be added to RBL types that are two words.

Check object class first :

zmprov gacf | grep ObjectClass
zimbraAccountExtraObjectClass: amavisAccount
zimbraAccountExtraObjectClass: posixAccount
zimbraAccountExtraObjectClass: sambaSamAccount
zimbraAccountExtraObjectClass: sambaAccount

Remove optional object class :

zmprov mcf -zimbraAccountExtraObjectClass posixAccount
zmprov mcf -zimbraAccountExtraObjectClass sambaAccount
zmprov mcf -zimbraAccountExtraObjectClass sambaSamAccount

Zimbra And LDAP Tools

Get Zimbra LDAP root password :

zmlocalconfig -s zimbra_ldap_password

Change Zimbra LDAP root password :

zmldappasswd -r newpasss

LDAP Who Am I (Using simple authentication) :

ldapwhoami -xW

LDAP search (Using simple authentication) :

ldapsearch -x

This article contains information for both ZCS 4.5.x and 5.0.x. Please read all instructions with particular attention to version specific sections and notes before attempting to recreate a self-signed SSL certificate. If you are using ZCS 5.0, it is recommended that you first try using the Administration Console Certificates tool, discussed further in the Administration_Console_and_CLI_Certificate_Tools Article. This tool simplifies and speeds the process of recreating a self-signed SSL certificate.

http://wiki.zimbra.com/index.php?title=SSL_Certificate_Problems

zmprov cd foobar.com zimbraDomainType alias
zmprov md foobar.com zimbraMailCatchAllAddress @foobar.com zimbraMailCatchAllForwardingAddress @foo.com

Follow

Get every new post delivered to your Inbox.