Debian 12 postfix errors: "warning: connect to transport private/lmtp: Connection refused" and "status=deferred (mail transport unavailable)"

Hello to all:
My apache2 issues are resolved. My xapian issues are not yet resolved, but this transport error is more important. I have de-configured lmtp within dovecot. I mistakenly confused the lmtp feature in mailman3 with a requirement for an lmtp implementation with dovecot.
Gosh I'm following https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/docs/mta.ht... and https://docs.mailman3.org/en/latest/install/virtualenv.html
Please observe mailman.cfg extract, postconf -n, /opt/mailman/mm/var/data/postfix_lmtp extract, telnet localhost 9024 and journal entries.
[812] # awk -v RS="\n\n" '/\[mta/{print}' /etc/mailman3/mailman.cfg [mta] verp_confirmations: yes verp_personalized_deliveries: yes verp_delivery_interval: 1 [mta] incoming: mailman.mta.postfix.LMTP outgoing: mailman.mta.deliver.deliver lmtp_host: 127.0.0.1 lmtp_port: 9024 smtp_host: smtp.bellnet.ca smtp_port: 25 #configuration: python:mailman.config.postfix
[799] # postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases append_dot_mydomain = no biff = no compatibility_level = 3.6 inet_protocols = ipv4 local_recipient_maps = hash:/opt/mailman/mm/var/data/postfix_lmtp mailbox_size_limit = 0 masquerade_domains = systemdatabase.ca milter_default_action = accept milter_protocol = 2 mydestination = $myhostname, systemdatabase.ca, localhost.systemdatabase.ca, localhost, systemdatabase.homelinux.com mydomain = systemdatabase.ca myhostname = systemdatabase.ca mynetworks = 127.0.0.0/8 myorigin = systemdatabase.ca non_smtpd_milters = $smtpd_milters owner_request_special = no proxy_interfaces = 192.168.1.8 readme_directory = no recipient_delimiter = + relay_domains = hash:/opt/mailman/mm/var/data/postfix_domains relayhost = [smtp.bellnet.ca]:25 smtp_tls_loglevel = 1 smtp_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1 smtp_tls_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1 smtp_tls_security_level = may smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) smtpd_milters = inet:localhost:8891 smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination permit_inet_interfaces smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination permit_inet_interfaces smtpd_tls_cert_file = /etc/letsencrypt/live/systemdatabase.ca-0001/fullchain.pem smtpd_tls_key_file = /etc/letsencrypt/live/systemdatabase.ca-0001/privkey.pem smtpd_tls_loglevel = 1 smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1 smtpd_tls_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1 smtpd_tls_security_level = may smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtputf8_enable = no transport_maps = hash:/opt/mailman/mm/var/data/postfix_lmtp unknown_local_recipient_reject_code = 550 virtual_mailbox_maps = hash:/opt/mailman/mm/var/data/postfix_lmtp
[813] # awk -v RS="\n\n" '/ebill/{print}' /opt/mailman/mm/var/data/postfix_lmtp ebill@systemdatabase.ca lmtp:[127.0.0.1]:9024 ebill-bounces@systemdatabase.ca lmtp:[127.0.0.1]:9024 ebill-confirm@systemdatabase.ca lmtp:[127.0.0.1]:9024 ebill-join@systemdatabase.ca lmtp:[127.0.0.1]:9024 ebill-leave@systemdatabase.ca lmtp:[127.0.0.1]:9024 ebill-owner@systemdatabase.ca lmtp:[127.0.0.1]:9024 ebill-request@systemdatabase.ca lmtp:[127.0.0.1]:9024 ebill-subscribe@systemdatabase.ca lmtp:[127.0.0.1]:9024 ebill-unsubscribe@systemdatabase.ca lmtp:[127.0.0.1]:9024
[797] # telnet localhost 9024 Trying ::1... Connection failed: Connection refused Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 shackleton12.systemdatabase.ca GNU Mailman LMTP runner 2.0 QUIT 221 Bye Connection closed by foreign host.
[797] # lsof -i -P -n | grep -e "\(:587\>\|:8024\>\|:8891\>\|:25\>\|:9024\>\)" opendkim 3134524 opendkim 3u IPv4 17484764 0t0 TCP 127.0.0.1:8891 (LISTEN) master 3238178 root 13u IPv4 18076567 0t0 TCP *:25 (LISTEN) master 3238178 root 17u IPv4 18076570 0t0 TCP *:587 (LISTEN) python3 3240659 mailman 26u IPv4 18095451 0t0 TCP 127.0.0.1:9024 (LISTEN)
[818] # journalctl -n 3000|grep postfi|grep "Apr 07 14:13" Apr 07 14:13:27 shackleton12 postfix/qmgr[3240968]: 88A222D6E: from=<pjbondi@systemdatabase.com>, size=2009, nrcpt=1 (queue active) Apr 07 14:13:27 shackleton12 postfix/qmgr[3240968]: warning: connect to transport private/lmtp: Connection refused Apr 07 14:13:27 shackleton12 postfix/error[3246571]: 88A222D6E: to=<ebill@systemdatabase.ca>, relay=none, delay=528, delays=528/0.03/0/0.04, dsn=4.3.0, status=deferred (mail transport unavailable)
I've tried to enable debugging for postfix, but cannot get more details on warning: connect to transport private/lmtp: Connection refused nor (mail transport unavailable)

On 4/7/25 12:00, Philip Bondi wrote:
[mta] incoming: mailman.mta.postfix.LMTP outgoing: mailman.mta.deliver.deliver lmtp_host: 127.0.0.1 lmtp_port: 9024
Why are you setting this? Testing uses port 9024 to avoid conflicts, but the default port 8024 should be used for production.
[799] # postconf -n ... virtual_mailbox_maps = hash:/opt/mailman/mm/var/data/postfix_lmtp
Why do you have this? It may well be the issue.
ebill@systemdatabase.ca lmtp:[127.0.0.1]:9024 ebill-bounces@systemdatabase.ca lmtp:[127.0.0.1]:9024 ebill-confirm@systemdatabase.ca lmtp:[127.0.0.1]:9024 ebill-join@systemdatabase.ca lmtp:[127.0.0.1]:9024 ebill-leave@systemdatabase.ca lmtp:[127.0.0.1]:9024 ebill-owner@systemdatabase.ca lmtp:[127.0.0.1]:9024 ebill-request@systemdatabase.ca lmtp:[127.0.0.1]:9024 ebill-subscribe@systemdatabase.ca lmtp:[127.0.0.1]:9024 ebill-unsubscribe@systemdatabase.ca lmtp:[127.0.0.1]:9024
[797] # telnet localhost 9024 Trying ::1... Connection failed: Connection refused Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 shackleton12.systemdatabase.ca GNU Mailman LMTP runner 2.0 QUIT 221 Bye Connection closed by foreign host.
It looks like you can connect to port 9024 in this way. However I
recommend removing lmtp_port: 9024
from your mailman.cfg and rerunning
mailman aliases
to regenerate the postfix maps.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Philip Bondi writes:
[818] # journalctl -n 3000|grep postfi|grep "Apr 07 14:13" Apr 07 14:13:27 shackleton12 postfix/qmgr[3240968]: 88A222D6E: from=<pjbondi@systemdatabase.com>, size=2009, nrcpt=1 (queue active) Apr 07 14:13:27 shackleton12 postfix/qmgr[3240968]: warning: connect to transport private/lmtp: Connection refused
As Mark suggests, the entry for virtual_mailbox_recipients should be deleted (but I'm doubtful that will help because I see no entry for virtual_mailbox_domains). If that doesn't help, look at Postfix's master.cf. Check for entries referring to lmtp and 9024.
-- GNU Mailman consultant (installation, migration, customization) Sirus Open Source https://www.siriusopensource.com/ Software systems consulting in Europe, North America, and Japan
participants (3)
-
Mark Sapiro
-
Philip Bondi
-
Stephen J. Turnbull