delete a mailman list (wheezy+ispconfig3)

Discussion in 'HOWTO-Related Questions' started by ac15, May 17, 2015.

  1. ac15

    ac15 Member

    hi,
    first off, thanks for your great guide!
    i seem to have a little problem with mailman, i can add lists for a vhost, but i can't delete them.
    if i do it over the web interface, the lists disappear in ispconfig but the vhost.com/cgi-bin/mailman/listinfo page still shows the list.
    the console gives me the following error message:
    Code:
    sh: /etc/mailman/virtual_to_transport.sh: No such file or directory
    Traceback (most recent call last):
      File "/usr/lib/mailman/bin/rmlist", line 161, in <module>
        main()
      File "/usr/lib/mailman/bin/rmlist", line 122, in main
        sys.modules[modname].remove(mlist)
      File "/var/lib/mailman/Mailman/MTA/Postfix.py", line 310, in remove
        _update_maps()
      File "/var/lib/mailman/Mailman/MTA/Postfix.py", line 60, in _update_maps
        raise RuntimeError, msg % (vcmd, status, errstr)
    RuntimeError: command failed: /etc/mailman/virtual_to_transport.sh /var/lib/mailman/data/virtual-mailman (status: 127, Key has expired)
    
    any advice on how to fix this?

    thanks & regards,
    ac15
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    which ispconfig version do you use?
     
  3. ac15

    ac15 Member

    the mailing list i created yesterday was with ispconfig 3.0.5.4p5 on debian 7.8.
    just now i updated ispconfig to version p6 and tried to delete the list via the console, but it didn't work.
    then i did a full dist-upgrade to jessie, but i still can't delete the list.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you run the ispconfig update with reconfigure services? When you do a dist upgarde then you should do a ispconfig update afterwards with reconfigure services to ensure that allconfig files get written in the correct syntax for the new software versions.
     
  5. ac15

    ac15 Member

    i ran the ispconfig update with reconfigure services, but i did the dist-upgrade afterwards. i tried to delete the mailing list after each of the steps, without success. can i re-run the ispconfig update when there is no new version available?
     
  6. ac15

    ac15 Member

    ok i just did a manual update with reconfigure-services. still can't delete the list.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Does the file /etc/mailman/virtual_to_transport.sh exists on your server?
     
  8. ac15

    ac15 Member

    no, it doesn't! here are the contents of my /etc/mailman:
    Code:
    apache.conf
    de
    en
    es
    leftover
    mm_cfg.py
    postfix-to-mailman.py
    qmail-to-mailman.py
    (btw i had to roll back the server to an earlier snapshot, it's debian 7.8 and ispconfig 3.0.5.4p5 again. somehow the dist-upgrade broke everything, i have to take a look at this later today..)
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    create the file:

    nano /etc/mailman/virtual_to_transport.sh

    and add this content:

    Code:
    #!/bin/sh
    sed -r -e 's/(^[^#]\S+\s+).+$/\1local/' $1 > /var/lib/mailman/data/transport-mailman
    /usr/sbin/postmap /var/lib/mailman/data/transport-mailman
    then make it executable:

    chmod +x /etc/mailman/virtual_to_transport.sh
     
  10. ac15

    ac15 Member

    works perfectly! thank you so much!
     

Share This Page