Results 1 to 7 of 7

Thread: ZCS 8.0 piped script problems

Hybrid View

  1. #1
    Join Date
    Dec 2012
    Posts
    4
    Rep Power
    3

    Default ZCS 8.0 piped script problems

    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:

    Code:
    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:

    Code:
    <mypipe@my.system.hostname>: Mail for my.system.hostname loops back to myself
    any ideas?

  2. #2
    Join Date
    Dec 2012
    Posts
    4
    Rep Power
    3

    Default

    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
    Last edited by zazu; 12-13-2012 at 11:09 AM. Reason: I forgot to attach the zip

  3. #3
    Join Date
    Jun 2011
    Location
    Caracas Venezuela
    Posts
    476
    Rep Power
    4

    Default

    Hi zazu, in ZCS 8 you might want to take a look Dynamic distribution lists.

    Think you can achieve similar results easily.

    ccelis

  4. #4
    Join Date
    Dec 2012
    Posts
    4
    Rep Power
    3

    Default

    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

  5. #5
    Join Date
    Jun 2011
    Location
    Caracas Venezuela
    Posts
    476
    Rep Power
    4

    Default

    Quote Originally Posted by zazu View Post
    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
    zazu, you're right Dynamic lists it's not a whole mailing list system.

    However, you can restrict senders using

    Code:
    zmprov grr dl <dlname@example.com> usr <username@example.com> sendToDistList
    as stated in ZCS Admin Guide 8.0

    ccelis

  6. #6
    Join Date
    Mar 2013
    Posts
    1
    Rep Power
    2

    Default Solution?

    Did anyone find solution to this?

    I want piped alias for redmine script.

Similar Threads

  1. Replies: 2
    Last Post: 05-01-2012, 02:21 AM
  2. Replies: 0
    Last Post: 03-17-2011, 09:04 AM
  3. SSO w/ vb script
    By ekmeek in forum Administrators
    Replies: 1
    Last Post: 10-29-2010, 01:18 AM
  4. [SOLVED] Piped scripts and relay access
    By hexfusion in forum Installation
    Replies: 4
    Last Post: 05-29-2010, 10:34 PM
  5. Replies: 1
    Last Post: 03-11-2009, 03:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •