From owner-freebsd-ports@freebsd.org Thu Apr 21 19:05:36 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 16A56B18F4C; Thu, 21 Apr 2016 19:05:36 +0000 (UTC) (envelope-from mikej@mikej.com) Received: from mx2.paymentallianceintl.com (mx2.paymentallianceintl.com [216.26.158.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx2.paymentallianceintl.com", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D11C010E0; Thu, 21 Apr 2016 19:05:35 +0000 (UTC) (envelope-from mikej@mikej.com) Received: from firewall.mikej.com (162-230-214-65.lightspeed.lsvlky.sbcglobal.net [162.230.214.65]) by mx2.paymentallianceintl.com (8.15.1/8.15.1) with ESMTPS id u3LJ2V9q079691 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 21 Apr 2016 15:02:32 -0400 (EDT) (envelope-from mikej@mikej.com) X-Authentication-Warning: mx2.paymentallianceintl.com: Host 162-230-214-65.lightspeed.lsvlky.sbcglobal.net [162.230.214.65] claimed to be firewall.mikej.com Received: from mail.mikej.com (firewall.mikej.com [192.168.6.63]) by firewall.mikej.com (8.15.2/8.15.2) with ESMTP id u3LJ25Qj075983; Thu, 21 Apr 2016 15:02:06 -0400 (EDT) (envelope-from mikej@mikej.com) DMARC-Filter: OpenDMARC Filter v1.3.1 firewall.mikej.com u3LJ25Qj075983 Authentication-Results: mail.mikej.com; dmarc=none header.from=mikej.com DKIM-Filter: OpenDKIM Filter v2.10.3 firewall.mikej.com u3LJ25Qj075983 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mikej.com; s=mail; t=1461265328; bh=ZS4i6nF+x5BTlDbuafz5UBOFc7uHrW/hezu2j1rBLTM=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=CYBvVe0aXF76eJ3Mw1uLg7bKOGexnkfFPh5jdXTh1qGbQt6sYdFtcty0ozeWyMqlh TNA8ckvKmYNYYV3inAU4P2U3A1frnd+QWqNJ8wcVkGBVLfqad9AVlW5wWQoN/hkvCX 0G2+Uq31JgV/Au7YDKuZC0j6rLI4sv2qpGYim+n/dM5LpLKe/p6Jgc/2fZ6iyJhMPt 7Woxu+XNEmAQqeZugu88gJabjeG56SotLfaip2//VEBuuZdO0KhCp5zLWkDEQUmNjD JQZdWGhMKQtxrXYWXTU/soJ2u4s4UCkXD0mE+5CeHdLf3Vejr7B9USm6g9ghsSFjZb e1ghIMnjuL2Fg== X-Authentication-Warning: firewall.mikej.com: Host firewall.mikej.com [192.168.6.63] claimed to be mail.mikej.com MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 21 Apr 2016 15:02:05 -0400 From: Michael Jung To: Jim Ohlstein Cc: Alphons van Werven , Miroslav Lachman <000.fbsd@quip.cz>, FreeBSD Ports ML , owner-freebsd-ports@freebsd.org Subject: Re: Mailman in a jail In-Reply-To: <5719177B.5060209@ohlste.in> 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> Message-ID: <7af4d789e941e1b12231f9ea9c98bba3@mail.mikej.com> X-Sender: mikej@mikej.com User-Agent: Roundcube Webmail/1.1.4 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 19:05:36 -0000 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' Could it be as simple as postfix is not listening on port 25? Can you 'telnet localhost 25' and "telnet 25' sucessfully? --mikej