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 http://www.zimbra.com/forums/administrators/75286-integrated-zimbra-8-5-0-mailman-problem.html and problem solved with my self 😀 . This is step by step how to integrating Zimbra 8.5.0 with Mailman
Description
Domain : imanudin.net Hostname : mail.imanudin.net
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 </Directory> 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 </Directory> # Uncomment the following line, replacing www.example.com with your server's # name, to redirect queries to /mailman to the listinfo page (recommended). # RedirectMatch ^/mailman[/]*$ http://www.example.com/mailman/listinfo
Configure Zimbra+Mailman
Edit file configuration of Mailman
vi /usr/lib/mailman/Mailman/mm_cfg.py
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/' POSTFIX_STYLE_VIRTUAL_DOMAINS = [ 'imanudin.net' ] DEFAULT_URL_HOST = 'mail.imanudin.net' DEFAULT_EMAIL_HOST = 'imanudin.net' VIRTUAL_HOSTS.clear() add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
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 adminmilist@imanudin.net bin/mmsitepass -c list-creator-password bin/config_list -i /var/lib/mailman/data/sitelist.cfg mailman bin/genaliases 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 adminmilist@imanudin.net with Administrator milist email and list-creator password with password do you want
# Setup Mailman cron
cd /usr/lib/mailman/cron crontab -u mailman crontab.in
# 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 mail.imanudin.net zimbraMtaVirtualAliasMaps 'ldap:/opt/zimbra/conf/ldap-vam.cf,lmdb:/var/lib/mailman/data/virtual-mailman' zmprov ms mail.imanudin.net zimbraMtaAliasMaps 'lmdb:/etc/aliases,lmdb:/var/lib/mailman/data/aliases' zmprov ms mail.imanudin.net zimbraMtaMyDestination 'localhost mail.imanudin.net' zmcontrol restart
# Test Milist
run the following command as root to create milist for testing
cd /usr/lib/mailman bin/newlist milist-test adminmilist@imanudin.net secret
Good luck and hopefully useful 😀
wah mas immanudin, benar benar telah meyelamatkan saya yang sedang pusing,, karena masalah mapping hash dan lmdb… terima kasih sekali lagi mas,,
Sama sama mas :D. Semoga bermanfaat 😀
I do -> su – zimbra -c “zmapachectl restart”
then error screen :
[root@std htdocs]# su – zimbra -c “zmapachectl restart”
Stopping apache…AH00526: Syntax error on line 498 of /opt/zimbra/conf/httpd.conf:
AllowOverride not allowed here
failed.
Starting apache…AH00526: Syntax error on line 498 of /opt/zimbra/conf/httpd.conf:
AllowOverride not allowed here
failed.
[root@std htdocs]#
please help me
Hi Bilal,
Please give a comment for some parameters so that like below and try to start again
server:/usr/lib/mailman # bin/newlist mailman
Traceback (most recent call last):
File “bin/newlist”, line 99, in
from Mailman import mm_cfg
File “/usr/lib/mailman/Mailman/mm_cfg.py”, line 61, in
VIRTUAL_HOST.clear()
NameError: name ‘VIRTUAL_HOST’ is not defined
=========================================================
Mas, kok pesan errornya gitu sih…
Terimakasih
maaf, yang itu udah bisa tapi ada lagi yang salah nih..
zimbra@server:~> zmprov ms mail.biotrop.com zimbraMtaMyDestination ‘localhostmail.biotrop.com’
ERROR: account.NO_SUCH_SERVER (no such server: mail.biotrop.com)
itu yang versi saya….
Hi mas Irfan,
Bisa bantu paste hasil perintah berikut :
Thanks for the detailed instructions, I was wondering if you know if this continues to work with the 8.6 zimbra release?
Hi Jeff,
Yes, this article still relevant for Zimbra 8.6
mas iman jika mailman kita di whm mau pindah ke zimbra migrasi account dan milis gimana yaa step by step nya.
apakah create manual satu persatu dan add manual anggota nya satu persatu atau sama seperti migrasi email dari cpanel ke zimbra?
Hi mas Baratra,
Jika punya akses langsung ke root-nya, bisa coba cara berikut : https://imanudin.net/2014/09/22/mailman-tips-how-to-migrate-mailman-mailing-list/
Cara diatas sering saya gunakan untuk melakukan migrasi dari server yang berbeda
Hi Iman,
Thanks for the documentation..
I have tried the configuration in zimbra 8.6 setup but not working..
when I try with the url http://192.168.1.176:7780/mailman/create it is downloading a file create but not showing anything in webui.
Can you help me to resolve this issue.. Please..
Hi,
Please try this link for solved the problem : http://forums.zimbra.com/administrators/64389-zimbra-8-vs-mailman.html
Mas Iman,
saya ada masalah setelah upgrade Zimbra + mailman, mailman/admin ngak bisa diakses.. kira2 dimana yah salahnya ?
Salam
Sugiyanto
Hi mas,
Apakah sudah dikonfigurasi juga pada http.conf si Zimbra nya mas? jika problem pada CGI, bisa coba panduan berikut mas : https://imanudin.com/2014/07/09/solved-problem-cgi-mailman-pada-zimbra-8/
hi Iman,
how to configured the mailman in zimbra 8.7.10 on centos 7
gts
Hi Iman,
Please reply on this and i have one more problem When I enabled When I enable the network module NG for this command : $ zmprov ms mail.domain.com zimbraNetworkMobileNGEnabled TRUE
ERROR: account.INVALID_ATTR_NAME (invalid attr name: invalid attr name – unable to modify attributes: ldap host=mail.domain.com:636: zimbraNetworkMobileNGEnabled: attribute type undefined)
Hi,
I don’t know with your problem. I think, in this article did not any configuration about zimbraNetworkMobileNGEnabled
how to configured the mailman in zimbra 8.7.15 on centos 7
and can we mail approve
Hello,
You can follow this article