Skip to Content

Zimbra

Zimbra Collaboration Suite

Posted in

The Zimbra Collaboration Suite is a robust free open source software (FOSS) mail and messaging collaboration suite. ZCS is quickly gaining market presence as an alternative to Microsoft Exchange because of its lower cost, greater versatility and scalability. It is the only collaboration suite cheap enough to be installed in the smallest of small businesses while providing more functionality than Microsoft Exchange, but scalable enough to be the messaging platform among the largest ISPs in the world.

OS X WebDAV with Zimbra

Posted in

WebDAV is a great protocol for reading and writing files to and from the Zimbra Collaboration Suite and is a great tool for network file storage since it works inside and outside the home network. Mounting and using your ZCS mailbox WebDAV filesystem with Mac OS X is trivial.

1) Mount your mailbox.

    a. Open Finder
    b. In the Go menu, select "Connect to Server..."
    c. Enter your ZCS server address in the server connection dialog in this format:
      http://server.domain.com/dav/user%40domain.com

Substring Replace Strings In A Filename

This nested for loop substring replaces two parts of the filename GagHstqLEOlv5GU5kEDXmmpAoGQ=257-234.msg1. The script was used to restore missing blobs found in a mailbox backup to the live mailstore.


for d in $(find -type d)
do
  for f in $(ls $d)
  do
    f1=${f/*=}
    f2=${f1/msg*/msg}
    echo "mv -f $d/$f $d/$f2"
  done
done

This site was helpful for figuring this out:
http://tldp.org/LDP/abs/html/string-manipulation.html

Display Contents of Zimbra memcache

The contents of Zimbra's memcached cache can be displayed on a per account basis. Use zmproxypurge.

zmproxypurge -i -a user@bitnixblog.com

As of Zimbra 5.0.9, memcache stores routing information for IMAP and POP, not HTTP. See zmproxypurge -help for more memcached information.

Replace Newline Characters With Commas Using tr, Not sed

I recently had a 5.0.9 Zimbra mailbox with inconsistencies between metadata (MySQL DB) and blob store (/opt/zimbra/store/...) in which the store was missing blob data referenced in the database.

Once I parsed the zmblobchk report data to retrieve information for the mailbox I wanted to fix, I wanted an efficient way to remove the blob item references from the database.

All commands run as zimbra user.

A snip from zmblobchk's mb8blobcheck.rpt file:

* MailboxGroup=8, mailbox=8, item=397: file not found: 397-2020.msg (delete associated metadata)

Base64 Decode String

Base64 decode string with Perl on the command line.

perl -MMIME::Base64 -ne 'print
> decode_base64("PGRpdj4tLTxicj5UaGVzZSBIVE1MHNpZ25hdHVyZXMgYXJlIGdyZWF0Ljxicj48L2Rpdj4=")'

Zimbra stores mail signatures base64 encoded in the directory as objectClass zimbraSignature.

If you just need something quick, opinionatedgeek.com will do it for you.

Bypass Host Resolution Issues For Inbound Mail

Posted in

Zimbra uses the LMTP protocol for inbound mailstore delivery. By default, Zimbra's Postfix MTA will use DNS for mailbox server host resolution. Use this tip to bypass DNS inbound delivery from the MTA to mailstore.

$ su - zimbra

Query the existing Postfix value
$ postconf lmtp_host_lookup
lmtp_host_lookup = dns

Edit /etc/hosts
10.1.1.1 mailstore.server.com

Modify main.cf
$ postconf -e lmtp_host_lookup=native

Update Zimbra's local configuration for upgrade persistence

Zimbra environment variable usage

Posted in

Release 5.0.9_GA_2533.UBUNTU6 UBUNTU6 NETWORK edition

You are becoming a more esteemed Zimbra admin, but are tired of manually fetching environment variables from zmlocalconfig. Simply put the values into your shell environment.

su - zimbra
source ~/bin/zmshutil
zmsetvars

Now you can run your ldapsearch command like this:
ldapsearch -x -H $ldap_master_url -D $zimbra_ldap_userdn -w $zimbra_ldap_password "(cn=*)"

Syndicate content