Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Duplicate Mailman Config

Discussion in 'E-mail Discussion' started by jiska, May 8, 2017.

Tags:
  1. jiska

    jiska Registered

    Joined:
    Mar 19, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    Hi

    I have a need to create 20 mailman lists. Rather than setting all the options 20 times over, I want to copy the list I've setup 20 times and then just edit the members of that list.

    I can't find the list configuration files anywhere. Everywhere I look on the net says they are in /usr/local/cpanel/3rdparty/mailman but they are not there on my login

    Here is an ls of the path - any ideas?

    **@** [~]# ls /usr/local/cpanel/3rdparty/mailman -R
    /usr/local/cpanel/3rdparty/mailman:
    ./ ../ bin/ cgi-bin/ mail/

    /usr/local/cpanel/3rdparty/mailman/bin:
    ./ ../ paths.py

    /usr/local/cpanel/3rdparty/mailman/cgi-bin:
    ./ ../ admin* admindb* confirm* create edithtml* listinfo* options* private* rmlist roster* subscribe*

    /usr/local/cpanel/3rdparty/mailman/mail:
    ./ ../ mailman*
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,870
    Likes Received:
    1,811
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Manually copying the Mailman configuration files isn't supported, however you could develop a script that utilizes the following UAPI function if you want to add new lists via the command line:

    UAPI Functions - Email::add_list - Software Development Kit - cPanel Documentation

    If you want to add users to an existing list, you'd use the following command while logged in as "root" via SSH:

    /usr/local/cpanel/3rdparty/mailman/bin/add_members

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice