How To Integrating Zimbra 8.5.X With Mailman

Home » Zimbra » How To Integrating Zimbra 8.5.X With Mailman
Zimbra 18 Comments

Few days ago, i have a task from my boss to tried integrating Zimbra 8.5.0 with Mailman. Usualy, i always use this guidance to integrating Zimbra + Mailman in Bahasa Indonesia Integrasi Zimbra Mail Server & Mailman Mailing List. Overall my configuration work fine as guidance. But, there is a problem about insert aliases and Virtual data Mailman. Finally, i decide to ask at Zimbra Forum in this link and problem solved with my self 😀 . This is step by step how to integrating Zimbra 8.5.0 with Mailman


Domain :
Hostname :

Assume you have been install Mailman. Change GID Mailman with GID Zimbra, example 113 (can checked with cat /etc/passwd)

vi /etc/mailman/mailman.cgi-gid

Backup file /opt/zimbra/conf/httpd.conf to other folder, open and add this configuration at bottom

cp /opt/zimbra/conf/httpd.conf /opt/zimbra/conf/httpd.conf.back
vi /opt/zimbra/conf/httpd.conf

add this configuration at bottom

ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/
<Directory /usr/lib/mailman/cgi-bin/>
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
Alias /pipermail/ /var/lib/mailman/archives/public/
<Directory /var/lib/mailman/archives/public>
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
    # Only if you have internationalized archives
    AddDefaultCharset Off
# Uncomment the following line, replacing with your server's
# name, to redirect queries to /mailman to the listinfo page (recommended).
# RedirectMatch ^/mailman[/]*$

Configure Zimbra+Mailman

Edit file configuration of Mailman

vi /usr/lib/mailman/Mailman/

fill as the following example

MTA = 'Postfix'
POSTFIX_ALIAS_CMD = '/opt/zimbra/postfix/sbin/postalias'
POSTFIX_MAP_CMD = '/opt/zimbra/postfix/sbin/postmap'
IMAGE_LOGOS = '/mmimages/'
DEFAULT_URL_PATTERN = 'http://%s:7780/mailman/'

run the following command as root

cd /opt/zimbra/httpd/htdocs
mkdir mmimages
cp /usr/lib/mailman/icons/* mmimages/
chown -R zimbra:zimbra mmimages/
su - zimbra -c "zmapachectl restart"
cd /usr/lib/mailman
bin/newlist mailman
bin/mmsitepass -c list-creator-password
bin/config_list -i /var/lib/mailman/data/sitelist.cfg mailman
chown mailman:mailman /var/lib/mailman/data/aliases*
chown mailman:mailman /var/lib/mailman/data/virtual-mailman*
chmod 775 /var/lib/mailman/data/virtual-mailman.lmdb

Note : Change with Administrator milist email and list-creator password with password do you want

# Setup Mailman cron

cd /usr/lib/mailman/cron
crontab -u mailman

# setup daemon
remove sendmail from the section begin init info at /etc/init.d/mailman, then save

chkconfig mailman on
service mailman start

# Configure Zimbra

su - zimbra
zmprov ms zimbraMtaVirtualAliasMaps 'ldap:/opt/zimbra/conf/,lmdb:/var/lib/mailman/data/virtual-mailman'
zmprov ms zimbraMtaAliasMaps 'lmdb:/etc/aliases,lmdb:/var/lib/mailman/data/aliases'
zmprov ms zimbraMtaMyDestination 'localhost'
zmcontrol restart

# Test Milist
run the following command as root to create milist for testing

cd /usr/lib/mailman
bin/newlist milist-test secret

Good luck and hopefully useful 😀

18 thoughts on - How To Integrating Zimbra 8.5.X With Mailman