Dovecot_lmtp defer in /var/log/exim4/mainlog

Ubuntu Version

Ubuntu 26.04 LTS Flavors

Desktop Environment (if applicable)

Other

Problem Description

Hello!

After a partially failed upgrade of Ubuntu on a cloud, most things seem to work except delivery of incoming mail to ~/Maildir.

I can read my Maildir using Thunderbird and Dovecot, and send mail using Thunderbird and Exim4. However, incoming mail doesn’t pop up in ~/Maildir but instead gets stuck in the mail queue.

I post excepts of

/var/log/exim4/mainlog:

2026-10-06 11:17:28 no host name found for IP address 160.250.128.49
2026-10-06 11:17:28 1xE0jS-00000000C7Z-2mhM == per@kaffe.mustafejen.se R=local_user T=dovecot_lmtp defer (-1): LMTP connection closed after initial connection
2026-10-06 11:17:28 1xDzwu-00000000Bhm-0Uw3 == per@kaffe.mustafejen.se R=local_user T=dovecot_lmtp defer (-1): LMTP connection closed after initial connection
2026-10-06 11:17:28 1xDcG5-0000000033z-3iyQ == per@mustafejen.se R=local_user T=dovecot_lmtp defer (-1): LMTP connection closed after initial connection
2026-10-06 11:17:28 1xE1Ie-00000000CH2-1Z5t <= <> R=1xDcG5-0000000033z-3iyQ U=Debian-exim P=local S=4964
2026-10-06 11:17:28 SMTP protocol error in “AUTH LOGIN” H=(User) [160.250.128.49] AUTH command used when not advertised
2026-10-06 11:17:29 1xE1Ie-00000000CH2-1Z5t => bounces+21620404-d04d-per=mustafejen.se@em3884.member.jula.com R=dnslookup T=remote_smtp H=mx.sendgrid.net [15.222.160.229] X=TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256 CV=yes DN=“CN=*.sendgrid.net” C=“250 Ok: queued as b_KCnSLIT6yMBF0tKIzjmg”
2026-10-06 11:17:29 1xE1Ie-00000000CH2-1Z5t Completed
2026-10-06 11:17:29 1xDyMa-00000000Avu-2sy0 == per@kaffe.mustafejen.se R=local_user T=dovecot_lmtp defer (-1): LMTP connection closed after initial connection
2026-10-06 11:17:29 1xDkdd-000000007A3-0K8y == per@kaffe.mustafejen.se R=local_user T=dovecot_lmtp defer (-1): LMTP connection closed after initial connection
2026-10-06 11:17:29 End queue run: pid=47134 -qf

/etc/exim4/conf.d/router/900_exim4-config_local_user

router/900_exim4-config_local_user

local_user:
debug_print = “R: local_user for $local_part@$domain”
driver = accept
domains = +local_domains
check_local_user
local_parts = ! root
transport = dovecot_lmtp
cannot_route_message = Unknown user

/etc/exim4/conf.d/transport/40_dovecot_lmt

dovecot_lmtp:
driver = lmtp
socket = /var/run/dovecot/lmtp
#maximum number of deliveries per batch, default 1
batch_max = 200
#allow suffixes/prefixes (default unset)
rcpt_include_affixes

/etc/exim4/conf.d/transport/30_exim4-config_maildir_home

maildir_home:
debug_print = “T: maildir_home for $local_part@$domain”
driver = appendfile
.ifdef MAILDIR_HOME_MAILDIR_LOCATION
directory = MAILDIR_HOME_MAILDIR_LOCATION
.else
directory = $home/Maildir
.endif
.ifdef MAILDIR_HOME_CREATE_DIRECTORY
create_directory
.endif
.ifdef MAILDIR_HOME_CREATE_FILE
create_file = MAILDIR_HOME_CREATE_FILE
.endif
delivery_date_add
envelope_to_add
return_path_add
maildir_format
.ifdef MAILDIR_HOME_DIRECTORY_MODE
directory_mode = MAILDIR_HOME_DIRECTORY_MODE
.else
directory_mode = 0700
.endif
.ifdef MAILDIR_HOME_MODE
mode = MAILDIR_HOME_MODE
.else
mode = 0600
.endif
mode_fail_narrower = false

/etc/dovecot/conf.d/10-master.conf

service lmtp {
unix_listener lmtp {
mode = 0666
}

/etc/dovecot/conf.d/20-lmtp.conf

protocol lmtp {

mail_plugins = $mail_plugins sieve
}

/var/log/syslog

2026-10-06T11:17:26.893306+02:00 mustafejen dovecot: lmtp(47169): Fatal: Raw user initialization failed: Plugin ‘$mail_plugins’ not found from directory /usr/lib/dovecot/modules (trying to load modules: $mail_plugins sieve)
2026-10-06T11:17:28.224186+02:00 mustafejen dovecot: lmtp(47176): Fatal: Raw user initialization failed: Plugin ‘$mail_plugins’ not found from directory /usr/lib/dovecot/modules (trying to load modules: $mail_plugins sieve)

I want the mail I send to myself to pop up in ~/Maildir so I can read them with Thunderbird and dovecot.

Please, do not post text as pictures. Just paste it enclosed in the

```

lines, like

```
some literal
text on multiple lines
```
2 Likes

I got it working now. I don’t remember all the fiddling,

but I set

/etc/dovecot/conf.d/20-lmtp.conf

protocol lmtp {

mail_plugins = sieve
auth_username_format = %{user | username}
}

and

/etc/exim4/conf.d/transport/40_dovecot_lmtp

TRANSPORT_LMTP=yes

dovecot_lmtp:
driver = lmtp
socket = /var/run/dovecot/lmtp
#maximum number of deliveries per batch, default 1
batch_max = 200
#allow suffixes/prefixes (default unset)
rcpt_include_affixes

/etc/exim4/conf.d/router/900_exim4-config_local_user

local_user:
debug_print = “R: local_user for $local_part@$domain”
driver = accept
domains = +local_domains
check_local_user
local_parts = ! root
transport = dovecot_lmtp
cannot_route_message = Unknown user

/etc/aliases

user: user@redacted.email.dmn

I guess this was since I was using a userdb which does not have domain names.

Oct 6

This topic was automatically closed after 30 days. New replies are no longer allowed.