Re: [Mailman-Users] Mailman on CentOs

2015-05-07 Thread Mark Sapiro
On 05/06/2015 10:33 AM, Eric Lamer wrote:
> 
>Can I install Mailman on CentOs 6.5?


There's no technical reason why not.

I run my production 'head of the branch' Mailman on CentOS 5.0 (soon to
be replaced with an Ubuntu 14.04 box).

I think the Python that comes with CentOS 6.5 is Python 2.6.6 which
should be OK. In my case, I have Python 2.7.9 installed along side the
CentOS 5.0 default Python 2.4.3 (you can't just upgrade Python on
RHEL/CentOS -it breaks things).

-- 
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] Mailman on CentOs

2015-05-07 Thread Alain Williams
On Thu, May 07, 2015 at 10:09:06AM -0700, Mark Sapiro wrote:
> On 05/06/2015 10:33 AM, Eric Lamer wrote:
> > 
> >Can I install Mailman on CentOs 6.5?
> 
> 
> There's no technical reason why not.

There is an RPM, so:

yum install mailman

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT 
Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
#include 
--
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] Mailman on CentOs

2015-05-07 Thread Mark Sapiro
On 05/07/2015 03:18 PM, Alain Williams wrote:
> On Thu, May 07, 2015 at 10:09:06AM -0700, Mark Sapiro wrote:
>> On 05/06/2015 10:33 AM, Eric Lamer wrote:
>>>
>>>Can I install Mailman on CentOs 6.5?
>>
>>
>> There's no technical reason why not.
> 
> There is an RPM, so:
> 
> yum install mailman


I assumed, perhaps erroneously, that he was asking about installing the
current version (2.1.20) from source rather than the Red Hat/CentOS
package version (2.1.12 - 6 years old?) that yum will install.

-- 
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] Mailman on CentOs

2015-05-07 Thread Alain Williams
On Thu, May 07, 2015 at 04:10:09PM -0700, Mark Sapiro wrote:
> On 05/07/2015 03:18 PM, Alain Williams wrote:
> > On Thu, May 07, 2015 at 10:09:06AM -0700, Mark Sapiro wrote:
> >> On 05/06/2015 10:33 AM, Eric Lamer wrote:
> >>>
> >>>Can I install Mailman on CentOs 6.5?
> >>
> >>
> >> There's no technical reason why not.
> > 
> > There is an RPM, so:
> > 
> > yum install mailman
> 
> 
> I assumed, perhaps erroneously, that he was asking about installing the
> current version (2.1.20) from source rather than the Red Hat/CentOS
> package version (2.1.12 - 6 years old?) that yum will install.

It is not hard to do.  In fact it is what I do (ie not use the RPM version) this
is because I have the same list name in different domains.

Unpack and run something like:

./configure --prefix=/usr/local/mailman/example.org 
--with-var-prefix=/var/spool/mailman/example.org --with-cgi-gid=apache 
--with-mailhost=lists.example.org --with-urlhost=lists.example.org



I will shortly try to install MM3 on CentOS 7 ... the biggest issue looks to be
that it does not have a version of python that is new enough - so the first
thing to fix.

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT 
Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
#include 
--
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] Mailman on CentOs

2015-05-07 Thread Eric Lamer
I tried to upgrade to version 2.1.20 or 2.1.18 and I have a lot of problems, io 
error etc.







EricLamer
CEO
Phoenix Secure Inc.
 514-914-5599
  514-800-2556
 e...@phoenixsecure.com







-Original Message-
From: Mailman-Users 
[mailto:mailman-users-bounces+eric=phoenixsecure@python.org] On Behalf Of 
Alain Williams
Sent: Thursday, May 7, 2015 7:26 PM
To: mailman-users@python.org
Subject: Re: [Mailman-Users] Mailman on CentOs

On Thu, May 07, 2015 at 04:10:09PM -0700, Mark Sapiro wrote:
> On 05/07/2015 03:18 PM, Alain Williams wrote:
> > On Thu, May 07, 2015 at 10:09:06AM -0700, Mark Sapiro wrote:
> >> On 05/06/2015 10:33 AM, Eric Lamer wrote:
> >>>
> >>>Can I install Mailman on CentOs 6.5?
> >>
> >>
> >> There's no technical reason why not.
> >
> > There is an RPM, so:
> >
> > yum install mailman
>
>
> I assumed, perhaps erroneously, that he was asking about installing
> the current version (2.1.20) from source rather than the Red
> Hat/CentOS package version (2.1.12 - 6 years old?) that yum will install.

It is not hard to do.  In fact it is what I do (ie not use the RPM version) 
this is because I have the same list name in different domains.

Unpack and run something like:

./configure --prefix=/usr/local/mailman/example.org 
--with-var-prefix=/var/spool/mailman/example.org --with-cgi-gid=apache 
--with-mailhost=lists.example.org --with-urlhost=lists.example.org



I will shortly try to install MM3 on CentOS 7 ... the biggest issue looks to be 
that it does not have a version of python that is new enough - so the first 
thing to fix.

--
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT 
Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
http://www.phcomp.co.uk/contact.php
#include 
--
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/eric%40phoenixsecure.com
--
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] Mailman on CentOs

2015-05-07 Thread Mark Sapiro
On 05/07/2015 06:01 PM, Eric Lamer wrote:
> I tried to upgrade to version 2.1.20 or 2.1.18 and I have a lot of problems, 
> io error etc.


We'd be happy to help if you post tracebacks or mailman error log messages.

Lot's of i/o error issues are permissions, and Mailman's bin/check_perms
-f run as root will fix most of them.

-- 
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] Mailman on CentOs

2015-05-07 Thread Eric Lamer
I will reinstall a brand new CentOs 6.5 then install Mailman, should I install 
directly version 2.1.20 or should I use yum first then upgrade?







EricLamer
CEO
Phoenix Secure Inc.
 514-914-5599
  514-800-2556
 e...@phoenixsecure.com







-Original Message-
From: Mailman-Users 
[mailto:mailman-users-bounces+eric=phoenixsecure@python.org] On Behalf Of 
Mark Sapiro
Sent: Thursday, May 7, 2015 9:24 PM
To: mailman-users@python.org
Subject: Re: [Mailman-Users] Mailman on CentOs

On 05/07/2015 06:01 PM, Eric Lamer wrote:
> I tried to upgrade to version 2.1.20 or 2.1.18 and I have a lot of problems, 
> io error etc.


We'd be happy to help if you post tracebacks or mailman error log messages.

Lot's of i/o error issues are permissions, and Mailman's bin/check_perms -f run 
as root will fix most of them.

--
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/eric%40phoenixsecure.com
--
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] Mailman on CentOs

2015-05-07 Thread Carl Zwanzig

On 5/7/2015 6:26 PM, Eric Lamer wrote:

I will reinstall a brand new CentOs 6.5 then install Mailman, should I
install directly version 2.1.20 or should I use yum first then upgrade?


Install centos 6.5, run yum update & reboot (you'll end up at 6.6), install 
mailman directly from *source*. Do not install mailman from yum first.


z!
--
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] Mailman on CentOs

2015-05-07 Thread Mark Sapiro
On 05/07/2015 06:26 PM, Eric Lamer wrote:
> I will reinstall a brand new CentOs 6.5 then install Mailman, should I 
> install directly version 2.1.20 or should I use yum first then upgrade?


Install directly from 2.1.20 following
 (also in the tarball).

If you install the RHEL/CentOS package, you have to deal with things
being spread all over. See . This makes
an upgrade from source difficult at best. The only reason to do it is if
you run with SELinux enabled. That causes difficulty if you don't do it
the Red Hat way.

-- 
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] Mailman on CentOs

2015-05-07 Thread Eric Lamer
What parameters should I use for the configure?







EricLamer
CEO
Phoenix Secure Inc.
 514-914-5599
  514-800-2556
 e...@phoenixsecure.com







-Original Message-
From: Mark Sapiro [mailto:m...@msapiro.net]
Sent: Thursday, May 7, 2015 10:05 PM
To: Eric Lamer;
Subject: Re: [Mailman-Users] Mailman on CentOs

On 05/07/2015 06:26 PM, Eric Lamer wrote:
> I will reinstall a brand new CentOs 6.5 then install Mailman, should I 
> install directly version 2.1.20 or should I use yum first then upgrade?


Install directly from 2.1.20 following
<http://www.list.org/mailman-install/index.html> (also in the tarball).

If you install the RHEL/CentOS package, you have to deal with things being 
spread all over. See <http://wiki.list.org/x/8486953>. This makes an upgrade 
from source difficult at best. The only reason to do it is if you run with 
SELinux enabled. That causes difficulty if you don't do it the Red Hat way.

--
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] Mailman on CentOs

2015-05-07 Thread Mark Sapiro
On 05/07/2015 07:48 PM, Eric Lamer wrote:
> What parameters should I use for the configure?


I recommend

--prefix=/usr/lib/mailman
--with-var-prefix=/var/lib/mailman

The above are optional. Without them everything installs in
/usr/local/mailman which is also OK, but I prefer to separate the
mutable and immutable data and the above are more consistent with FHS.

Then for CentOS with Postfix

--with-cgi-gid=apache
--with-mail-gid=mailman
--with-mailhost=Your.primary.email.domain
--with-urlhost=Your.primary.web.domain

and if you aren't going to use the system's default Python

--with-python=/path/to/pythonx.y

-- 
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] Mailman on CentOs

2015-05-08 Thread Dennis Putnam
On 5/7/2015 9:26 PM, Eric Lamer wrote:
> I will reinstall a brand new CentOs 6.5 then install Mailman, should I 
> install directly version 2.1.20 or should I use yum first then upgrade?
>
>
>
>
>
>
>
> EricLamer
> CEO
> Phoenix Secure Inc.
>  514-914-5599
>   514-800-2556
>  e...@phoenixsecure.com
>
>
>
>
>
>
>
> -Original Message-
> From: Mailman-Users 
> [mailto:mailman-users-bounces+eric=phoenixsecure@python.org] On Behalf Of 
> Mark Sapiro
> Sent: Thursday, May 7, 2015 9:24 PM
> To: mailman-users@python.org
> Subject: Re: [Mailman-Users] Mailman on CentOs
>
> On 05/07/2015 06:01 PM, Eric Lamer wrote:
>> I tried to upgrade to version 2.1.20 or 2.1.18 and I have a lot of problems, 
>> io error etc.
>
> We'd be happy to help if you post tracebacks or mailman error log messages.
>
> Lot's of i/o error issues are permissions, and Mailman's bin/check_perms -f 
> run as root will fix most of them.
>
> --
> Mark Sapiro The highway is for gamblers,
> San Francisco Bay Area, Californiabetter use your sense - B. Dylan
>
If you are going to install a fresh CentOS why are you not using the
latest version (7)? That will solve all your problems because the CentOS
7 repos have the later version of mailman.



signature.asc
Description: OpenPGP digital signature
--
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] Mailman on CentOs

2015-05-08 Thread Eric Lamer
Ok I installed a fresh copy of mailman 2.1.20, now I have this error

Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] [- Mailman Version: 
2.1.20 -]
[Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] [- Traceback 
--]
[Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] Traceback (most recent 
call last):
[Fri May 08 09:25:51 2015] [error] [client 192.168.2.70]   File 
"/usr/lib/mailman/scripts/driver", line 85, in run_main
[Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] immediate=1)
[Fri May 08 09:25:51 2015] [error] [client 192.168.2.70]   File 
"/usr/lib/mailman/Mailman/Logging/StampedLogger.py", line 52, in __init__
[Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] 
Logger.__init__(self, category, nofail, immediate)
[Fri May 08 09:25:51 2015] [error] [client 192.168.2.70]   File 
"/usr/lib/mailman/Mailman/Logging/Logger.py", line 50, in __init__
[Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] self.__get_f()
[Fri May 08 09:25:51 2015] [error] [client 192.168.2.70]   File 
"/usr/lib/mailman/Mailman/Logging/Logger.py", line 68, in __get_f
[Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] 1)
[Fri May 08 09:25:51 2015] [error] [client 192.168.2.70]   File 
"/usr/lib64/python2.6/codecs.py", line 881, in open
[Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] file = 
__builtin__.open(filename, mode, buffering)
[Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] IOError: [Errno 13] 
Permission denied: '/var/lib/mailman/logs/error'





EricLamer
CEO
Phoenix Secure Inc.
 514-914-5599
  514-800-2556
 e...@phoenixsecure.com






[Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] [- Python 
Information -]

This is the permission I have

[root@list httpd]# ls -la /var/lib/mailman/
total 36
drwxrwsr-x.  9 root mailman 4096 May  8 06:33 .
drwxr-xr-x. 33 root root4096 May  8 06:32 ..
drwxrwsr-x.  4 root mailman 4096 May  8 06:33 archives
drwxrwsr-x.  2 root mailman 4096 May  8 09:24 data
drwxrwsr-x.  3 root mailman 4096 May  8 09:22 lists
drwxrwsr-x.  2 root mailman 4096 May  8 09:30 locks
drwxrwsr-x.  2 root mailman 4096 May  8 09:24 logs
drwxrwsr-x. 11 root mailman 4096 May  8 09:24 qfiles
drwxrwsr-x.  2 root mailman 4096 May  8 06:33 spam

-Original Message-
From: Mark Sapiro [mailto:m...@msapiro.net]
Sent: Thursday, May 7, 2015 11:29 PM
To: Eric Lamer; mailman-users@python.org
Subject: Re: [Mailman-Users] Mailman on CentOs

On 05/07/2015 07:48 PM, Eric Lamer wrote:
> What parameters should I use for the configure?


I recommend

--prefix=/usr/lib/mailman
--with-var-prefix=/var/lib/mailman

The above are optional. Without them everything installs in /usr/local/mailman 
which is also OK, but I prefer to separate the mutable and immutable data and 
the above are more consistent with FHS.

Then for CentOS with Postfix

--with-cgi-gid=apache
--with-mail-gid=mailman
--with-mailhost=Your.primary.email.domain
--with-urlhost=Your.primary.web.domain

and if you aren't going to use the system's default Python

--with-python=/path/to/pythonx.y

--
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] Mailman on CentOs

2015-05-08 Thread Ralf Hildebrandt
* Eric Lamer :
> Ok I installed a fresh copy of mailman 2.1.20, now I have this error
> 
> Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] [- Mailman 
> Version: 2.1.20 -]
> [Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] [- Traceback 
> --]
> [Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] Traceback (most 
> recent call last):
> [Fri May 08 09:25:51 2015] [error] [client 192.168.2.70]   File 
> "/usr/lib/mailman/scripts/driver", line 85, in run_main
> [Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] immediate=1)
> [Fri May 08 09:25:51 2015] [error] [client 192.168.2.70]   File 
> "/usr/lib/mailman/Mailman/Logging/StampedLogger.py", line 52, in __init__
> [Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] 
> Logger.__init__(self, category, nofail, immediate)
> [Fri May 08 09:25:51 2015] [error] [client 192.168.2.70]   File 
> "/usr/lib/mailman/Mailman/Logging/Logger.py", line 50, in __init__
> [Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] self.__get_f()
> [Fri May 08 09:25:51 2015] [error] [client 192.168.2.70]   File 
> "/usr/lib/mailman/Mailman/Logging/Logger.py", line 68, in __get_f
> [Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] 1)
> [Fri May 08 09:25:51 2015] [error] [client 192.168.2.70]   File 
> "/usr/lib64/python2.6/codecs.py", line 881, in open
> [Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] file = 
> __builtin__.open(filename, mode, buffering)
> [Fri May 08 09:25:51 2015] [error] [client 192.168.2.70] IOError: [Errno 13] 
> Permission denied: '/var/lib/mailman/logs/error'

Mailman is running as user ??? an cannot write to
/var/lib/mailman/logs/error

-- 
Ralf Hildebrandt   Charite Universitätsmedizin Berlin
ralf.hildebra...@charite.deCampus Benjamin Franklin
http://www.charite.de  Hindenburgdamm 30, 12203 Berlin
Geschäftsbereich IT, Abt. Netzwerk fon: +49-30-450.570.155
--
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] Mailman on CentOs

2015-05-11 Thread Danil Smirnov
2015-05-08 14:01 GMT+03:00 Dennis Putnam :
>
> If you are going to install a fresh CentOS why are you not using the
> latest version (7)? That will solve all your problems because the CentOS
> 7 repos have the later version of mailman.

Hi Dennis!

Could you be more specific?
I don't see last Mailman version on my newly installed Centos 7 box -
just 2.1.15 one.
What repo do you use?

Many thanks in advance,
Danil
--
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] Mailman on CentOs

2015-05-11 Thread Dennis Putnam
Hi Danil,

Sorry, I thought that was the version you were looking for. The version
from the CentOS 6 repos was older but maybe they upgraded it since I
migrated about 2 months ago.

On 5/11/2015 2:58 PM, Danil Smirnov wrote:
> 2015-05-08 14:01 GMT+03:00 Dennis Putnam :
>> If you are going to install a fresh CentOS why are you not using the
>> latest version (7)? That will solve all your problems because the CentOS
>> 7 repos have the later version of mailman.
> Hi Dennis!
>
> Could you be more specific?
> I don't see last Mailman version on my newly installed Centos 7 box -
> just 2.1.15 one.
> What repo do you use?
>
> Many thanks in advance,
> Danil
> --
> 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/dap1%40bellsouth.net
>




signature.asc
Description: OpenPGP digital signature
--
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] Mailman on CentOs - Sender is forged (SPF Fail)

2015-05-08 Thread Mark Sapiro
On 05/08/2015 08:48 AM, Eric Lamer wrote:
> Ok I disabled SELinux and it is working.
> 
> Any idea why SELinux would prevent mailman to write to log?

Yes. When you do a straight install of Mailman from source, it doesn't
put everything in FHS compliant places. In particular, the logs in your
case are in /var/lib/mailman/logs, not in /var/log/mailman where FHS and
your SELinux security policy expects them to be.

If you don't care about SELinux, just leave it disabled. If you want to
use it, it will be difficult. You could try moving things to the
locations indicated at . Much stuff will
already be there if you configured as I suggested, but some things need
to move.

If you create any new 'mailman' directories, (e.g.
/var/lock/mailman,/var/log/mailman, /var/spool/mailman, /etc/mailman) be
sure they are group 'mailman' and SETGID and then create symlinks from
the old places to the new ones. You can also look in Defaults.py at the
sections labeled

# Useful directories
# Directories used by the qrunner subsystem
# Other useful files

and override some of those settings in mm_cfg.py. If you do this, you
might think that for the queue fils it would be sufficiewnt to just put

QUEUE_DIR = '/var/spool/mailman'

in mm_cfg.py, but other things were set in Defaults.py based on the
'old' QUEUE_DIR, so you also need to put all the things like

INQUEUE_DIR = os.path.join(QUEUE_DIR, 'in')

in mm_cfg.py after the QUEUE_DIR setting.

-- 
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] mailman on CentOS, with virtual domain configuration for Postfix

2007-11-22 Thread David Hláčik
Thanks Mark a lot!

I was overworked or something, that i didnt understand , that when i created
from shell as root initial mailinglist mailman, it created aliases with
root:mailman owner. Changing to apache:mailman helped and now it works fine.

Have a nice day,

David



On 11/22/07, Mark Sapiro <[EMAIL PROTECTED]> wrote:
>
> David Hlacik wrote:
> >
> >I need to setup mailman to use as MTA Postfix with virtual domains.
> >
> >I have 2 virtual domains 'something.domain.com' 'something2.domain.com'
> >
> >something.domain.com belongs to FQDN of server running mailman
> >
> >Configuration of my  mm_cfg.py
> >
> >
> >add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
>
>
> The line above is redundant if you haven't first changed
> DEFAULT_URL_HOST or DEFAULT_EMAIL_HOST.
>
>
> >add_virtualhost('something2.domain.com','something2.domain.com')
> >
> >##
> ># Put YOUR site-specific configuration below, in mm_cfg.py . #
> ># See Defaults.py for explanations of the values.#
> >
> ># Note - if you're looking for something that is imported from mm_cfg,
> but
> >you
> ># didn't find it above, it's probably in Defaults.py.
> >
> >MTA='Postfix'
> >POSTFIX_STYLE_VIRTUAL_DOMAINS = ['something.domain.com','
> >something2.domain.com']
>
>
> This may or may not be correct depending on your Postfix configuration.
> If 'something.domain.com' is in virtual_alias_domains in main.cf, then
> the above is correct, but if only 'something2.domain.com' is in
> virtual_alias_domains (something.domain.com is mydomain), then you want
>
> POSTFIX_STYLE_VIRTUAL_DOMAINS = ['something2.domain.com']
>
>
> >--
> >
> >I ve generated default list mailman, set site password using mmsutepass.
> >
> >All i want is to properly generate virtual-mailman for postfix.
> >
> >The problem is adding a new mailinglist. When i will follow
> >http://something2.domain.com/mailman/admin and will add new mailinglist
> >called test for example after clicking on create mailinglist mailman will
> >come up with a message
> >Bug in Mailman version 2.1.9
> >
> >We're sorry, we hit a bug!
> >
> >Please inform the webmaster for this site of this problem. Printing of
> >traceback and other system information has been explicitly inhibited, but
> >the webmaster can find this information in the Mailman error logs.
> >
> >this is mailman error log :
> >
> >
> >
> >Nov 22 18:30:30 2007 admin(3098):
> >
> >admin(3098): [- Mailman Version: 2.1.9 -]
> >admin(3098): [- Traceback --]
> >admin(3098): Traceback (most recent call last):
> >admin(3098):   File "/usr/lib/mailman/scripts/driver", line 101, in
> run_main
> >admin(3098): main()
> >admin(3098):   File "/usr/lib/mailman/Mailman/Cgi/create.py", line 56, in
> >main
> >admin(3098): process_request(doc, cgidata)
> >admin(3098):   File "/usr/lib/mailman/Mailman/Cgi/create.py", line 238,
> in
> >process_request
> >admin(3098): sys.modules[modname].create(mlist, cgi=1)
> >admin(3098):   File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 232,
> in
> >create
> >admin(3098): _update_maps()
> >admin(3098):   File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 53,
> in
> >_update_maps
> >admin(3098): raise RuntimeError, msg % (acmd, status, errstr)
> >admin(3098): RuntimeError: command failed: /usr/sbin/postalias
> >/etc/mailman/aliases (status:
> >1, Operation not permitted)
> >admin(3098): [- Python Information -]
> >
> >Thanks for helping me solving a problem.
>
>
> I'm not sure what the exact cause is, but the problem is that
> /usr/sbin/postalias when run as user=(apache or whatever your web
> server runs as) and group=mailman doesn't have sufficient access to
> read /etc/mailman/aliases and/or write/create /etc/mailman/aliases.db.
>
> This may be a SeLinux issue. It may be a simple permissions issue. The
> location of aliases and virtual-mailman in /etc/mailman is a RedHat
> specific FHS modification, and I'm not sure about the permissions in
> this case, but I think /etc/mailman should be group:mailman and
> permissions rwxrwsr-w, and the aliases and virtual-mailman files
> should be also group:mailman and permissions rw-rw-r--.
>
> If the permissions are as I note (in particular /etc/mailman/ is
> SETGID, group writable and group:mailman, and the files are group
> writable, group:mailman and world readable), and you still have this
> problem, then I think it must be a SeLinux issue.
>
> --
> 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.

Re: [Mailman-Users] mailman on CentOS, with virtual domain configuration for Postfix

2007-11-22 Thread Mark Sapiro
David Hlacik wrote:
>
>I need to setup mailman to use as MTA Postfix with virtual domains.
>
>I have 2 virtual domains 'something.domain.com' 'something2.domain.com'
>
>something.domain.com belongs to FQDN of server running mailman
>
>Configuration of my  mm_cfg.py
>
>
>add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)


The line above is redundant if you haven't first changed
DEFAULT_URL_HOST or DEFAULT_EMAIL_HOST.


>add_virtualhost('something2.domain.com','something2.domain.com')
>
>##
># Put YOUR site-specific configuration below, in mm_cfg.py . #
># See Defaults.py for explanations of the values.#
>
># Note - if you're looking for something that is imported from mm_cfg, but
>you
># didn't find it above, it's probably in Defaults.py.
>
>MTA='Postfix'
>POSTFIX_STYLE_VIRTUAL_DOMAINS = ['something.domain.com','
>something2.domain.com']


This may or may not be correct depending on your Postfix configuration.
If 'something.domain.com' is in virtual_alias_domains in main.cf, then
the above is correct, but if only 'something2.domain.com' is in
virtual_alias_domains (something.domain.com is mydomain), then you want

POSTFIX_STYLE_VIRTUAL_DOMAINS = ['something2.domain.com']


>--
>
>I ve generated default list mailman, set site password using mmsutepass.
>
>All i want is to properly generate virtual-mailman for postfix.
>
>The problem is adding a new mailinglist. When i will follow
>http://something2.domain.com/mailman/admin and will add new mailinglist
>called test for example after clicking on create mailinglist mailman will
>come up with a message
>Bug in Mailman version 2.1.9
>
>We're sorry, we hit a bug!
>
>Please inform the webmaster for this site of this problem. Printing of
>traceback and other system information has been explicitly inhibited, but
>the webmaster can find this information in the Mailman error logs.
>
>this is mailman error log :
>
>
>
>Nov 22 18:30:30 2007 admin(3098):
>
>admin(3098): [- Mailman Version: 2.1.9 -]
>admin(3098): [- Traceback --]
>admin(3098): Traceback (most recent call last):
>admin(3098):   File "/usr/lib/mailman/scripts/driver", line 101, in run_main
>admin(3098): main()
>admin(3098):   File "/usr/lib/mailman/Mailman/Cgi/create.py", line 56, in
>main
>admin(3098): process_request(doc, cgidata)
>admin(3098):   File "/usr/lib/mailman/Mailman/Cgi/create.py", line 238, in
>process_request
>admin(3098): sys.modules[modname].create(mlist, cgi=1)
>admin(3098):   File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 232, in
>create
>admin(3098): _update_maps()
>admin(3098):   File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 53, in
>_update_maps
>admin(3098): raise RuntimeError, msg % (acmd, status, errstr)
>admin(3098): RuntimeError: command failed: /usr/sbin/postalias
>/etc/mailman/aliases (status:
>1, Operation not permitted)
>admin(3098): [- Python Information -]
>
>Thanks for helping me solving a problem.


I'm not sure what the exact cause is, but the problem is that
/usr/sbin/postalias when run as user=(apache or whatever your web
server runs as) and group=mailman doesn't have sufficient access to
read /etc/mailman/aliases and/or write/create /etc/mailman/aliases.db.

This may be a SeLinux issue. It may be a simple permissions issue. The
location of aliases and virtual-mailman in /etc/mailman is a RedHat
specific FHS modification, and I'm not sure about the permissions in
this case, but I think /etc/mailman should be group:mailman and
permissions rwxrwsr-w, and the aliases and virtual-mailman files
should be also group:mailman and permissions rw-rw-r--.

If the permissions are as I note (in particular /etc/mailman/ is
SETGID, group writable and group:mailman, and the files are group
writable, group:mailman and world readable), and you still have this
problem, then I think it must be a SeLinux issue.

-- 
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] mailman on CentOS, with virtual domain configuration for Postfix

2007-11-23 Thread Mark Sapiro
David Hlacik wrote:
>
>ive fixed the problem by changing owner of aliases, and virtual-mailman
>files to apache:mailman, the problem is , that postfix is now having problem
>to sending message :
>in postfix maillog i see :
>
>Nov 23 14:16:15 sx2 Mailman mail-wrapper: Group mismatch error. Mailman
>expected the mail wrapper script to be executed as one of the following
>groups: [mail, postfix, mailman, nobody, daemon], but the system's mail
>server executed the mail script as group: "apache". Try tweaking the mail
>server to run the script as one of these groups: [mail, postfix, mailman,
>nobody, daemon], or re-run configure providing the command line option:
>'--with-mail-gid=apache'.


See

for some detail.

The problem is you applied the wrong fix for your previous problem. Yo
made the aliases file owned by 'apache' so now Postfix runs the pipes
it finds there as user:group apache:apache.

The proper fix was to make mailman the owner and make sure the files
were group:mailman and also make sure that
/usr/lib/mailman/mail/mailman and all the files in
/usr/lib/mailman/cgi-bin are group mailman and SETGID.

-- 
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] mailman on CentOS, with virtual domain configuration for Postfix

2007-11-23 Thread David Hláčik
Hi,
ive fixed the problem by changing owner of aliases, and virtual-mailman
files to apache:mailman, the problem is , that postfix is now having problem
to sending message :
in postfix maillog i see :

Nov 23 14:16:15 sx2 Mailman mail-wrapper: Group mismatch error. Mailman
expected the mail wrapper script to be executed as one of the following
groups: [mail, postfix, mailman, nobody, daemon], but the system's mail
server executed the mail script as group: "apache". Try tweaking the mail
server to run the script as one of these groups: [mail, postfix, mailman,
nobody, daemon], or re-run configure providing the command line option:
'--with-mail-gid=apache'.
Nov 23 14:16:15 sx2 postfix/local[12548]: 4F4CB80085: to=<
[EMAIL PROTECTED]>, relay=local, delay=0.13, delays=0.05/0.01/0/0.06,
dsn=5.3.0, status=bounced (Command died with status 2:
"/usr/lib/mailman/mail/mailman post aha". Command output: Group mismatch
error. Mailman expected the mail wrapper script to be executed as one of the
following groups: [mail, postfix, mailman, nobody, daemon], but the system's
mail server executed the mail script as group: "apache". Try tweaking the
mail server to run the script as one of these groups: [mail, postfix,
mailman, nobody, daemon], or re-run configure providing the command line
option: '--with-mail-gid=apache'. )
Nov 23 14:16:15 sx2 postfix/cleanup[12534]: 6FF7680086: message-id=<
[EMAIL PROTECTED]>
Nov 23 14:16:15 sx2 postfix/smtpd[12531]: disconnect from sx2.
Thanks



On 11/22/07, Mark Sapiro <[EMAIL PROTECTED]> wrote:
>
> David Hlacik wrote:
> >
> >I need to setup mailman to use as MTA Postfix with virtual domains.
> >
> >I have 2 virtual domains 'something.domain.com' 'something2.domain.com'
> >
> > something.domain.com belongs to FQDN of server running mailman
> >
> >Configuration of my  mm_cfg.py
> >
> >
> >add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
>
>
> The line above is redundant if you haven't first changed
> DEFAULT_URL_HOST or DEFAULT_EMAIL_HOST.
>
>
> >add_virtualhost('something2.domain.com','something2.domain.com')
> >
> >##
> ># Put YOUR site-specific configuration below, in mm_cfg.py . #
> ># See Defaults.py for explanations of the values.#
> >
> ># Note - if you're looking for something that is imported from mm_cfg,
> but
> >you
> ># didn't find it above, it's probably in Defaults.py.
> >
> >MTA='Postfix'
> >POSTFIX_STYLE_VIRTUAL_DOMAINS = [' something.domain.com','
> >something2.domain.com']
>
>
> This may or may not be correct depending on your Postfix configuration.
> If 'something.domain.com' is in virtual_alias_domains in main.cf, then
> the above is correct, but if only ' something2.domain.com' is in
> virtual_alias_domains (something.domain.com is mydomain), then you want
>
> POSTFIX_STYLE_VIRTUAL_DOMAINS = [' something2.domain.com']
>
>
> >--
> >
> >I ve generated default list mailman, set site password using mmsutepass.
> >
> >All i want is to properly generate virtual-mailman for postfix.
> >
> >The problem is adding a new mailinglist. When i will follow
> >http://something2.domain.com/mailman/admin and will add new mailinglist
> >called test for example after clicking on create mailinglist mailman will
>
> >come up with a message
> >Bug in Mailman version 2.1.9
> >
> >We're sorry, we hit a bug!
> >
> >Please inform the webmaster for this site of this problem. Printing of
> >traceback and other system information has been explicitly inhibited, but
>
> >the webmaster can find this information in the Mailman error logs.
> >
> >this is mailman error log :
> >
> >
> >
> >Nov 22 18:30:30 2007 admin(3098):
> >
> >admin(3098): [- Mailman Version: 2.1.9 -]
> >admin(3098): [- Traceback --]
> >admin(3098): Traceback (most recent call last):
> >admin(3098):   File "/usr/lib/mailman/scripts/driver", line 101, in
> run_main
> >admin(3098): main()
> >admin(3098):   File "/usr/lib/mailman/Mailman/Cgi/create.py", line 56, in
> >main
> >admin(3098): process_request(doc, cgidata)
> >admin(3098):   File "/usr/lib/mailman/Mailman/Cgi/create.py", line 238,
> in
> >process_request
> >admin(3098): sys.modules[modname].create(mlist, cgi=1)
> >admin(3098):   File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 232,
> in
> >create
> >admin(3098): _update_maps()
> >admin(3098):   File "/usr/lib/mailman/Mailman/MTA/Postfix.py", line 53,
> in
> >_update_maps
> >admin(3098): raise RuntimeError, msg % (acmd, status, errstr)
> >admin(3098): RuntimeError: command failed: /usr/sbin/postalias
> >/etc/mailman/aliases (status:
> >1, Operation not permitted)
> >admin(3098): [- Python Information -]
> >
> >Thanks for helping me solving a problem.
>
>
> I'm not sure what the exact cause is, but the problem is that
> /usr/sbin/postalias when run as user=(apache or whatever your web
> server runs as) and group=mailman doesn't have sufficient acces