Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2016 21:39:04 +0100
From:      Bob Eager <rde@tavi.co.uk>
To:        freebsd-ports@freebsd.org
Subject:   Re: Mailman in a jail
Message-ID:  <20160421213904.121b8025@raksha.tavi.co.uk>
In-Reply-To: <7af4d789e941e1b12231f9ea9c98bba3@mail.mikej.com>
References:  <5718F000.7010405@ohlste.in> <5718F7FE.1020701@quip.cz> <92C39496-20D8-4FA6-A967-DCF45D4244B6@ohlste.in> <20160421173128.GA45051@spectrum.skysmurf.nl> <5719177B.5060209@ohlste.in> <7af4d789e941e1b12231f9ea9c98bba3@mail.mikej.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 21 Apr 2016 15:02:05 -0400
Michael Jung <mikej@mikej.com> wrote:

> On 2016-04-21 14:10, Jim Ohlstein wrote:
> > Hello,
> > 
> > On 4/21/16 1:31 PM, Alphons van Werven wrote:
> >> Jim Ohlstein wrote:
> >> 
> >>> Mailman logs show connection errors.
> >> 
> >> I don't know exactly how Postfix and Mailman (try to) communicate
> >> with one
> >> another, but is it possible that SysV IPC has to be enabled for
> >> the jail?
> >> Or maybe raw sockets, although that's probably less likely.
> > 
> > Enabling each did not change the problem. I still see multiple lines
> > like this in Mailman's logs:
> > 
> > Apr 21 14:06:45 2016 (70072) Low level smtp error: [Errno 61]
> > Connection refused, msgid:
> > <mailman.0.1461262003.70138.c2-list@lists.my.domain>
> > Apr 21 14:06:45 2016 (70072) delivery to email@doman.com failed with
> > code -1: [Errno 61] Connection refused
> > 
> > and nothing in /var/log/maillog
> 
> 
> 
> A long time ago I setup mailman with postfix but not in a jail, from
> my notes here is all I had in
> 
> /usr/local/mailman/Mailman/mm_cfg.py
> 
> IMAGE_LOGOS = '/icons/'
> add_virtualhost('lists.foo.com', 'lists.foo.com')
> POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.foo.com']
> DEFAULT_EMAIL_HOST = 'lists.foo.com'
> DEFAULT_URL_HOST = 'lists.foo.com'
> MTA = 'Postfix'
> 
> If you look at /usr/local/etc/mailman/Mailman/Defaults.py and you
> haven't changed the directives below in in mm_cfg.py then they are
> 
> DELIVERY_MODULE = 'SMTPDirect'
> SMTPHOST = 'localhost'

If the mail server is running on lists.foo.com, that's fine. If it's
running on another hostname, then you'll need:

 VIRTUAL_MAILMAN_LOCAL_DOMAIN = 'another.host.name'

as well. I remember adding code for that years ago, and passing it back
to the Mailman people. It made it in eventually.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160421213904.121b8025>