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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Duplicate Mailman Config

Discussion in 'E-mail Discussions' 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:
    38,658
    Likes Received:
    1,427
    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.
     
Loading...

Share This Page