Current time: 12-25-2024, 04:13 AM Hello There, Guest! (LoginRegister)


Post Reply 
[HowTo] Mailman with ispCP, suexec
Author Message
FeG Offline
Banned

Posts: 222
Joined: Aug 2007
Post: #1
[HowTo] Mailman with ispCP, suexec
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
(This post was last modified: 11-25-2008 03:07 AM by BeNe.)
09-14-2007 07:16 PM
Find all posts by this user Quote this message in a reply
hendry Offline
Junior Member
*

Posts: 77
Joined: Jul 2007
Reputation: 0
Post: #2
RE: Mailman Problems with ISPcp, suexec
Anybody running Mailman like this?
03-24-2008 05:42 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #3
RE: Mailman Problems with ISPcp, suexec
I think it's a good start for the HowTo - maybe later on it can be completed (User/Group etc)

/J
03-24-2008 05:46 AM
Visit this user's website Find all posts by this user Quote this message in a reply
hendry Offline
Junior Member
*

Posts: 77
Joined: Jul 2007
Reputation: 0
Post: #4
RE: Mailman Problems with ISPcp, suexec
Forgot to ask: is this a way to run mailman for every domain running on a ISPCP server?
03-24-2008 06:00 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #5
RE: Mailman Problems with ISPcp, suexec
I dont' know if it's "multi domain capable"... - maybe someone knows...
03-24-2008 06:10 AM
Visit this user's website Find all posts by this user Quote this message in a reply
FeG Offline
Banned

Posts: 222
Joined: Aug 2007
Post: #6
RE: Mailman Problems with ISPcp, suexec
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...
03-25-2008 03:19 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #7
RE: Mailman with ispCP, suexec
Would be great if you can write down a HowTo in the Docu.
I moved this Thread to HowTos.

Greez BeNe
03-25-2008 04:54 PM
Visit this user's website Find all posts by this user Quote this message in a reply
FeG Offline
Banned

Posts: 222
Joined: Aug 2007
Post: #8
RE: Mailman with ispCP, suexec
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
03-26-2008 08:57 AM
Find all posts by this user Quote this message in a reply
Smallserver Offline
Junior Member
*

Posts: 38
Joined: Jan 2008
Reputation: 0
Post: #9
RE: Mailman with ispCP, suexec
And what happens after a update of ISPCP with this config?

Grtz,
Herman
(This post was last modified: 03-31-2008 02:45 AM by Smallserver.)
03-31-2008 02:45 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #10
RE: Mailman with ispCP, suexec
If something does not work afer a Update, do the HowTo again.

Greez BeNe
03-31-2008 03:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 5 Guest(s)