Mailman in a jail

Michael Jung mikej at mikej.com
Thu Apr 21 19:05:36 UTC 2016


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 at lists.my.domain>
> Apr 21 14:06:45 2016 (70072) delivery to email at 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 <your-hosts-ip> 25' 
sucessfully?


--mikej


More information about the freebsd-ports mailing list