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 <http://wiki.list.org/x/8486953>. 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 <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better 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

Reply via email to