More info:
OSS is zimbra 8.0.0 on CentOS 6.3 x86_64
my intention is to create a sort of automated internal mailing list to write to all accounts of my company
this is the original system: Simple Forwarder - a small mailing list backend
my "simple forwarder" script is modified for multidomain.
I had implemented this solution on an old debian server + postfix + dovecot
and I have successfully exported to zimbra 7.2.0 with minor changes to the script and following the wiki
this small solution allows me to have an internal mailing list that employees can not unsubscribe, I have a blacklist to exclude service accounts and a limited list of approved senders
The zip attachment contains the whole system and the instructions
mlist.zip
I'm trying to use it as an alias (like in debian + postfix), but zimbra 8 seems to ignore the local aliases
this is what i did:
Code:
# su - zimbra
$ zmlocalconfig -e postfix_virtual_alias_maps=' hash:${zimbra_home}/postfix/conf/virtual,proxy:ldap:${zimbra_home}/conf/ldap-vam.cf'
$ vi /opt/zimbra/postfix/conf/virtual
in virtual i've insert:
all@mycompany.org all-mycompany.com
$ postmap /opt/zimbra/postfix/conf/virtual
$ zmlocalconfig postfix_alias_maps
postfix_alias_maps = hash:/etc/aliases
$ exit
# vi /etc/aliases
in aliases i've insert:
all-mycompany.com: |"/opt/zimbra/mlist/bin/mlist.sh all-mycompany.com"
# chmod 666 aliases
# > aliases.db
# chmod 666 aliases.db
# su - zimbra
$ postalias /etc/aliases
$ newaliases
$ zmmtactl restart when i send an email to all@mycompany.com, this is the result in /var/log/maillog
Code:
Dec 13 18:38:49 mail postfix/smtpd[27863]: connect from myIP
Dec 13 18:38:49 mail postfix/smtpd[27863]: AB4AD21C010F: client=myIP
Dec 13 18:38:49 mail postfix/cleanup[27868]: AB4AD21C010F: message-id=<50CA1274.8080804@mydomain.com>
Dec 13 18:38:49 mail postfix/qmgr[24370]: AB4AD21C010F: from=<zazu@mydomain.com>, size=1283, nrcpt=1 (queue active)
Dec 13 18:38:49 mail postfix/smtpd[27863]: disconnect from myIP
Dec 13 18:38:53 mail postfix/smtpd[27871]: connect from localhost.localdomain[127.0.0.1]
Dec 13 18:38:53 mail postfix/smtpd[27871]: D96B121C012A: client=localhost.localdomain[127.0.0.1]
Dec 13 18:38:53 mail postfix/cleanup[27868]: D96B121C012A: message-id=<50CA1274.8080804@mydomain.com>
Dec 13 18:38:53 mail postfix/smtpd[27871]: disconnect from localhost.localdomain[127.0.0.1]
Dec 13 18:38:53 mail postfix/qmgr[24370]: D96B121C012A: from=<zazu@mydomain.com>, size=1993, nrcpt=1 (queue active)
Dec 13 18:38:53 mail postfix/smtp[27869]: AB4AD21C010F: to=<all-mydomain.com@mail.mydomain.com>, orig_to=<all@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=4.2, delays=0.08/0/0/4.1, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as D96B121C012A)
Dec 13 18:38:53 mail postfix/qmgr[24370]: AB4AD21C010F: removed
Dec 13 18:38:53 mail postfix/smtp[27872]: D96B121C012A: to=<all-mydomain.com@mail.mydomain.com>, relay=none, delay=0.07, delays=0.03/0/0.03/0, dsn=5.4.6, status=bounced (mail for mail.mydomain.com loops back to myself)
Dec 13 18:38:53 mail postfix/cleanup[27868]: F20F521C012B: message-id=<20121213173853.F20F521C012B@mail.mydomain.com>
Dec 13 18:38:54 mail postfix/bounce[27873]: D96B121C012A: sender non-delivery notification: F20F521C012B
Dec 13 18:38:54 mail postfix/qmgr[24370]: F20F521C012B: from=<>, size=4065, nrcpt=1 (queue active)
Dec 13 18:38:54 mail postfix/qmgr[24370]: D96B121C012A: removed
Dec 13 18:38:54 mail postfix/smtp[27872]: F20F521C012B: to=<zazu@mydomain.com>, relay=mail.mydomain.com[myIP]:25, delay=0.59, delays=0.03/0/0.41/0.14, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as B2DE683B7B)
Dec 13 18:38:54 mail postfix/qmgr[24370]: F20F521C012B: removed
the server is multidomain