Mailman in a jail

Matthew Seaman matthew at
Thu Apr 21 15:39:32 UTC 2016

On 04/21/16 16:21, Jim Ohlstein wrote:
> I'm trying to get Mailman working in a 10.3 amd64 jail. Everything
> works, except Mailman doesn't talk to Postfix. Incoming mail works and
> posts to the list's archives but no outgoing email is sent. I asked in
> the Mailman list and they seem to think it's related to running in a jail.
> If anyone's gotten this running in a jail I'd appreciate some input. I'm
> not married to Postfix - willing to use a different MTA.

Does mailman try and communicate with postfix over a network socket
bound to the loopback address?

That's a common gotcha in jails.  There isn't an accessible loopback
address in a jail[*], but the kernel intercepts connection attempts and
redirects things via the jail's primary address.  So an application that
tries to bind to ends up binding to or whatever the
jail address is.  Most of the time you'll get away with this.  However
some more security aware applications (like postfix) realise something
dodgy is going on and refuse to play.

The answer is basically to configure mailman to talk to postfix by the
jail's IP explicitly.



[*] Unless you're using VIMAGE jails, but that's a topic for another day...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the freebsd-ports mailing list