Email not working
Hi,
First of all may I say I am not an expert on Dovecot so please forgive me if the answer to my query is obvious.
After upgrading from Ubuntu 20.04 to 22.04 my email is not working.
root@mail:~# doveconf -n # 2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf # Pigeonhole version 0.5.16 (09c29328) # OS: Linux 5.15.0-60-generic x86_64 Ubuntu 22.04.1 LTS # Hostname: mail.odysseytours.nz auth_debug = yes auth_mechanisms = plain login auth_username_format = %{if;%d;eq;mail.odysseytours.nz;%Ln;%Lu} listen = *, :: mail_debug = yes mail_location = mbox:~/mail:INBOX=/var/mail/%u mail_privileged_group = mail managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { driver = pam } plugin { sieve = file:~/sieve;active=~/.dovecot.sieve } protocols = " imap lmtp sieve pop3" service stats { unix_listener stats-reader { group = vmail mode = 0660 user = vmail } unix_listener stats-writer { group = vmail mode = 0660 user = vmail } } ssl_cert =
root@mail:~# doveadm user -f 'username' '*' nobody mike systemd-coredump sogo vmail mlmmj iredadmin iredapd snapd-range-524288-root snap_daemon Error: auth-master: userdb list: User listing returned failure Fatal: user listing failed
root@mail:~# doveadm index -A -q \* doveadm(nobody): Error: mkdir(/nonexistent/mail/.imap) failed: Permission denied (euid=65534(nobody) egid=65534(nogroup)) doveadm(systemd-coredump): Error: mkdir(//mail/.imap) failed: Permission denied (euid=999(systemd-coredump) egid=999(systemd-coredump) missing +w perm: /, dir owned by 0:0 mode=0755) doveadm(snapd-range-524288-root): Error: mkdir(/nonexistent/mail/.imap) failed: Permission denied (euid=524288(snapd-range-524288-root) egid=524288(snapd-range-524288-root)) doveadm(snap_daemon): Error: mkdir(/nonexistent/mail/.imap) failed: Permission denied (euid=584788(snap_daemon) egid=584788(snap_daemon)) doveadm(3015804): Error: auth-master: userdb list: User listing returned failure doveadm: Error: Failed to iterate through some use
Contents of /etc/dovecot/conf.d/10-auth.conf with all comments removed: auth_username_format=%{if;%d;eq;mail.odysseytours.nz;%Ln;%Lu} #https://serverfault.com/questions/260488/dovecot-user-lookup-fails-when-usin... auth_mechanisms = plain login !include auth-system.conf.ext
Contents of /etc/dovecot/conf.d/auth-system.conf.ext with all comments removed: passdb { driver = pam }
userdb { driver = passwd ##https://doc.dovecot.org/configuration_manual/authentication/passwd/#authenti... args = blocking=no }
It says "Authentication failure (Password mismatch?)" but its definitely the correct password. root@mail:/home/mike# doveadm log errors Feb 22 02:43:48 Error: auth: passwd(postmaster@odysseytours.nz): getpwnam() failed: Address
Don't know what this error means.
root@mail:/home/mike# doveadm log errors Feb 22 02:43:48 Error: auth: passwd(postmaster@odysseytours.nz): getpwnam() failed: Address family not supported by protocol
Don't know what this error means. Any help would be greatly appreciated.
Only a note: This does not seem a completely installed scenario but a snapd prebuilt container or bundle. Maybe this bundle needs to be upgraded too, if it does not follow OS environment changes.
El 5/4/23 a les 1:29, Michael Hooker ha escrit:
Hi,
First of all may I say I am not an expert on Dovecot so please forgive me if the answer to my query is obvious.
After upgrading from Ubuntu 20.04 to 22.04 my email is not working.
root@mail:~# doveconf -n
# 2.3.16 (7e2e900c1a): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.16 (09c29328)
# OS: Linux 5.15.0-60-generic x86_64 Ubuntu 22.04.1 LTS
# Hostname: mail.odysseytours.nz
auth_debug = yes
auth_mechanisms = plain login
auth_username_format = %{if;%d;eq;mail.odysseytours.nz;%Ln;%Lu}
listen = *, ::
mail_debug = yes
mail_location = mbox:~/mail:INBOX=/var/mail/%u
mail_privileged_group = mail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
driver = pam
}
plugin {
sieve = file:~/sieve;active=~/.dovecot.sieve
}
protocols = " imap lmtp sieve pop3"
service stats {
unix_listener stats-reader {
group = vmail
mode = 0660
user = vmail
}
unix_listener stats-writer {
group = vmail
mode = 0660
user = vmail
}
}
ssl_cert =
ssl_cipher_list = EECDH+CHACHA20:EECDH+AESGCM:EDH+AESGCM:AES256+EECDH
ssl_client_ca_dir = /etc/ssl/certs
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
userdb {
args = blocking=no
driver = passwd
}
root@mail:~# doveadm user -f 'username' '*'
nobody
mike
systemd-coredump
sogo
vmail
mlmmj
iredadmin
iredapd
snapd-range-524288-root
snap_daemon
Error: auth-master: userdb list: User listing returned failure
Fatal: user listing failed
root@mail:~# doveadm index -A -q \*
doveadm(nobody): Error: mkdir(/nonexistent/mail/.imap) failed: Permission denied (euid=65534(nobody) egid=65534(nogroup))
doveadm(systemd-coredump): Error: mkdir(//mail/.imap) failed: Permission denied (euid=999(systemd-coredump) egid=999(systemd-coredump) missing +w perm: /, dir owned by 0:0 mode=0755)
doveadm(snapd-range-524288-root): Error: mkdir(/nonexistent/mail/.imap) failed: Permission denied (euid=524288(snapd-range-524288-root) egid=524288(snapd-range-524288-root))
doveadm(snap_daemon): Error: mkdir(/nonexistent/mail/.imap) failed: Permission denied (euid=584788(snap_daemon) egid=584788(snap_daemon))
doveadm(3015804): Error: auth-master: userdb list: User listing returned failure
doveadm: Error: Failed to iterate through some use
Contents of /etc/dovecot/conf.d/10-auth.conf with all comments removed:
auth_username_format=%{if;%d;eq;mail.odysseytours.nz;%Ln;%Lu}
#https://serverfault.com/questions/260488/dovecot-user-lookup-fails-when-usin...
auth_mechanisms = plain login
!include auth-system.conf.ext
Contents of /etc/dovecot/conf.d/auth-system.conf.ext with all comments removed:
passdb {
driver = pam
}
userdb {
driver = passwd
##https://doc.dovecot.org/configuration_manual/authentication/passwd/#authenti...
args = blocking=no
}
It says "Authentication failure (Password mismatch?)" but its definitely the correct password.
root@mail:/home/mike# doveadm log errors
Feb 22 02:43:48 Error: auth: passwd(postmaster@odysseytours.nz): getpwnam() failed: Address
Don't know what this error means.
root@mail:/home/mike# doveadm log errors
Feb 22 02:43:48 Error: auth: passwd(postmaster@odysseytours.nz): getpwnam() failed: Address family not supported by protocol
Don't know what this error means. Any help would be greatly appreciated.
--
Narcis Garcia
I'm using this dedicated address because personal addresses aren't masked enough at this mail public archive. Public archive administrator should fix this against automated addresses collectors.
participants (2)
-
Michael Hooker
-
Narcis Garcia