1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

broken postfix-mailman

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by Brujo, Dec 21, 2008.

  1. Brujo

    Brujo Regular Pleskian

    28
    57%
    Joined:
    Mar 4, 2006
    Messages:
    278
    Likes Received:
    2
    Location:
    Germany
    it seems that Mails to mailinglists are completly broken...

    mail - gid 12
    mailman - gid 67

    it seems there are more then one issue, one with the gid, another that the mailman-owner is unknown in the virtual mailbox table and another with the xyz-request list not found for the mailinglist

    any hint?
    Brujo
     
  2. Brujo

    Brujo Regular Pleskian

    28
    57%
    Joined:
    Mar 4, 2006
    Messages:
    278
    Likes Received:
    2
    Location:
    Germany
    i am the only one with broken mailing lists?

    any hint would be very helpful

    Brujo
     
  3. Brujo

    Brujo Regular Pleskian

    28
    57%
    Joined:
    Mar 4, 2006
    Messages:
    278
    Likes Received:
    2
    Location:
    Germany
    Has anyone postfix & mailinglists up and running ?

    As far as i understud mailman aliases should be created in the virtual.db but for me it seems that all aliases like -owner, -bounces are not existent, i also created new mailinglist but with the same result. Or they are now on a place which i cant locate?


    Brujo
     
  4. Brujo

    Brujo Regular Pleskian

    28
    57%
    Joined:
    Mar 4, 2006
    Messages:
    278
    Likes Received:
    2
    Location:
    Germany
    i did a lot of tests and also cleaned my virtual.db, now when i create a new mailinglist i have automatically this aliases

    but most of them didnt work if i send a mail to it i get this nice errors:
    i have no idea what else i can do, therefore any hint will be very helpfull
    Brujo
     
  5. Brujo

    Brujo Regular Pleskian

    28
    57%
    Joined:
    Mar 4, 2006
    Messages:
    278
    Likes Received:
    2
    Location:
    Germany
    i found out the following steps:
    after create a mailinglist the aliases where created in virtual.db and seems to be ok
    in the transport.db the aliases are mapped to mailman: which seems to be also fine.
    in the master.cf there is also the entry for mailman
    so i finaly ended up at the postfix-mailman script from Plesk.

    i have send a bugreport to Parallels, because i belive thats a bug in postfix-mailman!!

    Brujo
     
  6. Brujo

    Brujo Regular Pleskian

    28
    57%
    Joined:
    Mar 4, 2006
    Messages:
    278
    Likes Received:
    2
    Location:
    Germany
    hotfix4 did not fix my issue
     
  7. Brujo

    Brujo Regular Pleskian

    28
    57%
    Joined:
    Mar 4, 2006
    Messages:
    278
    Likes Received:
    2
    Location:
    Germany
    it seems i found the issue but I have no idea how to fix!

    the issue is with ${user} as far as i understand and as described in the pipe manpage this should extract the list name but it dosent

    man page of pipe
    have anyone a hint for me

    Brujo
     
  8. himue

    himue Guest

    0
     
    I think i found the error and have a solution

    Hi,

    i've the same problem with postfix and mailman, and i think, i have an solution.

    To understand what happens when you send a mail to the mailinglist you might be know the following:

    (My system is Suse 10.3. Any path are for this system.)

    Mailinglist-accounts (for list "sample" the accounts: "sample", "sample-request", "sample-owner", and so on) are stored in /var/spool/postfix/plesk/transport.db.
    Mail to this accounts are directed to an plesk-mda (mail delivery agent) namend "postfix-mailman" by /etc/postfix/master.cf
    postfix-mailman sends the mails and info about the mailinglist to the apro. mailman scripts in /usr/lib/mailman/scripts.
    E.g. mail to sample-request is send to /usr/lib/mailman/scripts/request.
    The mailman-scripts gets the Mail via stdin und needs the name of the list as parameter like "/usr/lib/mailman/scripts/request sample < [mail]".
    Unfortunally postfix-mailman dosn't deliver the name of the mailinglist. It delivers the "e-Mail-account" (e.g. "sample-request" and not "sample"...)

    My solution is to patch the mailman-scripts to handle this false parameters.

    in:
    /usr/lib/mailman/scripts/request/admin
    /usr/lib/mailman/scripts/request/bounces
    /usr/lib/mailman/scripts/request/confirm
    /usr/lib/mailman/scripts/request/join
    /usr/lib/mailman/scripts/request/leave
    /usr/lib/mailman/scripts/request/owner
    /usr/lib/mailman/scripts/request/request
    /usr/lib/mailman/scripts/request/subscribe
    /usr/lib/mailman/scripts/request/unsubscribe

    near line 42 you find the script-lines
    try:
    listname = sys.argv[1]

    "listname" in script confirm is "sample-confirm". The script now searches for a mailinglis sample-confirm, witch does not exist and fail.

    you can add a line like the following in the scripts to workaround the postfix-mailman error.
    if listname.endswith('-<scriptname>'): listname=listname[0:-<length of scriptname>]

    This truncates the mailingliat-name from the variable "listname".

    Following must be added after the line "listname = sys.argv[1]" in:

    /usr/lib/mailman/scripts/request/admin
    if listname.endswith('-admin'): listname=listname[0:-6]

    /usr/lib/mailman/scripts/request/bounces
    if listname.endswith('-bounces'): listname=listname[0:-8]

    /usr/lib/mailman/scripts/request/confirm
    if listname.endswith('-confirm'): listname=listname[0:-8]

    /usr/lib/mailman/scripts/request/join
    if listname.endswith('-join'): listname=listname[0:-5]

    /usr/lib/mailman/scripts/request/leave
    if listname.endswith('-leave'): listname=listname[0:-6]

    /usr/lib/mailman/scripts/request/owner
    if listname.endswith('-owner'): listname=listname[0:-6]

    /usr/lib/mailman/scripts/request/request
    if listname.endswith('-request'): listname=listname[0:-8]

    /usr/lib/mailman/scripts/request/subscribe
    if listname.endswith('-subscribe'): listname=listname[0:-10]

    /usr/lib/mailman/scripts/request/unsubscribe
    if listname.endswith('-unsubscribe'): listname=listname[0:-12]


    All works fine for me, and if parallels give us a fix for postfix-mailman all works fine also without redo this patches.

    Hope it helps. please let me know
     
  9. Brujo

    Brujo Regular Pleskian

    28
    57%
    Joined:
    Mar 4, 2006
    Messages:
    278
    Likes Received:
    2
    Location:
    Germany
    i did my workaround in another way until a plesk fix will be out with a modifyed postfix-mailman. I just changed the entry in master.cf and do not use now the the postfix-mailman script from plesk insteed i use the postfix-to-mailman.py which works fine for me.

    another alternatively might be to replace ${user} in the master.cf -> "${user}${extension?-}${extension}" but not tested yet....

    Btw i have send this bug long time ago to paralles but without any response...
    Brujo
     
Loading...