Good evening to all,
sorry for the bad english, I'm Italian
I have a problem with piped scripts:
on a server with ZCS 7.2.0 I followed this wiki page and everything works
Configuring Postfix to work with piped scripts - Zimbra :: Wiki
on another server with ZCS 8.0, the procedure does not work, apparently the transport file is ignored and the system reports:
5.1.1 pipescriptaddress@mydomain.com: Recipient address rejected: User unknown in virtual mailbox table
I tried to solve it with /etc/aliases & /opt/zimbra/postfix/conf/virtual
here I can not make virtual to route correctly to the script in /etc/aliases
I get the error:
: Mail for my.system.hostname loops back to myself
any ideas?
ZCS 8.0 piped script problems
ZCS 8.0 piped script problems
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
[ATTACH=CONFIG]5366[/ATTACH]
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:
# 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
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=
Dec 13 18:38:49 mail postfix/qmgr[24370]: AB4AD21C010F: from=, 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=
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=, size=1993, nrcpt=1 (queue active)
Dec 13 18:38:53 mail postfix/smtp[27869]: AB4AD21C010F: to=, orig_to=, 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=, 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=
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=, 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
mlist.zip
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
[ATTACH=CONFIG]5366[/ATTACH]
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:
# 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
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=
Dec 13 18:38:49 mail postfix/qmgr[24370]: AB4AD21C010F: from=, 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=
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=, size=1993, nrcpt=1 (queue active)
Dec 13 18:38:53 mail postfix/smtp[27869]: AB4AD21C010F: to=, orig_to=, 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=, 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=
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=, 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
mlist.zip
- ccelis5215
- Outstanding Member
- Posts: 632
- Joined: Sat Sep 13, 2014 2:04 am
- Location: Caracas - Venezuela
- ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 P12
ZCS 8.0 piped script problems
Hi zazu, in ZCS 8 you might want to take a look Dynamic distribution lists.
Think you can achieve similar results easily.
ccelis
Think you can achieve similar results easily.
ccelis
ZCS 8.0 piped script problems
I tried it for a while, but I have not found where restrict senders
also, although less important where to insert a tag in the object, like a mailing list system
also, although less important where to insert a tag in the object, like a mailing list system
- ccelis5215
- Outstanding Member
- Posts: 632
- Joined: Sat Sep 13, 2014 2:04 am
- Location: Caracas - Venezuela
- ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 P12
ZCS 8.0 piped script problems
[quote user="zazu"]I tried it for a while, but I have not found where restrict senders
also, although less important where to insert a tag in the object, like a mailing list system[/QUOTE]
zazu, you're right Dynamic lists it's not a whole mailing list system.
However, you can restrict senders using
zmprov grr dl usr sendToDistList
as stated in ZCS Admin Guide 8.0
ccelis
also, although less important where to insert a tag in the object, like a mailing list system[/QUOTE]
zazu, you're right Dynamic lists it's not a whole mailing list system.
However, you can restrict senders using
zmprov grr dl usr sendToDistList
as stated in ZCS Admin Guide 8.0
ccelis
-
- Posts: 1
- Joined: Sat Sep 13, 2014 3:07 am
ZCS 8.0 piped script problems
Did anyone find solution to this?
I want piped alias for redmine script.
I want piped alias for redmine script.
ZCS 8.0 piped script problems
[quote user="nikunj.kotecha"]Did anyone find solution to this?
I want piped alias for redmine script.[/QUOTE]
I followed the wiki at
Configuring Postfix to work with piped scripts - Zimbra :: Wiki
to set up an alias to a pipe, and it worked for local mail but mail from a remote account bounced
with the error message "Recipient address rejected: User unknown in virtual mailbox table".
The problem went away when I created a mail user with the name of the alias.
That user never receives mail because it is redirected to the pipe.
Version is Zimbra 8.0.5_GA_5839 (build 20130910124038)
YMMV
Cheers -- Ross
I want piped alias for redmine script.[/QUOTE]
I followed the wiki at
Configuring Postfix to work with piped scripts - Zimbra :: Wiki
to set up an alias to a pipe, and it worked for local mail but mail from a remote account bounced
with the error message "Recipient address rejected: User unknown in virtual mailbox table".
The problem went away when I created a mail user with the name of the alias.
That user never receives mail because it is redirected to the pipe.
Version is Zimbra 8.0.5_GA_5839 (build 20130910124038)
YMMV
Cheers -- Ross