Posts

Showing posts from August, 2017

Zimbra Auto BCC for Recipient Mails: 6 Mistakes to Avoid

Image
An auto BCC for recipient mails copies every message that arrives for one address to a second mailbox, without the sender or the recipient seeing it. In 2017 I set this up on a Zimbra 8.6 server: all mail to bcc2_huupv@mail.huuphan.local had to land in huupv@mail.huuphan.local as well. Zimbra does it with the Postfix parameter recipient_bcc_maps . This rewrite keeps my original commands and log from that server, adds what the Zimbra Administrator Guide says about editing Postfix files, and tests the edge cases on Postfix 3.10.13 in a Debian 13 container (Zimbra itself was not reinstalled for this). Contents How auto BCC for recipient mails works in Postfix Set up auto BCC on Zimbra 8.6 (the original steps) The Zimbra log of a working auto BCC Why the change can disappear: Zimbra upgrades Test results: auto BCC edge cases on Postfix 3.10 Zimbra's own alternatives to a Postfix auto BCC FAQ How auto BCC for recipient mails works in Postfix The postconf(5) entry for recipient_bc...

Spam Filters on Zimbra: 6 Proven Fixes for Dead RBL Lists

Image
Spam filters on Zimbra work in two places. The Zimbra MTA (Postfix) can refuse a message during the SMTP session, using zimbraMtaRestriction values such as HELO checks and DNS blocklists. Messages that get through are scored by Amavis and SpamAssassin, and users train that score with their Junk folder. I wrote the first version of this post in 2017 on Zimbra 8.6, with the restriction list I used on my own servers. Many of the blocklists in that list have since closed or changed, so in November 2026 I re-tested every zone with dig and the restriction names on Postfix 3.10.13, and checked the Zimbra steps against the Zimbra Administrator Guide . Real lab output: several 2017 blocklists no longer answer, and one typo stops all mail with 451. Contents Check the current spam filters on Zimbra first The 2017 RBL list, re-tested in 2026 Restriction names: old, new and one typo A safer list for spam filters on Zimbra today Zimbra spam training: the part that actually learns Scores, the J...

Zimbra Auto BCC for Sender Mails: 5 Mistakes to Avoid

Image
An auto BCC for sender mails gives a second mailbox a silent copy of everything one account sends. In August 2017 I needed this on a Zimbra 8.6 server: every message sent by bcc_huupv@mail.huuphan.local had to be copied to huupv@mail.huuphan.local , without the sender or the recipients seeing it. Zimbra's MTA is Postfix, and Postfix does this with sender_bcc_maps . This rewrite keeps my original commands and the real zimbra.log from that server, and tests the cases that bite in production on Postfix 3.10.13 in a Debian 13 container (Zimbra itself was not reinstalled for the test). Contents How auto BCC for sender mails works Set up Zimbra auto BCC for a sender (the 2017 steps) The real Zimbra log of a sender BCC Test results: auto BCC for sender mails on Postfix 3.10 1. Forgetting postmap stops all mail, not just one sender 2. A working auto BCC: nrcpt=2 and no Bcc header 3. It matches the envelope sender, not the From: header 4. Local submission counts too 5. Sender and recipi...

Zimbra Duplicate Emails: 3 Easy Fixes, Avoid Mistakes

Image
Zimbra duplicate emails have one setting behind them: the LMTP dedupe cache, controlled by zimbraMessageIdDedupeCacheSize . The Zimbra Administrator Guide describes it as the number of Message-Id header values kept in the cache; a later delivery of a message with a matching Message-Id to the same mailbox is ignored, and a value of 0 disables deduping. The default is 3000. This guide shows how to read the value, how to set it and what to check when users still see two copies of the same message. The earlier version of this article called 0 the way to enable the feature. According to the Administrator Guide it is the opposite: 0 turns the duplicate check off. The steps below use the documented behaviour. Contents Why Zimbra duplicate emails happen Step 1: check the current dedupe cache size Step 2: set a positive cache size Step 3: restart the mailbox service Step 4: check the account switch How to confirm that two copies are the same message Messages sent to yourself The opposite ...

Zimbra DKIM Setup: 6 Record Mistakes to Avoid

Image
Zimbra DKIM signing puts a cryptographic signature on every message your domain sends, so receivers can check that the mail really came from you and was not changed on the way. Zimbra signs with OpenDKIM, keeps the private key in LDAP, and you publish the public key as a DNS TXT record. I set this up on a Zimbra server in 2017. This rewrite keeps those commands, checks them against the current Zimbra Administrator Guide, and tests the part that usually breaks, the DNS record, with OpenDKIM 2.11 and dkimpy on Debian 13 (Zimbra itself was not reinstalled for the test). One finding first: the DKIM record I published in 2017 had a typo that makes it unusable. Contents What Zimbra DKIM does Zimbra DKIM commands with zmdkimkeyutil Publish and test the DKIM record Results for each DKIM record variant Sign and verify a message Zimbra DKIM key rotation and removal 6 Zimbra DKIM mistakes to avoid FAQ What Zimbra DKIM does The Zimbra Collaboration Administrator Guide describes DKIM as ...

zmprov Command: Create a Zimbra Account in 5 Easy Steps

Image
The zmprov command is the Zimbra tool that creates, changes and deletes accounts from the command line. This article explains how to use it to create an account with attributes, change its password, edit attributes with the + and - prefixes, and add aliases. The first version was a list of commands with no explanation, so this rewrite checks every command against the Zimbra Administrator Guide . How this article was written: there is no Zimbra server in the author's lab, so nothing here is a fresh test run. The commands come from the original post, where an operator ran them on a real Zimbra server, and every syntax rule is taken from the Administrator Guide (Appendix A, zmprov command). The only output shown is the one from that original post. Contents Before you run the zmprov command Create an account with attributes Read, change and delete accounts Modify attributes with the zmprov command: + and - Aliases, class of service and distribution lists Common mistakes with the ...