From owner-freebsd-ports@freebsd.org Thu Apr 21 21:04:01 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69B00B18422 for ; Thu, 21 Apr 2016 21:04:01 +0000 (UTC) (envelope-from rde@tavi.co.uk) Received: from kipling.tavi.co.uk (kipling.tavi.co.uk [81.187.145.130]) by mx1.freebsd.org (Postfix) with ESMTP id 2E157168B for ; Thu, 21 Apr 2016 21:04:00 +0000 (UTC) (envelope-from rde@tavi.co.uk) Received: from raksha.tavi.co.uk (raksha.tavi.co.uk [81.187.145.139]) by kipling.tavi.co.uk (Postfix) with ESMTP id 99D2D9CC61 for ; Thu, 21 Apr 2016 21:39:04 +0100 (BST) Date: Thu, 21 Apr 2016 21:39:04 +0100 From: Bob Eager 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> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; i386-portbld-freebsd10.1) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUwXjFLc0vD0cS7y7zw9PDZ4tkWSRaVrZZ+m39qi2tXfVj////7+/utwK4IPggAOAAJUUA7AAABKklEQVQ4jWPYjQMwDFYJp0NKEKCNJmEf9h8CsimXiL2e33s3/e7F7K2Cs3f3dCMkQkMKj4YuCY3K3iR+e7fMaiSjvkX0/5cFGrWpe2uLzOpaExUVqMS/8PX/Re5ey960OLBTZpFA8+IlSBKPQ92zNyUUBsosN58uIY0k8f+/ONCoYytkVuhWzVwNkYiYbqk5M3NmOVBi41YZ8RsGF7shEtFb5KJ3r969CyixM7OTPeFUxG2IxLO8/9/SvqXlc+/x3h295YzLlj2nIRJQj//nRvc5TEIal8RsXBLVuCQwIgoq/u80DomP6HEOk/iOS+IJLonZOCT+ReOQ+Lkbh0QKLonbOCR+7MYhsRqHBJrVcIl/1TgklqKLQyQ+tGKIgyQOqXpjig94diZRAgAXmDX6jyWafAAAAABJRU5ErkJggg====== MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2016 21:04:01 -0000 On Thu, 21 Apr 2016 15:02:05 -0400 Michael Jung 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: > > > > 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.