On 10/20/19 3:55 PM, Hristo Venev via Mailman-users wrote:
How do I configure mailman to use a unix socket for lmtp connections? Setting
[mta] incoming: mailman.mta.null.NullMTA lmtp_host: /path/to/socket
does not work. Mailman still tries to create a TCP socket.
You can't do this. Mail Delivery is to Mailman's lmtp runner which uses the LMTP class in aiosmtpd <https://aiosmtpd.readthedocs.io/en/latest/> to create an LMTP server which listens for tcp connection on lmtp_host:lmtp_port.
You would have to modify mailman/runners/lmtp.py to listen on a unix socket. The docs imply the aiosmtpd.controller.Controller class has a make_socket() method which "allows subclasses to customize the creation of the socket before binding" which I suppose could be used to create a unix socket, but mailman/runners/lmtp.py currently doesn't make use of that.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan