
Hello,
I am trying to set up a new system for a new list but finding that outgoing mail is failing.
The setup I have is FreeBSD 10.3 in a jail with localhost at 10.0.250.37. I have confirmed that routing in and out of the jail are correct by sending mail from it via command line, via telnet, and by posting to a newly created list. Unfortunately those messages are not relayed out, nor are list invitations.
The system is Mailman 2.1.21, Postfix 3.1.0, and Python 2.7.11.
I see this in logs/smtp-failure:
Apr 20 23:07:27 2016 (19197) Low level smtp error: [Errno 61] Connection refused, msgid: mailman.0.1461205537.18941.c2-list@lists.my.domain Apr 20 23:07:27 2016 (19197) delivery to my@email.address failed with code -1: [Errno 61] Connection refused Apr 20 23:07:27 2016 (19197) Low level smtp error: [Errno 61] Connection refused, msgid: mailman.0.1461205853.19010.c2-list@lists.my.domain Apr 20 23:07:27 2016 (19197) delivery to my@email.address ailed with code -1: [Errno 61] Connection refused Apr 20 23:07:27 2016 (19197) Low level smtp error: [Errno 61] Connection refused, msgid: mailman.0.1461206277.19201.c2-list@lists.my.domain Apr 20 23:07:27 2016 (19197) delivery to my@email.address failed with code -1: [Errno 61] Connection refused Apr 20 23:07:27 2016 (19197) Low level smtp error: [Errno 61] Connection refused, msgid: mailman.0.1461207076.19195.mailman@lists.my.domain Apr 20 23:07:27 2016 (19197) delivery to my@email.address failed with code -1: [Errno 61] Connection refused
Nothing shows up in Postfix logs for these refused connections.
And lots of lines that look like this in logs/post: Apr 20 23:07:26 2016 (19197) post to c2-list from c2-list-bounces@lists.my.domain, size=583, message-id=mailman.0.1461205085.18509.c2-list@lists.my.domain, 1 failures
Scanning Google I saw issues where there were errors in /etc/hosts. That file is world-readable and there is a correct entry for localhost. I have also confirmed that Postfix is listening on 25 on localhost using telnet and sockstat:
# telnet localhost 25 Trying 10.0.250.37... Connected to localhost. Escape character is '^]'. 220 lists.my.domain ESMTP Postfix
The above works for root and for a non-root user.
# sockstat | grep 25 postfix smtpd 19679 6 tcp4 10.0.250.37:25 *:* root master 19170 13 tcp4 10.0.250.37:25 *:*
I'm at a loss as to where to look next. Thanks for any input.

On 04/20/2016 08:29 PM, Jim Ohlstein wrote:
I see this in logs/smtp-failure:
Apr 20 23:07:27 2016 (19197) Low level smtp error: [Errno 61] Connection refused, msgid: mailman.0.1461205537.18941.c2-list@lists.my.domain Apr 20 23:07:27 2016 (19197) delivery to my@email.address failed with code -1: [Errno 61] Connection refused
...
I'm at a loss as to where to look next. Thanks for any input.
See the FAQ at https://wiki.list.org/x/4030716. Towards the bottom you will see how to enable smtplib debugging. Do that, and see what additional info you get.
I suspect that this is related to the jail somehow.
I also suspect you won't get much additional info from the debug output. If there is no 'connect' logged in Postfix, you aren't even getting that far. If you can connect from the jail manually via telnet as the Mailman user, it must be something to do with how the jail treats the OutgoingRunner process. If you can't, then that's the problem.
participants (2)
-
Jim Ohlstein
-
Mark Sapiro