Re: [Mailman-Users] Newbie question regarding multiple domains with oneMailman installation

2006-01-29 Thread Mark Sapiro
Daniel Spreadbury wrote:
>
>Apologies if this is covered in the Mailman docs or the FAQs, but I'm having
>problems finding any concrete information.


Searching the FAQ wizard at
>Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
for

virtual

will return some relevant information including FAQs 4.29. 4.47 and
4.62.


>I've installed Mailman via the FreeBSD ports collection on my FreeBSD server
>(running 4.7). My MTA is Exim 4.22, and my web server is Apache 1.3.x.


Mailman version? :-)


>I currently have mailman in /usr/local/mailman, and my web server has a
>virtual host at http://lists.dom.ain/ that points at this installation. My
>lists therefore have addresses like [EMAIL PROTECTED]
>
>I run a number of different virtual domains from my server, and would like
>to be able to run mailing lists for each of them, but using their domain
>names. I don't care about the limitation that they can't use the same list
>name -- the number of lists will be small, and that's an avoidable problem.
>
>So what do I need to do to run e.g. [EMAIL PROTECTED] and
>[EMAIL PROTECTED] from the same Mailman installation on my
>server?


Either put the Mailman specific alias and scriptalias, etc stuff in
each virtual host section in the web server config, or put it
somewhere where it will apply to all hosts.

Put directives like:

add_virtualhost('dom.ain', 'dom.ain')
add_virtualhost('another.domain','another.domain')

in mm_cfg.py. This assumes you will access the web pages via
http://dom.ain/..., as well as emailing [EMAIL PROTECTED],
i.e., that the web domain and the email domain are the same for the
hosts. If not, the generic form is

add_virtualhost('web.dom.ain', 'email.dom.ain')

Then when you create lists for these domains, they will only appear on
listinfo and admin overview pages accessed from that domain and web
links and email addresses for those lists will all use the list's
domain.

And read the FAQs mentioned above.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Newbie question regarding multiple domains with oneMailman installation

2006-01-30 Thread Daniel Spreadbury
Hi Mark,

Thanks for your very helpful reply! I think I'm getting somewhere,
though I've hit another brick wall.

> virtual
>
> will return some relevant information including FAQs 4.29. 4.47 and
> 4.62.

Thanks -- I tried searching for "virtual domains", which didn't find
the same FAQs.

> Mailman version? :-)

2.1.7, though I'm guessing from the smiley that this doesn't much matter!

> Either put the Mailman specific alias and scriptalias, etc stuff in
> each virtual host section in the web server config, or put it
> somewhere where it will apply to all hosts.
>
> Put directives like:
>
> add_virtualhost('dom.ain', 'dom.ain')
> add_virtualhost('another.domain','another.domain')
>
> in mm_cfg.py. This assumes you will access the web pages via
> http://dom.ain/..., as well as emailing [EMAIL PROTECTED],
> i.e., that the web domain and the email domain are the same for the
> hosts.

Okay, I've got all this.  Two problems remain:

1. If I go to http://dom.ain.com/mailman/, I get a "you don't have
permission to view /mailman/" error. If I go to
http://dom.ain.com/mailman/admin, for example, I get the mailman
interface as I'd expect. Is there something I can do to get /mailman
to give me something sensible, or is that not how it's supposed to
work? My Apache config does a standard script alias thing:

ScriptAlias /mailman "/usr/local/mailman/cgi-bin/"

I'm guessing I've missed something simple here.

2. This is a thornier issue, and I've spent most of the day today
trying to sort it out. My MTA is exim-4.22-1, installed via the
FreeBSD ports collection. As far as I can tell, it was installed with
the default user of mailnull and group of mail. As such, when I built
mailman from /usr/ports/mail/mailman, I used this command line:

make MAIL_GID="mail" install

as specified in /usr/local/share/doc/mailman/FreeBSD-post-install-notes

I also made sure that the aliases at the top of the Exim config file
(which I've placed just below the MAIN CONFIGURATION SETTINGS part of
the configure file) say:

MAILMAN_USER=mailnull
MAILMAN_GROUP=mail

I've also set up aliases in my domain-specific alias files for mail
delivery (I'm using Cyrus on top of Exim for IMAP), of the form:

members-list "|/usr/local/mailman/mail/mailman post members-list"
members-list-admin "|/usr/local/mailman/mail/mailman admin members-list"

and so on.

When I do e.g. "exim -bt [EMAIL PROTECTED]" I get the
expected result.

However, when I actually send mail to any of these addresses, I see
this in my main Exim log:

2006-01-30 18:09:06 1F3dSa-0001XG-RO ** [EMAIL PROTECTED]
<[EMAIL PROTECTED]> R=mailman_router T=mailman_transport:
Child process of mailman_transport transport returned 2 from command:
/usr/local/mailman/mail/mailman

This results in the mail being bounced back to me as undeliverable,
and nothing getting through to the mailing list.

The FreeBSD post-install notes list this problem specifically as
occurring if Mailman isn't installed with the right MAIL_GID set at
make, but I'm pretty sure I've set this correctly (see above). The
only other solution I've seen suggested is to use check_perms -f to
fix up permissions. I've done this, and no problems are found.

Any ideas as to what I'm doing wrong?

Thanks again for your help!

Daniel
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Newbie question regarding multiple domains with oneMailman installation

2006-01-30 Thread Mark Sapiro
>On 30/01/06, Daniel Spreadbury <[EMAIL PROTECTED]> wrote:
>> 1. If I go to http://dom.ain.com/mailman/, I get a "you don't have
>> permission to view /mailman/" error. If I go to
>> http://dom.ain.com/mailman/admin, for example, I get the mailman
>> interface as I'd expect. Is there something I can do to get /mailman
>> to give me something sensible, or is that not how it's supposed to
>> work? My Apache config does a standard script alias thing:
>>
>> ScriptAlias /mailman "/usr/local/mailman/cgi-bin/"
>>
>> I'm guessing I've missed something simple here.

RedirectMatch ^/mailman[/]*$ http://dom.ain.com/mailman/listinfo

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Newbie question regarding multiple domains with oneMailman installation

2006-01-30 Thread Daniel Spreadbury
Hi chaps,

Further to my last email a few minutes ago, I appear to have stumbled
on the answer, thanks to this post from the archives:

http://www.exim.org/pipermail/exim-users/Week-of-Mon-20030210/049748.html

Apparently my exim user is actually running in group "wheel".
Recompiling mailman yet again, this time with MAIL_GID='wheel', seems
to have sorted it.

But I'd still love some advice on the Apache part of my question,
reproduced below.

Thanks,

Daniel

On 30/01/06, Daniel Spreadbury <[EMAIL PROTECTED]> wrote:
> 1. If I go to http://dom.ain.com/mailman/, I get a "you don't have
> permission to view /mailman/" error. If I go to
> http://dom.ain.com/mailman/admin, for example, I get the mailman
> interface as I'd expect. Is there something I can do to get /mailman
> to give me something sensible, or is that not how it's supposed to
> work? My Apache config does a standard script alias thing:
>
> ScriptAlias /mailman "/usr/local/mailman/cgi-bin/"
>
> I'm guessing I've missed something simple here.
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp