empty %d value leading to wrong path to Maildir
Running i dovecot-core 1:2.3.16+dfsg1-3ubuntu2.4 arm64 secure POP3/IMAP server - core files ii dovecot-imapd 1:2.3.16+dfsg1-3ubuntu2.4 arm64 secure POP3/IMAP server - IMAP daemon ii dovecot-lmtpd 1:2.3.16+dfsg1-3ubuntu2.4 arm64 secure POP3/IMAP server - LMTP server
my /etc/dovecot/users admin@TESTdomain:{PLAIN}xxxxxxxxxx::::::
My virtual mail is delivered by postfix to /home/virtualmailboxes/TESTdomain/admin/Maildir/{cur,new,tmp}
BUT when I login to dovecot I see (look at >>>> below)
Sep 23 03:43:17 imap-login: Info: Login: user=<admin>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=164750, TLS, session=<ze54MMEiWqZ/AAAB> Sep 23 03:43:17 imap(admin)<164750><ze54MMEiWqZ/AAAB>: Debug: Effective uid=1002, gid=118, home=/home/admin
Sep 23 03:43:17 imap(admin)<164750><ze54MMEiWqZ/AAAB>: Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=mbox:/home/virtualmailboxes//admin
Sep 23 03:43:17 imap(admin)<164750><ze54MMEiWqZ/AAAB>: Debug: mbox: INBOX defaulted to /home/virtualmailboxes//admin/inbox Sep 23 03:43:17 imap(admin)<164750><ze54MMEiWqZ/AAAB>: Debug: fs: root=/home/virtualmailboxes//admin, index=, indexpvt=, control=, inbox=/home/virtualmailboxes//admin/inbox, alt= Sep 23 03:43:17 imap(admin)<164750><ze54MMEiWqZ/AAAB>: Debug: Mailbox INBOX: Mailbox opened because: STATUS Sep 23 03:43:17 imap(admin)<164750><ze54MMEiWqZ/AAAB>: Debug: Mailbox INBOX: Mailbox opened because: SELECT Sep 23 03:43:17 imap(admin)<164750><ze54MMEiWqZ/AAAB>: Info: Disconnected: Logged out in=105 out=955 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0 Sep 23 03:43:17 imap-login: Debug: SSL alert: close notify Sep 23 03:44:17 auth-worker(164599): Debug: conn unix:auth-worker (pid=164598,uid=122): Disconnected: Connection closed (fd=-1)
WHERE HAS TESTdomain gone in lined flagged >>>>?
Thanks Ivan
Do you have
auth_username_format = %Ln or similar in your config? Can you send doveconf -n?
Aki
On 23/09/2024 07:00 EEST isb--- via dovecot <dovecot@dovecot.org> wrote:
Running i dovecot-core 1:2.3.16+dfsg1-3ubuntu2.4 arm64 secure POP3/IMAP server - core files ii dovecot-imapd 1:2.3.16+dfsg1-3ubuntu2.4 arm64 secure POP3/IMAP server - IMAP daemon ii dovecot-lmtpd 1:2.3.16+dfsg1-3ubuntu2.4 arm64 secure POP3/IMAP server - LMTP server
my /etc/dovecot/users admin@TESTdomain:{PLAIN}xxxxxxxxxx::::::
My virtual mail is delivered by postfix to /home/virtualmailboxes/TESTdomain/admin/Maildir/{cur,new,tmp}
BUT when I login to dovecot I see (look at >>>> below)
Sep 23 03:43:17 imap-login: Info: Login: user=<admin>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=164750, TLS, session=<ze54MMEiWqZ/AAAB> Sep 23 03:43:17 imap(admin)<164750><ze54MMEiWqZ/AAAB>: Debug: Effective uid=1002, gid=118, home=/home/admin
Sep 23 03:43:17 imap(admin)<164750><ze54MMEiWqZ/AAAB>: Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=mbox:/home/virtualmailboxes//admin
Sep 23 03:43:17 imap(admin)<164750><ze54MMEiWqZ/AAAB>: Debug: mbox: INBOX defaulted to /home/virtualmailboxes//admin/inbox Sep 23 03:43:17 imap(admin)<164750><ze54MMEiWqZ/AAAB>: Debug: fs: root=/home/virtualmailboxes//admin, index=, indexpvt=, control=, inbox=/home/virtualmailboxes//admin/inbox, alt= Sep 23 03:43:17 imap(admin)<164750><ze54MMEiWqZ/AAAB>: Debug: Mailbox INBOX: Mailbox opened because: STATUS Sep 23 03:43:17 imap(admin)<164750><ze54MMEiWqZ/AAAB>: Debug: Mailbox INBOX: Mailbox opened because: SELECT Sep 23 03:43:17 imap(admin)<164750><ze54MMEiWqZ/AAAB>: Info: Disconnected: Logged out in=105 out=955 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0 Sep 23 03:43:17 imap-login: Debug: SSL alert: close notify Sep 23 03:44:17 auth-worker(164599): Debug: conn unix:auth-worker (pid=164598,uid=122): Disconnected: Connection closed (fd=-1)
WHERE HAS TESTdomain gone in lined flagged >>>>?
Thanks Ivan
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
hello Aki, thanks for repsonse. dovecot -n inline.
There is an auth formt line
Ivan
2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf # Pigeonhole version 0.5.16 (09c29328) # OS: Linux 6.8.0-1015-aws aarch64 Ubuntu 22.04.5 LTS ext4 # Hostname: localhost auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login auth_username_format = %n auth_verbose = yes info_log_path = /var/log/dovecot.log mail_debug = yes mail_home = /home/virtualmailboxes/%d/%n mail_location = mbox:/home/virtualmailboxes/%d/%u mail_privileged_group = mail namespace { inbox = yes location = mailbox { auto = create special_use = \Drafts name = Drafts } mailbox { special_use = \Junk name = Junk } mailbox { auto = create special_use = \Sent name = Sent } mailbox { special_use = \Sent name = Sent Messages } mailbox { auto = create special_use = \Trash name = Trash } prefix = name = inbox } passdb { driver = pam } protocols = imap lmtp imap lmtp service replication-notify-fifo { name = aggregator } service anvil-auth-penalty { name = anvil } service auth-worker { name = auth-worker } service { unix_listener { group = postfix mode = 0666 user = postfix path = /var/spool/postfix/private/auth } name = auth } service config { name = config } service dict-async { name = dict-async } service dict { name = dict } service login/proxy-notify { name = director } service dns-client { name = dns-client } service doveadm-server { name = doveadm } service imap-hibernate { name = imap-hibernate } service imap { inet_listener { port = 993 ssl = yes name = imaps } name = imap-login } service { executable = script-login /usr/local/bin/postlogin.sh user = $default_internal_user name = imap-postlogin } service imap-urlauth { name = imap-urlauth-login } service imap-urlauth-worker { name = imap-urlauth-worker } service token-login/imap-urlauth { name = imap-urlauth } service imap-master { name = imap } service indexer-worker { name = indexer-worker } service indexer { name = indexer } service ipc { name = ipc } service { unix_listener { group = postfix mode = 0600 user = postfix path = /var/spool/postfix/private/dovecot-lmtp } name = lmtp } service log-errors { name = log } service old-stats-mail { name = old-stats } service pop3 { name = pop3-login } service login/pop3 { name = pop3 } service replicator-doveadm { name = replicator } service stats-reader { name = stats } service submission { name = submission-login } service login/submission { name = submission } ssl_cert = </etc/ssl/keys/chained.crt ssl_client_ca_dir = /etc/ssl/certs ssl_dh = # hidden, use -P to show it ssl_key = # hidden, use -P to show it ssl_prefer_server_ciphers = yes userdb { driver = passwd } userdb { args = username_format=%n@%d uid=virtualmail gid=virtualmail home=/home/virtualmailboxes/%d/%u/Maildir driver = static } verbose_ssl = yes protocol lmtp { service replication-notify-fifo { name = aggregator } service anvil-auth-penalty { name = anvil } service auth-worker { name = auth-worker } service auth-client { name = auth } service config { name = config } service dict-async { name = dict-async } service dict { name = dict } service login/proxy-notify { name = director } service dns-client { name = dns-client } service doveadm-server { name = doveadm } service imap-hibernate { name = imap-hibernate } service imap { name = imap-login } service imap-urlauth { name = imap-urlauth-login } service imap-urlauth-worker { name = imap-urlauth-worker } service token-login/imap-urlauth { name = imap-urlauth } service imap-master { name = imap } service indexer-worker { name = indexer-worker } service indexer { name = indexer } service ipc { name = ipc } service lmtp { name = lmtp } service log-errors { name = log } service old-stats-mail { name = old-stats } service pop3 { name = pop3-login } service login/pop3 { name = pop3 } service replicator-doveadm { name = replicator } service stats-reader { name = stats } service submission { name = submission-login } service login/submission { name = submission } } protocol !indexer-worker { service replication-notify-fifo { name = aggregator } service anvil-auth-penalty { name = anvil } service auth-worker { name = auth-worker } service auth-client { name = auth } service config { name = config } service dict-async { name = dict-async } service dict { name = dict } service login/proxy-notify { name = director } service dns-client { name = dns-client } service doveadm-server { name = doveadm } service imap-hibernate { name = imap-hibernate } service imap { name = imap-login } service imap-urlauth { name = imap-urlauth-login } service imap-urlauth-worker { name = imap-urlauth-worker } service token-login/imap-urlauth { name = imap-urlauth } service imap-master { name = imap } service indexer-worker { name = indexer-worker } service indexer { name = indexer } service ipc { name = ipc } service lmtp { name = lmtp } service log-errors { name = log } service old-stats-mail { name = old-stats } service pop3 { name = pop3-login } service login/pop3 { name = pop3 } service replicator-doveadm { name = replicator } service stats-reader { name = stats } service submission { name = submission-login } service login/submission { name = submission rotocol lda { service replication-notify-fifo { name = aggregator } service anvil-auth-penalty { name = anvil } service auth-worker { name = auth-worker } service auth-client { name = auth } service config { name = config } service dict-async { name = dict-async } service dict { name = dict } service login/proxy-notify { name = director } service dns-client { name = dns-client } service doveadm-server { name = doveadm } service imap-hibernate { name = imap-hibernate } service imap { name = imap-login } service imap-urlauth { name = imap-urlauth-login } service imap-urlauth-worker { name = imap-urlauth-worker } service token-login/imap-urlauth { name = imap-urlauth } service imap-master { name = imap } service indexer-worker { name = indexer-worker } service indexer { name = indexer } service ipc { name = ipc } service lmtp { name = lmtp } service log-errors { name = log } service old-stats-mail { name = old-stats } service pop3 { name = pop3-login } service login/pop3 { name = pop3 } service replicator-doveadm { name = replicator } service stats-reader { name = stats } service submission { name = submission-login } service login/submission { name = submission } } protocol imap { service replication-notify-fifo { name = aggregator } service anvil-auth-penalty { name = anvil } service auth-worker { name = auth-worker } service auth-client { name = auth } service config { name = config } service dict-async { name = dict-async } service dict { name = dict } service login/proxy-notify { name = director } service dns-client { name = dns-client } service doveadm-server { name = doveadm } service imap-hibernate { name = imap-hibernate } service imap { name = imap-login } service imap-urlauth { name = imap-urlauth-login } service imap-urlauth-worker { name = imap-urlauth-worker } service token-login/imap-urlauth { name = imap-urlauth } service imap-master { name = imap } service indexer-worker { name = indexer-worker } service indexer { name = indexer } service ipc { name = ipc } service lmtp { name = lmtp } service log-errors { name = log } service old-stats-mail { name = old-stats } service pop3 { name = pop3-login } service login/pop3 { name = pop3 } service replicator-doveadm { name = replicator } service stats-reader { name = stats } service submission { name = submission-login } service login/submission { name = submission } }
If you want full user@domain, change
auth_username_format = %n
to
auth_username_format = %u
Aki
On 23/09/2024 19:00 EEST isb--- via dovecot <dovecot@dovecot.org> wrote:
hello Aki, thanks for repsonse. dovecot -n inline.
There is an auth formt line
Ivan
2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf # Pigeonhole version 0.5.16 (09c29328) # OS: Linux 6.8.0-1015-aws aarch64 Ubuntu 22.04.5 LTS ext4 # Hostname: localhost auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login auth_username_format = %n auth_verbose = yes info_log_path = /var/log/dovecot.log mail_debug = yes mail_home = /home/virtualmailboxes/%d/%n mail_location = mbox:/home/virtualmailboxes/%d/%u mail_privileged_group = mail namespace { inbox = yes location = mailbox { auto = create special_use = \Drafts name = Drafts } mailbox { special_use = \Junk name = Junk } mailbox { auto = create special_use = \Sent name = Sent } mailbox { special_use = \Sent name = Sent Messages } mailbox { auto = create special_use = \Trash name = Trash } prefix = name = inbox } passdb { driver = pam } protocols = imap lmtp imap lmtp service replication-notify-fifo { name = aggregator } service anvil-auth-penalty { name = anvil } service auth-worker { name = auth-worker } service { unix_listener { group = postfix mode = 0666 user = postfix path = /var/spool/postfix/private/auth } name = auth } service config { name = config } service dict-async { name = dict-async } service dict { name = dict } service login/proxy-notify { name = director } service dns-client { name = dns-client } service doveadm-server { name = doveadm } service imap-hibernate { name = imap-hibernate } service imap { inet_listener { port = 993 ssl = yes name = imaps } name = imap-login } service { executable = script-login /usr/local/bin/postlogin.sh user = $default_internal_user name = imap-postlogin } service imap-urlauth { name = imap-urlauth-login } service imap-urlauth-worker { name = imap-urlauth-worker } service token-login/imap-urlauth { name = imap-urlauth } service imap-master { name = imap } service indexer-worker { name = indexer-worker } service indexer { name = indexer } service ipc { name = ipc } service { unix_listener { group = postfix mode = 0600 user = postfix path = /var/spool/postfix/private/dovecot-lmtp } name = lmtp } service log-errors { name = log } service old-stats-mail { name = old-stats } service pop3 { name = pop3-login } service login/pop3 { name = pop3 } service replicator-doveadm { name = replicator } service stats-reader { name = stats } service submission { name = submission-login } service login/submission { name = submission } ssl_cert = </etc/ssl/keys/chained.crt ssl_client_ca_dir = /etc/ssl/certs ssl_dh = # hidden, use -P to show it ssl_key = # hidden, use -P to show it ssl_prefer_server_ciphers = yes userdb { driver = passwd } userdb { args = username_format=%n@%d uid=virtualmail gid=virtualmail home=/home/virtualmailboxes/%d/%u/Maildir driver = static } verbose_ssl = yes protocol lmtp { service replication-notify-fifo { name = aggregator } service anvil-auth-penalty { name = anvil } service auth-worker { name = auth-worker } service auth-client { name = auth } service config { name = config } service dict-async { name = dict-async } service dict { name = dict } service login/proxy-notify { name = director } service dns-client { name = dns-client } service doveadm-server { name = doveadm } service imap-hibernate { name = imap-hibernate } service imap { name = imap-login } service imap-urlauth { name = imap-urlauth-login } service imap-urlauth-worker { name = imap-urlauth-worker } service token-login/imap-urlauth { name = imap-urlauth } service imap-master { name = imap } service indexer-worker { name = indexer-worker } service indexer { name = indexer } service ipc { name = ipc } service lmtp { name = lmtp } service log-errors { name = log } service old-stats-mail { name = old-stats } service pop3 { name = pop3-login } service login/pop3 { name = pop3 } service replicator-doveadm { name = replicator } service stats-reader { name = stats } service submission { name = submission-login } service login/submission { name = submission } } protocol !indexer-worker { service replication-notify-fifo { name = aggregator } service anvil-auth-penalty { name = anvil } service auth-worker { name = auth-worker } service auth-client { name = auth } service config { name = config } service dict-async { name = dict-async } service dict { name = dict } service login/proxy-notify { name = director } service dns-client { name = dns-client } service doveadm-server { name = doveadm } service imap-hibernate { name = imap-hibernate } service imap { name = imap-login } service imap-urlauth { name = imap-urlauth-login } service imap-urlauth-worker { name = imap-urlauth-worker } service token-login/imap-urlauth { name = imap-urlauth } service imap-master { name = imap } service indexer-worker { name = indexer-worker } service indexer { name = indexer } service ipc { name = ipc } service lmtp { name = lmtp } service log-errors { name = log } service old-stats-mail { name = old-stats } service pop3 { name = pop3-login } service login/pop3 { name = pop3 } service replicator-doveadm { name = replicator } service stats-reader { name = stats } service submission { name = submission-login } service login/submission { name = submission rotocol lda { service replication-notify-fifo { name = aggregator } service anvil-auth-penalty { name = anvil } service auth-worker { name = auth-worker } service auth-client { name = auth } service config { name = config } service dict-async { name = dict-async } service dict { name = dict } service login/proxy-notify { name = director } service dns-client { name = dns-client } service doveadm-server { name = doveadm } service imap-hibernate { name = imap-hibernate } service imap { name = imap-login } service imap-urlauth { name = imap-urlauth-login } service imap-urlauth-worker { name = imap-urlauth-worker } service token-login/imap-urlauth { name = imap-urlauth } service imap-master { name = imap } service indexer-worker { name = indexer-worker } service indexer { name = indexer } service ipc { name = ipc } service lmtp { name = lmtp } service log-errors { name = log } service old-stats-mail { name = old-stats } service pop3 { name = pop3-login } service login/pop3 { name = pop3 } service replicator-doveadm { name = replicator } service stats-reader { name = stats } service submission { name = submission-login } service login/submission { name = submission } } protocol imap { service replication-notify-fifo { name = aggregator } service anvil-auth-penalty { name = anvil } service auth-worker { name = auth-worker } service auth-client { name = auth } service config { name = config } service dict-async { name = dict-async } service dict { name = dict } service login/proxy-notify { name = director } service dns-client { name = dns-client } service doveadm-server { name = doveadm } service imap-hibernate { name = imap-hibernate } service imap { name = imap-login } service imap-urlauth { name = imap-urlauth-login } service imap-urlauth-worker { name = imap-urlauth-worker } service token-login/imap-urlauth { name = imap-urlauth } service imap-master { name = imap } service indexer-worker { name = indexer-worker } service indexer { name = indexer } service ipc { name = ipc } service lmtp { name = lmtp } service log-errors { name = log } service old-stats-mail { name = old-stats } service pop3 { name = pop3-login } service login/pop3 { name = pop3 } service replicator-doveadm { name = replicator } service stats-reader { name = stats } service submission { name = submission-login } service login/submission { name = submission } }
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
participants (2)
-
Aki Tuomi
-
isb@forscotland.com