Re: [Mailman-Users] Configuration Challenge with Apache and Mailman on OS X Server

2016-06-08 Thread Mark Sapiro
On 06/07/2016 02:16 PM, Timothy Jasionowski wrote:
> 
> On the previous implementation of 2.1.15, the URI would be constructed as:
> 
> https://server.domain.tld/mailman/admin/mailing_list/members/add
> 
> However, in trying to update my implementation of 2.1.22 in the new server, 
> I’m getting:
> 
> https://server.domain.tld/mailman/admin.cgi/mailing_list/members/add


This Mailman has been configured with the "--with-cgi-ext=.cgi" option.

In Defaults.py you will probably find

CGIEXT = '.CGI'

Putting

CGIEXT = ''

in mm_cfg.py should fix that.

But, see below.


> In the initial implementation, I was using a ScriptAlias to direct mailman to 
> the folder, but no rewriting rules.  
> 
> ScriptAlias /mailman/ "/usr/local/libexec/mailman/cgi-bin/"
> 
> In the new implementation, I’m using an config Include file in the apache 
> configuration, as suggested by MacPorts:


Is Mailman installed from a MacPort? If so, see
.


>   Include /opt/local/etc/httpd/mailman.conf
> 
> Which reads:
> 
> # Mailman configuration file fragment for Apache
> 
> 
> ScriptAlias /mailman/ "/opt/local/libexec/mailman/cgi-bin/"
> Alias /pipermail/ "/opt/local/var/mailman/archives/public/"
> Alias /mailman-icons/ "/opt/local/share/mailman/icons/"
> 
> 
> 
> Options Indexes Includes MultiViews SymLinksIfOwnerMatch
> AllowOverride FileInfo AuthConfig Limit
> Order allow,deny
> Allow from all
> 
> 
> 
> Options none
> AllowOverride FileInfo AuthConfig Limit
> Order allow,deny
> Allow from all
> 
> 
> 
> Options SymLinksIfOwnerMatch
> AllowOverride FileInfo AuthConfig Limit
> Order allow,deny
> Allow from all
> 
> 
> I’ve read the wikis and the Apache documentation and, have fiddled with the 
> CGIEXT setting in Defaults.py, which currently reads
> 
> # CGI extension, change using configure script
> CGIEXT = '.cgi'
> 
> I have changed it to ‘’ with no success.
> 
> Any help or thoughts would be greatly appreciated.


By changed it, do you mean in Defaults.py. If so see
. You should be putting overrides in
mm_cfg.py. If there is a setting for CGIEXT in mm_cfg.py, changing it in
Defaults.py will have no effect.

Also, did you restart Mailman after this change?

If this doesn't explain it, it's some Mac package thing. Look at the
definition of ScriptURL() in Mailman/Utils.py. This is where those URLs
are generated.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

[Mailman-Users] Wrong encoding in moderation request mails with Mailman 2.1.15

2016-06-08 Thread Peter Heitzer
If a mail held for moderation has a subject encoded in UTF-8 the subject is not 
correctly displayed in the mail to the moderator and in the
web interface. This is not a big issue but I nevertheless want to mention it.
Do newer 2.x versions still have this behavior or is it already fixed?






Dipl.-Inform(FH) Peter Heitzer, peter.heit...@rz.uni-regensburg.de


--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Configuration Challenge with Apache and Mailman on OS X Server

2016-06-08 Thread Timothy Jasionowski
Hello!

Long time, happy mailman administration, first time poster.

The last implementation I did of mailman was on OS X 10.9 Server and it went 
relatively well, but my current attempt at implementing it on a box to replace 
it running OS X 10.11.5/Server 5.x has driven me batty, specifically related to 
the .cgi prefix presentation in the URI.

On the previous implementation of 2.1.15, the URI would be constructed as:

https://server.domain.tld/mailman/admin/mailing_list/members/add

However, in trying to update my implementation of 2.1.22 in the new server, I’m 
getting:

https://server.domain.tld/mailman/admin.cgi/mailing_list/members/add

In the initial implementation, I was using a ScriptAlias to direct mailman to 
the folder, but no rewriting rules.  

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

In the new implementation, I’m using an config Include file in the apache 
configuration, as suggested by MacPorts:

Include /opt/local/etc/httpd/mailman.conf

Which reads:

# Mailman configuration file fragment for Apache


ScriptAlias /mailman/ "/opt/local/libexec/mailman/cgi-bin/"
Alias /pipermail/ "/opt/local/var/mailman/archives/public/"
Alias /mailman-icons/ "/opt/local/share/mailman/icons/"



Options Indexes Includes MultiViews SymLinksIfOwnerMatch
AllowOverride FileInfo AuthConfig Limit
Order allow,deny
Allow from all



Options none
AllowOverride FileInfo AuthConfig Limit
Order allow,deny
Allow from all



Options SymLinksIfOwnerMatch
AllowOverride FileInfo AuthConfig Limit
Order allow,deny
Allow from all


I’ve read the wikis and the Apache documentation and, have fiddled with the 
CGIEXT setting in Defaults.py, which currently reads

# CGI extension, change using configure script
CGIEXT = '.cgi'

I have changed it to ‘’ with no success.

Any help or thoughts would be greatly appreciated.

Thanks.

Timothy


--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] Setting up Mailman with Apache on FreeBSD

2016-06-08 Thread Mark Sapiro
On 06/08/2016 12:51 AM, John Poltorak wrote:
> 
> I can now bring up the *admin* page, as well as everything under *cgi-bin*,
> but what should happen if browse
> 
> example.org/mailman/ ?  I get a *Forbidden* error. Should there be a
> redirection to *listinfo* ?


You can do that with, e.g.

RedirectMatch ^/mailman[/]*$   /mailman/listinfo/


> As for icons, how do I get the Mailman images to show up on the page?
> 
> The installation manual:-
> 
> http://www.gnu.org/software/mailman/mailman-install/node10.html
> 
> says
> % cp $prefix/icons/*.{jpg,png} /path/to/apache/icons
> 
> It appears that the FreeBSD installation has copied them to


Are you using a FreeBSD port? If so, See .


> /usr/local/www/icons
> 
> Apache24 has its icons in
> 
> /usr/local/www/apache24/icons
>
> I'm not sure they should be kept seperate, but in any case I copied
> those from Mailman into the Apache directory, changed mm_cfg.py to
> include
> 
> IMAGE_LOGOS = '/usr/local/www/apache24/icons/'
> 
> but they don't show up. Any idea why?

The path beginning with a / is relative the the Apache DocumentRoot that
applies to your Mailman host. Probably just

IMAGE_LOGOS = '/icons/'

In any case if you can get an icon with

http://example.com/path/icons/mailman.jpg

Then what you want in this case is

IMAGE_LOGOS = '/path/icons/'

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Importing archived msgs into a Mailman list

2016-06-08 Thread Mark Sapiro
On 06/08/2016 01:01 AM, John Poltorak wrote:
> Is it possible to import archived msgs which are in a digest form,
> originally from a Mailman mailing list, into a new mailing list?


Maybe, but that's not the best way. The tool is Mailman's bin/arch. Run
it with --help to see it's doc.

The input must be in *nix mbox format. You can convert a digest, but the
best way is if you still have access to the old list, the
archives/private/LIST.mbox/LIST.mbox file already has the messages with
all headers which a digest doesn't have.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Importing archived msgs into a Mailman list

2016-06-08 Thread John Poltorak
Is it possible to import archived msgs which are in a digest form,
originally from a Mailman mailing list, into a new mailing list?
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Setting up Mailman with Apache on FreeBSD

2016-06-08 Thread John Poltorak
Hi Odhiambo,

Many thanks for your help. I would never have stumbled on the configuration
you provided. I won't try to understand it just yet, I'll blindly copy and
paste until I have it working.

I can now bring up the *admin* page, as well as everything under *cgi-bin*,
but what should happen if browse

example.org/mailman/ ?  I get a *Forbidden* error. Should there be a
redirection to *listinfo* ?

As for icons, how do I get the Mailman images to show up on the page?

The installation manual:-

http://www.gnu.org/software/mailman/mailman-install/node10.html

says
% cp $prefix/icons/*.{jpg,png} /path/to/apache/icons

It appears that the FreeBSD installation has copied them to

/usr/local/www/icons

Apache24 has its icons in

/usr/local/www/apache24/icons

I'm not sure they should be kept seperate, but in any case I copied
those from Mailman into the Apache directory, changed mm_cfg.py to
include

IMAGE_LOGOS = '/usr/local/www/apache24/icons/'

but they don't show up. Any idea why?





On Tue, Jun 7, 2016 at 10:01 PM, Odhiambo Washington 
wrote:

>
>
> On 7 June 2016 at 20:21, John Poltorak  wrote:
>
>> I have read these instructions, and don't find them that straightforward -
>> at least there must be some thing implied.
>>
>> It isn't very reassuring when it says this or that *may* be required. I
>> suppose the instructions are more general than specific to my environment.
>> I get a *Forbidden * error after adding this line to httpd.conf
>>
>> ScriptAlias /mailman/  /usr/local/mailman/cgi-bin/
>>
>> I tried both versions of setting permissions in the Directory
>> directive, but it didn't seem to make
>>
>> any difference - I did restart Apache after each change. I'm sure it
>> must be straightforward, but
>>
>> I haven't mastered it yet.
>>
>>
>
> Hi John,
>
> I install Mailman by hand. So here goes, assuming you have installed
> python from the ports or using pkg and you are using recommended python
> version:
>
>
> 1. Download Mailman sources and extract. I also download the
> indexing+htdig patch and apply that to the source then I run:
> ./configure --with-cgi-gid=80 --with-mail-gid=26# gid 80 is www and
> gid 26 is mailnull (I use Exim as MTA). decide what is your GIDs for both
> make install
>
> Now mailman is installed in /usr/local/mailman
>
> 2. For Apache, you know how to install that, right.
> You need to include a configuration for Mailman, and you can use mine.
> So at the end of my httpd.conf I have this line:
>
> Include etc/apache24/Includes/*.cf
>
> cd /usr/local/etc/apache24/Includes/ and create mailman.cf as follows
> Please customize the ServerAdmin and anything to do with lists.FQDN to
> match yours:
>
> 
>   ServerName lists.FQDN
>   ServerAdmin karotl...@gmail.com
>   RewriteEngine On
>   RewriteRule ^/(mailman|pipermail|icons|htdig)/.+$ - [S=1]
>   RedirectPermanent /htdig /icons/htdig
>   Alias /pipermail "/usr/local/mailman/archives/public"
>   ScriptAlias /mailman/ /usr/local/mailman/cgi-bin/
>   
>  Options FollowSymLinks ExecCGI
>  AllowOverride None
>  Order Allow,Deny
>  Allow from all
>  Require all granted
>   
>   
>  Options FollowSymLinks ExecCGI
>  AllowOverride None
>  Order Allow,Deny
>  Allow from all
>  Require all granted
>   
> 
>
> Of course run apachectl configtest after this to ensure things are fine
> with Apache.
> For me, I run mailman web UI using SSL, but I am not including that here.
> When the time comes, you can figure that out yourself or ask me in private:)
>
> Now, you also need to create your mm_cfg.py
> inside /usr/local/mailman/Mailman/ as documented. You can request mine too
> but remember I use Exim and not Postfix and a few things will differ.
>
> Oh, you need the configurations for your MTA. For Exim, we have a
> transparent config to we do not create any aliases for a lists in our MTAs
> alias file.
>
> Last but not least cd /usr/local/mailman/bin and run ./check_perms -f
>
> Feel free to discuss with me privately if you get stuck.
>
>
>
> --
> Best regards,
> Odhiambo WASHINGTON,
> Nairobi,KE
> +254 7 3200 0004/+254 7 2274 3223
> "Oh, the cruft."
>
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org