Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 141022 - net-mail/mailman-2.1.8-rc1 missing IfDefine statement in apache config file
Summary: net-mail/mailman-2.1.8-rc1 missing IfDefine statement in apache config file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
: 153989 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-19 05:05 UTC by Tim Weber
Modified: 2006-11-24 12:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mailman.diff (mailman.diff,2.07 KB, patch)
2006-09-21 14:10 UTC, Chris Gianelloni (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Weber 2006-07-19 05:05:24 UTC
After installing Mailman, the ebuild says:
> An example Mailman configuration file for Apache has been installed into:
> /etc/apache2/modules.d/50_mailman.conf
>
> To enable, you will need to add "-D MAILMAN" to
> /etc/conf.d/apache2.

This is not only terribly imprecise (actually it should be added to the APACHE2_OPTS variable in that file), but it also simply doesn't work. Or work too well, depending on your point of view.

Having a look at that 50_mailman.conf file I noticed that it doesn't even care about the MAILMAN setting. There's nothing like an <IfDefine> in that file. This has the effect that the aliases defined in the 50_mailman.conf file become available in _all_ virtual hosts on this machine, regardless of whether I defined MAILMAN or not.

Solution: The file's content should be enclosed in <IfDefine MAILMAN>...</IfDefine>, and the ebuild message should be fixed.

I'm not quite sure if this has any security implications.
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2006-09-21 14:10:53 UTC
Created attachment 97696 [details, diff]
mailman.diff

This is a patch to mailman ebuild, (as well as 50_mailman.conf).
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2006-09-21 14:12:30 UTC
I forgot to mention that the patch also adds a nice redirect match for people.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-11-04 00:07:13 UTC
*** Bug 153989 has been marked as a duplicate of this bug. ***
Comment 4 Hanno Böck gentoo-dev 2006-11-24 12:11:18 UTC
fixed