Public bug reported:

[/var/spool/postfix/private/dovecot-lmtp]: No such file or directory)


Configuration Summary

My operating system is Ubuntu Server 24.04

Installed packages:
sasl2-bin is already the newest version (2.1.28+dfsg1-5ubuntu3.1).
libsasl2-2 is already the newest version (2.1.28+dfsg1-5ubuntu3.1).
libsasl2-modules is already the newest version (2.1.28+dfsg1-5ubuntu3.1).
postfix is already the newest version (3.8.6-1build2).
postfix-ldap is already the newest version (3.8.6-1build2).
dovecot-core is already the newest version (2:2.4.2-1+ubuntu22.04).
dovecot-imapd is already the newest version (2:2.4.2-1+ubuntu22.04).
dovecot-pop3d is already the newest version (2:2.4.2-1+ubuntu22.04).
dovecot-lmtpd is already the newest version (2:2.4.2-1+ubuntu22.04).
dovecot-ldap is already the newest version (2:2.4.2-1+ubuntu22.04).


dovecot configuration:
# 2.4.2-1+ubuntu22.04 (0962ed2104): /etc/dovecot/dovecot.conf
# OS: Linux 6.8.0-88-generic x86_64 Ubuntu 24.04.3 LTS ext4
# Hostname: rosecoded.com
dovecot_config_version = 2.4.2
auth_mechanisms = plain login
dovecot_storage_version = 2.4.2
first_valid_uid = 8
ldap_auth_dn = cn=admin,dc=rosecoded,dc=com
ldap_auth_dn_password = # hidden, use -P to show it
ldap_base = dc=rosecoded,dc=com
ldap_uris = ldap://localhost
log_path = /var/log/dovecot.log
mail_control_path = /mnt/storage/mail/datafiles/control/%{user | username}
mail_driver = maildir
mail_home = /mnt/storage/mail/datafiles/mail/%{user | username}
mail_inbox_path = /mnt/storage/mail/datafiles/mail/%{user | username}
mail_index_path = /mnt/storage/mail/datafiles/indexes/%{user | username}
mail_path = /mnt/storage/mail/datafiles/mail/%{user | username}
mailbox_list_utf8 = yes
protocols = imap pop3 lmtp
passdb ldap {
  default_password_scheme = SSHA
  fields {
    password = %{ldap:userPassword}
    user = %{ldap:uid}
  }
  bind = no
  filter = 
(&(|(objectclass=inetOrgPerson)(objectclass=posixAccount))(|(uid=%{user})(mail=%{user})))
}
userdb ldap {
  fields {
    gid = mail
    home = /mnt/storage/mail/datafiles/mail/%{user}
    mail_path = /mnt/storage/mail/datafiles/mail/%{user}
    uid = mail
  }
  filter = 
(&(|(objectclass=inetOrgPerson)(objectclass=posixAccount))(|(uid=%{user})(mail=%{user})))
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  unix_listener auth-client {
    group = postfix
    mode = 0666
    user = mail
  }
}
namespace inbox {
  inbox = yes
  separator = /
}
ssl_server {
  cert_file = /etc/ssl/servers/mail/fullchain.pem
  key_file = /etc/ssl/servers/mail/privkey.pem
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0660
    user = postfix
  }
}

the socket exists:
ls -l /var/spool/postfix/private/dovecot-lmtp
srw-rw---- 1 postfix postfix 0 Dec  3 12:40 
/var/spool/postfix/private/dovecot-lmtp

sudo ss -l | grep lmtp
u_str LISTEN 0      100                           
/var/spool/postfix/private/dovecot-lmtp 4199195                         * 0     
     
u_str LISTEN 0      100                                                 
/run/dovecot/lmtp 4199192                         * 0          
u_str LISTEN 0      100                                                      
private/lmtp 4106033                         * 0

the socket works:
echo "Test message" | socat - 
UNIX-CONNECT:/var/spool/postfix/private/dovecot-lmtp
220 rosecoded.com Dovecot ready.

postfix configuration:

/etc/postfix/main.cf:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
debug_peer_list = localhost

smtpd_banner = mail.rosecoded.com ESMTP $mail_name
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
# fresh installs.
compatibility_level = 3.6

sendmail_path = /usr/bin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/servers/mail/cert.pem
smtpd_tls_key_file=/etc/ssl/servers/mail/privkey.pem
smtpd_tls_security_level=may
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_use_tls=yes

smtp_tls_CApath=/etc/ssl/certs
smtp_tls_security_level=may
smtp_tls_note_starttls_offer = yes

smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

myhostname = mail.rosecoded.com
mydomain = rosecoded.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, localhost.com, localhost
#mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 162.220.11.185/24
mynetworks = 127.0.0.0/8 162.220.11.185/32
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4

readme_directory = no

home_mailbox = Messages/

# SMTP Relay Settings:
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = 
static:[email protected]:ba76cc01578a3fb1f0d4680873e8f52b-235e4bb2-32cba892
smtp_use_tls=yes
header_size_limit = 4096000
relayhost = [smtp.mailgun.org]:587
relay_destination_concurrency_limit = 20
lmtp_destination_recipient_limit = 1

# Enable SASL authentication for incoming SMTP
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
#smtpd_sasl_security_options = noanonymous, noplaintext
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname

# Enable SASL authentication for outgoing SMTP
smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
#smtpd_sasl_security_options = noanonymous, noplaintext
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname

# Enable SASL authentication for outgoing SMTP
smtp_sasl_auth_enable = yes
smtp_sasl_type = dovecot
smtp_sasl_path = private/auth
smtp_sasl_security_options = noanonymous

virtual_transport = lmtp:unix:/var/spool/postfix/private/dovecot-lmtp
#virtual_transport = lmtp:unix:private/dovecot-lmtp
#virtual_transport = lmtp:unix:/var/run/dovecot/lmtp
virtual_mailbox_domains = /etc/postfix/virtual_mailbox_domains
virtual_mailbox_base = /mnt/storage/mail/datafiles/
virtual_mailbox_maps = ldap:/etc/postfix/ldap_maps.cf
virtual_alias_maps = ldap:/etc/postfix/ldap_virtual_users.cf
#virtual_alias_maps = hash:/etc/postfix/virtual 
ldap:/etc/postfix/ldap_virtual_users.cf
virtual_uid_maps = static:8
virtual_gid_maps = static:8
#mailbox_transport = lmtp:unix:private/dovecot-lmtp
mailbox_transport = lmtp:unix:/var/spool/postfix/private/dovecot-lmtp
smtpd_client_restrictions=
        permit_sasl_authenticated,
        permit_mynetworks,
        permit

smtpd_recipient_restrictions =
    permit_mynetworks,
    permit_sasl_authenticated,
    defer_unauth_destination,
    reject_invalid_hostname,
    reject_non_fqdn_hostname,
    reject_non_fqdn_sender,
    reject_non_fqdn_recipient,
    reject_unknown_sender_domain,
    reject_unknown_recipient_domain,
    reject_unauth_pipelining,
    reject_unauth_destination,
    permit_auth_destination,
    reject

smtpd_sender_restrictions=
        reject_unknown_sender_domain,
        reject_unlisted_sender,
        reject_unauthenticated_sender_login_mismatch,
        permit_sasl_authenticated
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, 
reject_unauth_destination
#smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated 
defer_unauth_destination
#smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated


/etc/postfix/master.cf:
#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master" or
# on-line: http://www.postfix.org/master.5.html).
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (no)    (never) (100)
# ==========================================================================
smtp      inet  n       -       y       -       -       smtpd
#smtp      inet  n       -       y       -       1       postscreen
#smtpd     pass  -       -       y       -       -       smtpd
#dnsblog   unix  -       -       y       -       0       dnsblog
#tlsproxy  unix  -       -       y       -       0       tlsproxy
submission inet n       -       y       -       -       smtpd
pickup    unix  n       -       y       60      1       pickup
cleanup   unix  n       -       y       -       0       cleanup
qmgr      unix  n       -       n       300     1       qmgr
#qmgr     unix  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       y       1000?   1       tlsmgr
rewrite   unix  -       -       y       -       -       trivial-rewrite
bounce    unix  -       -       y       -       0       bounce
defer     unix  -       -       y       -       0       bounce
trace     unix  -       -       y       -       0       bounce
verify    unix  -       -       y       -       1       verify
flush     unix  n       -       y       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       y       -       -       smtp
relay     unix  -       -       y       -       -       smtp
        -o syslog_name=postfix/$service_name
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       y       -       -       showq
error     unix  -       -       y       -       -       error
retry     unix  -       -       y       -       -       error
discard   unix  -       -       y       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       y       -       -       lmtp
  -o lmtp_data_done_timeout=120
dovecot   unix -       -       n       -       -       lmtp
  -o lmtp_data_done_timeout=120
anvil     unix  -       -       y       -       1       anvil
scache    unix  -       -       y       -       1       scache
postlog   unix-dgram n  -       n       -       1       postlogd
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRXhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} 
${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FRX user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py 
${nexthop} ${user}

ls -l /var/spool/postfix/private/
total 0
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 anvil
srw-rw---- 1 postfix postfix 0 Dec  3 17:08 auth
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 bounce
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 bsmtp
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 defer
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 discard
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 dovecot
srw-rw---- 1 postfix postfix 0 Dec  3 17:08 dovecot-lmtp
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 error
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 ifmail
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 lmtp
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 local
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 maildrop
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 mailman
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 proxymap
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 proxywrite
rw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 relay
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 retry
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 rewrite
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 scache
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 scalemail-backend
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 smtp
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 tlsmgr
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 trace
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 uucp
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 verify
srw-rw-rw- 1 postfix postfix 0 Dec  3 16:42 virtual

dpkg -l | grep sasl2-bin
ii  sasl2-bin                               2.1.28+dfsg1-5ubuntu3.1             
       amd64        Cyrus SASL - administration programs for
 SASL users database

ls -l /usr/lib/x86_64-linux-gnu/sasl2/
total 280
lrwxrwxrwx 1 root root    22 Aug  8  2024 libanonymous.so -> 
libanonymous.so.2.0.25
lrwxrwxrwx 1 root root    22 Aug  8  2024 libanonymous.so.2 -> 
libanonymous.so.2.0.25
-rw-r--r-- 1 root root 18808 Aug  8  2024 libanonymous.so.2.0.25
lrwxrwxrwx 1 root root    20 Aug  8  2024 libcrammd5.so -> libcrammd5.so.2.0.25
lrwxrwxrwx 1 root root    20 Aug  8  2024 libcrammd5.so.2 -> 
libcrammd5.so.2.0.25
-rw-r--r-- 1 root root 22904 Aug  8  2024 libcrammd5.so.2.0.25
lrwxrwxrwx 1 root root    22 Aug  8  2024 libdigestmd5.so -> 
libdigestmd5.so.2.0.25
lrwxrwxrwx 1 root root    22 Aug  8  2024 libdigestmd5.so.2 -> 
libdigestmd5.so.2.0.25
-rw-r--r-- 1 root root 64256 Aug  8  2024 libdigestmd5.so.2.0.25
lrwxrwxrwx 1 root root    18 Aug  8  2024 liblogin.so -> liblogin.so.2.0.25
lrwxrwxrwx 1 root root    18 Aug  8  2024 liblogin.so.2 -> liblogin.so.2.0.25
-rw-r--r-- 1 root root 22904 Aug  8  2024 liblogin.so.2.0.25
lrwxrwxrwx 1 root root    17 Aug  8  2024 libntlm.so -> libntlm.so.2.0.25
lrwxrwxrwx 1 root root    17 Aug  8  2024 libntlm.so.2 -> libntlm.so.2.0.25
-rw-r--r-- 1 root root 39288 Aug  8  2024 libntlm.so.2.0.25
lrwxrwxrwx 1 root root    20 Aug  8  2024 libcrammd5.so -> libcrammd5.so.2.0.25
lrwxrwxrwx 1 root root    20 Aug  8  2024 libcrammd5.so.2 -> 
libcrammd5.so.2.0.25
-rw-r--r-- 1 root root 22904 Aug  8  2024 libcrammd5.so.2.0.25
lrwxrwxrwx 1 root root    22 Aug  8  2024 libdigestmd5.so -> 
libdigestmd5.so.2.0.25
lrwxrwxrwx 1 root root    22 Aug  8  2024 libdigestmd5.so.2 -> 
libdigestmd5.so.2.0.25
-rw-r--r-- 1 root root 64256 Aug  8  2024 libdigestmd5.so.2.0.25
lrwxrwxrwx 1 root root    18 Aug  8  2024 liblogin.so -> liblogin.so.2.0.25
lrwxrwxrwx 1 root root    18 Aug  8  2024 liblogin.so.2 -> liblogin.so.2.0.25
-rw-r--r-- 1 root root 22904 Aug  8  2024 liblogin.so.2.0.25
lrwxrwxrwx 1 root root    17 Aug  8  2024 libntlm.so -> libntlm.so.2.0.25
lrwxrwxrwx 1 root root    17 Aug  8  2024 libntlm.so.2 -> libntlm.so.2.0.25
-rw-r--r-- 1 root root 39288 Aug  8  2024 libntlm.so.2.0.25
lrwxrwxrwx 1 root root    18 Aug  8  2024 libplain.so -> libplain.so.2.0.25
lrwxrwxrwx 1 root root    18 Aug  8  2024 libplain.so.2 -> libplain.so.2.0.25
-rw-r--r-- 1 root root 22904 Aug  8  2024 libplain.so.2.0.25
lrwxrwxrwx 1 root root    19 Aug  8  2024 libsasldb.so -> libsasldb.so.2.0.25
lrwxrwxrwx 1 root root    19 Aug  8  2024 libsasldb.so.2 -> libsasldb.so.2.0.25
-rw-r--r-- 1 root root 34880 Aug  8  2024 libsasldb.so.2.0.25
lrwxrwxrwx 1 root root    18 Aug  8  2024 libscram.so -> libscram.so.2.0.25
lrwxrwxrwx 1 root root    18 Aug  8  2024 libscram.so.2 -> libscram.so.2.0.25
-rw-r--r-- 1 root root 48280 Aug  8  2024 libscram.so.2.0.25

tail -f /var/log/mail.err
2025-12-03T22:42:03.127886-08:00 rosecoded postfix/smtp[1137985]: fatal: SASL 
library initialization

grep /var/spool/postfix/private/dovecot-lmtp /var/log/mail.log
2025-12-04T06:17:58.440695-08:00 rosecoded postfix/lmtp[1234466]: 91015400136: 
to=<[email protected]>, relay=none, delay=201557, delays=
201557/0.11/0/0, dsn=4.4.1, status=deferred (connect to 
mail.rosecoded.com[/var/spool/postfix/private/dovecot-lmtp]: No such file or 
directo
ry)

I found a bug in postfix 3.8.6

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: postfix 3.8.6-1build2
ProcVersionSignature: Ubuntu 6.8.0-88.89-generic 6.8.12
Uname: Linux 6.8.0-88-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.8
Architecture: amd64
CasperMD5CheckResult: pass
CloudArchitecture: x86_64
CloudID: none
CloudName: none
CloudPlatform: none
CloudSubPlatform: config
CurrentDesktop: X-Cinnamon
Date: Thu Dec  4 07:53:18 2025
DuplicateSignature: InvalidHostOrDomain
EtcMailname: rosecoded.com
Hostname: rosecoded.com
InstallationDate: Installed on 2021-01-21 (1778 days ago)
InstallationMedia: Ubuntu-Server 20.04.1 LTS "Focal Fossa" - Release amd64 
(20200731)
PostconfMydomain:
 rosecoded.com
 /usr/sbin/postconf: warning: /etc/postfix/master.cf: unused parameter: 
lmtp_count=1
PostconfMyhostname:
 mail.rosecoded.com
 /usr/sbin/postconf: warning: /etc/postfix/master.cf: unused parameter: 
lmtp_count=1
PostconfMyorigin:
 /etc/mailname
 /usr/sbin/postconf: warning: /etc/postfix/master.cf: unused parameter: 
lmtp_count=1
SourcePackage: postfix
UpgradeStatus: Upgraded to noble on 2025-11-30 (4 days ago)

** Affects: postfix (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble regression-retracer

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2133880

Title:
  postfix 3.8.6 bug --> [/var/spool/postfix/private/dovecot-lmtp]: No
  such file or directory)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/2133880/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to