ispCP - Board - Support
[HowTo] Mailman with ispCP, suexec - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Contributions Area (/forum-40.html)
+--- Forum: Howtos (/forum-41.html)
+--- Thread: [HowTo] Mailman with ispCP, suexec (/thread-749.html)

Pages: 1 2 3


[HowTo] Mailman with ispCP, suexec - FeG - 09-14-2007 07:16 PM

Hi,

I got the mailman webinterface up and running like this:

I created a new vhost in /etc/apache2/sites-available/mailman.conf:
Code:
#
# mailman Virtual Host Webinterface
#

<VirtualHost xxx.xxx.xxx.xxx:80>
        ServerAdmin     admin@yourdomain.com
        DocumentRoot    /var/www/mailman

        ServerName      lists.yourdomain.com

        ErrorLog        /var/log/apache2/lists.yourdomain.com-error.log
        CustomLog       /var/log/apache2/lists.yourdomain.com-access.log combined

        Alias /pipermail /var/lib/mailman/archives/public/
        Alias /images/mailman /usr/share/images/mailman/

        <Directory /var/lib/mailman/archives/>
                Options Indexes FollowSymLinks
                AllowOverride None
        </Directory>

        ScriptAlias /admin /usr/lib/cgi-bin/mailman/admin
        ScriptAlias /admindb /usr/lib/cgi-bin/mailman/admindb
        ScriptAlias /confirm /usr/lib/cgi-bin/mailman/confirm

        # The create.html-file is a dummy-file so that no one can create new mailing lists via the webinterface
        # ScriptAlias /create /usr/lib/cgi-bin/mailman/create
        Alias /create /var/www/mailman/create.html

        ScriptAlias /edithtml /usr/lib/cgi-bin/mailman/edithtml
        ScriptAlias /listinfo /usr/lib/cgi-bin/mailman/listinfo
        ScriptAlias /options /usr/lib/cgi-bin/mailman/options
        ScriptAlias /private /usr/lib/cgi-bin/mailman/private
        ScriptAlias /rmlist /usr/lib/cgi-bin/mailman/rmlist
        ScriptAlias /roster /usr/lib/cgi-bin/mailman/roster
        ScriptAlias /subscribe /usr/lib/cgi-bin/mailman/subscribe
        ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/

</VirtualHost>

and enabled it:
Code:
a2ensite mailman.conf
/etc/init.d/apache2 reload

In /etc/mailman/mm_cfg.py you have to set the following values like this:
Code:
DEFAULT_URL_PATTERN = 'http://%s/'
DEFAULT_EMAIL_HOST = 'lists.yourdomain.com'
DEFAULT_URL_HOST   = 'lists.yourdomain.com'

The last step is, to set the web_page_url-variable for each mailing list! This variable isn't exported via config_list, I don't know where I found it, but you can set it like this:

Code:
echo "web_page_url = 'http://lists.yourdomain.com/'" > /root/web_page_url.cfg

# Execute this for every mailinglist on your server
config_list -i web_page_url.cfg LISTNAME

Now you should be able to manage your lists via http://lists.yourdomain.com/listinfo/LISTNAME

Again the question: Is this worth being written into a HowTo ?

Greetings
FeG


RE: Mailman Problems with ISPcp, suexec - hendry - 03-24-2008 05:42 AM

Anybody running Mailman like this?


RE: Mailman Problems with ISPcp, suexec - joximu - 03-24-2008 05:46 AM

I think it's a good start for the HowTo - maybe later on it can be completed (User/Group etc)

/J


RE: Mailman Problems with ISPcp, suexec - hendry - 03-24-2008 06:00 AM

Forgot to ask: is this a way to run mailman for every domain running on a ISPCP server?


RE: Mailman Problems with ISPcp, suexec - joximu - 03-24-2008 06:10 AM

I dont' know if it's "multi domain capable"... - maybe someone knows...


RE: Mailman Problems with ISPcp, suexec - FeG - 03-25-2008 03:19 AM

hendry Wrote:Anybody running Mailman like this?

Yes, me Wink

hendry Wrote:Forgot to ask: is this a way to run mailman for every domain running on a ISPCP server?

Yes. You'll be able to add mailing lists on any domain you control.

Greetings
FeG

PS @ joximu: I'll see if i can write a HowTo for this in the next days...


RE: Mailman with ispCP, suexec - BeNe - 03-25-2008 04:54 PM

Would be great if you can write down a HowTo in the Docu.
I moved this Thread to HowTos.

Greez BeNe


RE: Mailman with ispCP, suexec - FeG - 03-26-2008 08:57 AM

Hey guys..

I've just added this HowTo to the documentation: Setup Mailman.

Please don't link it yet, just test it. I've wrote this nearly completely out of my rememebrance, it's late and I'm really not sure if I've forgotten something.
So if there's anyone who can test this, please do so and tell me if theres something missing.

I've done this half a year ago on my server and it works like a charm, but I've no space to reproduce this again...

So I'm looking forward to your replies..

FeG


RE: Mailman with ispCP, suexec - Smallserver - 03-31-2008 02:45 AM

And what happens after a update of ISPCP with this config?

Grtz,
Herman


RE: Mailman with ispCP, suexec - BeNe - 03-31-2008 03:34 PM

If something does not work afer a Update, do the HowTo again.

Greez BeNe