Dovecot 2.4 and E-Mail Address as Login Setting
All,
I am running Dovecot 2.4 on a single server, and I am wondering where I can set it to use the full email address as the login name.
I am running Ubuntu 26.04 and its fully updated. I own the server, and the domain. Let me know what information you need to assist me.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
All, I am running Dovecot 2.4 on a single server, and I am wondering where I can set it to use the full email address as the login name. I am running Ubuntu 26.04 and its fully updated. I own the server, and the domain. Let me know what information you need to assist me. Very Respectfully, Daniel Reinhardt Sent with [1]Proton Mail secure email.
References
Visible links
It depends where you keep your users. I am using on one server sqlite for the usernames and on another mariadb and the username query is in the “<path>/dovecot/conf.d/auth-sql.conf.ext“ and the users are created using postfixadmin.
Horst
On 18 Oct 2026, at 08:09, Daniel Reinhardt via dovecot <dovecot@dovecot.org> wrote:
All, I am running Dovecot 2.4 on a single server, and I am wondering where I can set it to use the full email address as the login name. I am running Ubuntu 26.04 and its fully updated. I own the server, and the domain. Let me know what information you need to assist me. Very Respectfully, Daniel Reinhardt Sent with [1]Proton Mail secure email.
References
Visible links
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Horst,
I am using the /etc/passwd file for usernames so its not a fancy setup using anything like SQL.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 9:29 PM, Horst B Simon <horst.simon2@icloud.com> wrote:
It depends where you keep your users. I am using on one server sqlite for the usernames and on another mariadb and the username query is in the “<path>/dovecot/conf.d/auth-sql.conf.ext“ and the users are created using postfixadmin.
Horst
On 18 Oct 2026, at 08:09, Daniel Reinhardt via dovecot <dovecot@dovecot.org> wrote:
All, I am running Dovecot 2.4 on a single server, and I am wondering where I can set it to use the full email address as the login name. I am running Ubuntu 26.04 and its fully updated. I own the server, and the domain. Let me know what information you need to assist me. Very Respectfully, Daniel Reinhardt Sent with [1]Proton Mail secure email.
References
Visible links
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Just use
auth_username_format = %n
in your config
Gr.,
Jack
Op 17-10-2026 om 23:32 schreef Daniel Reinhardt via dovecot:
Horst,
I am using the /etc/passwd file for usernames so its not a fancy setup using anything like SQL.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 9:29 PM, Horst B Simon<horst.simon2@icloud.com> wrote:
It depends where you keep your users. I am using on one server sqlite for the usernames and on another mariadb and the username query is in the “<path>/dovecot/conf.d/auth-sql.conf.ext“ and the users are created using postfixadmin.
Horst
On 18 Oct 2026, at 08:09, Daniel Reinhardt via dovecot<dovecot@dovecot.org> wrote:
All, I am running Dovecot 2.4 on a single server, and I am wondering where I can set it to use the full email address as the login name. I am running Ubuntu 26.04 and its fully updated. I own the server, and the domain. Let me know what information you need to assist me. Very Respectfully, Daniel Reinhardt Sent with [1]Proton Mail secure email.
References
Visible links 1.https://proton.me/mail/home
dovecot mailing list --dovecot@dovecot.org To unsubscribe send an email todovecot-leave@dovecot.org
dovecot mailing list --dovecot@dovecot.org To unsubscribe send an email todovecot-leave@dovecot.org
Just use
auth_username_format = %n
in your config
Gr.,
Jack
Op 17-10-2026 om 23:32 schreef Daniel Reinhardt via dovecot:
Horst,
I am using the /etc/passwd file for usernames so its not a fancy setup using anything like SQL.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 9:29 PM, Horst B Simon [1]<horst.simon2@icloud.com> wrote:
It depends where you keep your users. I am using on one server sqlite for the usernames and on another mariadb and the username query is in the "<path>/dovecot/conf.d/auth-sql.conf.ext" and the users are created using postfixadmin.
Horst
On 18 Oct 2026, at 08:09, Daniel Reinhardt via dovecot [2]<dovecot@dovecot.org> wrote:
All,
I am running Dovecot 2.4 on a single server, and I am wondering where I can set it to use the full email address as the login name. I am running Ubuntu 26.04 and its fully updated. I own the server, and the domain. Let me know what information you need to assist me. Very Respectfully, Daniel Reinhardt Sent with [1]Proton Mail secure email.
References
Visible links
dovecot mailing list -- [4]dovecot@dovecot.org To unsubscribe send an email to [5]dovecot-leave@dovecot.org
dovecot mailing list -- [6]dovecot@dovecot.org To unsubscribe send an email to [7]dovecot-leave@dovecot.org
References
Visible links
- mailto:horst.simon2@icloud.com
- mailto:dovecot@dovecot.org
- https://proton.me/mail/home
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
Jack,
Here is my confifg pur dovecot -n and the %n does not work when enabled as it thows No Authentication Error:
2.4.2 (0962ed2104): /etc/dovecot/dovecot.conf
Pigeonhole version 2.4.2 (767418c3)
OS: Linux 7.0.0-38-generic x86_64 Ubuntu 26.04.1 LTS
Hostname: capricorn
9 default setting changes since version 2.4.0
dovecot_config_version = 2.4.0 auth_mechanisms = plain login auth_username_format = %n dovecot_storage_version = 2.4.0 first_valid_uid = 1000 fts_autoindex = yes fts_autoindex_max_recent_msgs = 999 fts_search_add_missing = yes last_valid_uid = 65535 listen = * :: mail_driver = mbox mail_home = /home/%{user | username} mail_inbox_path = /var/mail/%{user} mail_path = %{home}/mail mail_privileged_group = mail protocols { imap = yes pop3 = yes } passdb pam { } userdb passwd { } userdb passwd-file { auth_username_format = %{user|lower} passwd_file_path = /etc/passwd driver = passwd-file fields { home = /var/vmail/%{user} name = %{user|lower} user = %{user|lower} } skip = found } namespace inbox { inbox = yes mailbox Drafts { special_use = "\\Drafts" } mailbox Junk { special_use = "\\Junk" } mailbox Trash { special_use = "\\Trash" } mailbox Sent { special_use = "\\Sent" } mailbox "Sent Messages" { special_use = "\\Sent" } } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { port = 995 ssl = yes } } service submission-login { inet_listener submission { port = 587 } inet_listener submissions { port = 465 } } service lmtp { unix_listener lmtp { } } service imap { } service pop3 { } service submission { } service auth { unix_listener auth-userdb { } unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } } service auth-worker { } service dict { unix_listener dict { } } ssl_server { cert_file = /etc/letsencrypt/live/imap.cryptodan.net/cert.pem key_file = /etc/letsencrypt/live/imap.cryptodan.net/privkey.pem }
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 11:11 PM, Jack Raats via dovecot <dovecot@dovecot.org> wrote:
Just use
auth_username_format = %n
in your config
Gr.,
Jack
Op 17-10-2026 om 23:32 schreef Daniel Reinhardt via dovecot:
Horst,
I am using the /etc/passwd file for usernames so its not a fancy setup using anything like SQL.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 9:29 PM, Horst B Simon<horst.simon2@icloud.com> wrote:
It depends where you keep your users. I am using on one server sqlite for the usernames and on another mariadb and the username query is in the “<path>/dovecot/conf.d/auth-sql.conf.ext“ and the users are created using postfixadmin.
Horst
On 18 Oct 2026, at 08:09, Daniel Reinhardt via dovecot<dovecot@dovecot.org> wrote:
All, I am running Dovecot 2.4 on a single server, and I am wondering where I can set it to use the full email address as the login name. I am running Ubuntu 26.04 and its fully updated. I own the server, and the domain. Let me know what information you need to assist me. Very Respectfully, Daniel Reinhardt Sent with [1]Proton Mail secure email.
References
Visible links 1.https://proton.me/mail/home
dovecot mailing list --dovecot@dovecot.org To unsubscribe send an email todovecot-leave@dovecot.org
dovecot mailing list --dovecot@dovecot.org To unsubscribe send an email todovecot-leave@dovecot.org Just use
auth_username_format = %n
in your config
Gr.,
Jack
Op 17-10-2026 om 23:32 schreef Daniel Reinhardt via dovecot:
Horst,
I am using the /etc/passwd file for usernames so its not a fancy setup using anything like SQL.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 9:29 PM, Horst B Simon [1]<horst.simon2@icloud.com> wrote:
It depends where you keep your users. I am using on one server sqlite for the usernames and on another mariadb and the username query is in the "<path>/dovecot/conf.d/auth-sql.conf.ext" and the users are created using postfixadmin.
Horst
On 18 Oct 2026, at 08:09, Daniel Reinhardt via dovecot [2]<dovecot@dovecot.org> wrote:
All,I am running Dovecot 2.4 on a single server, and I am wondering where I can set it to use the full email address as the login name. I am running Ubuntu 26.04 and its fully updated. I own the server, and the domain. Let me know what information you need to assist me. Very Respectfully, Daniel Reinhardt Sent with [1]Proton Mail secure email.
References
Visible links
dovecot mailing list -- [4]dovecot@dovecot.org To unsubscribe send an email to [5]dovecot-leave@dovecot.org
dovecot mailing list -- [6]dovecot@dovecot.org To unsubscribe send an email to [7]dovecot-leave@dovecot.org
References
Visible links
- mailto:horst.simon2@icloud.com
- mailto:dovecot@dovecot.org
- https://proton.me/mail/home
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Hi Daniel The %n is invalid in Dovecot 2.4 please see my previous email which had the correct syntax Horst
------ Original Message ------ From "Daniel Reinhardt via dovecot" <dovecot@dovecot.org> To mlist@jarasoft.net Cc dovecot@dovecot.org Date 18/10/2026 14:09:14 Subject Re: Dovecot 2.4 and E-Mail Address as Login Setting
Jack,
Here is my confifg pur dovecot -n and the %n does not work when enabled as it thows No Authentication Error:
2.4.2 (0962ed2104): /etc/dovecot/dovecot.conf
Pigeonhole version 2.4.2 (767418c3)
OS: Linux 7.0.0-38-generic x86_64 Ubuntu 26.04.1 LTS
Hostname: capricorn
9 default setting changes since version 2.4.0
dovecot_config_version = 2.4.0 auth_mechanisms = plain login auth_username_format = %n dovecot_storage_version = 2.4.0 first_valid_uid = 1000 fts_autoindex = yes fts_autoindex_max_recent_msgs = 999 fts_search_add_missing = yes last_valid_uid = 65535 listen = * :: mail_driver = mbox mail_home = /home/%{user | username} mail_inbox_path = /var/mail/%{user} mail_path = %{home}/mail mail_privileged_group = mail protocols { imap = yes pop3 = yes } passdb pam { } userdb passwd { } userdb passwd-file { auth_username_format = %{user|lower} passwd_file_path = /etc/passwd driver = passwd-file fields { home = /var/vmail/%{user} name = %{user|lower} user = %{user|lower} } skip = found } namespace inbox { inbox = yes mailbox Drafts { special_use = "\\Drafts" } mailbox Junk { special_use = "\\Junk" } mailbox Trash { special_use = "\\Trash" } mailbox Sent { special_use = "\\Sent" } mailbox "Sent Messages" { special_use = "\\Sent" } } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { port = 995 ssl = yes } } service submission-login { inet_listener submission { port = 587 } inet_listener submissions { port = 465 } } service lmtp { unix_listener lmtp { } } service imap { } service pop3 { } service submission { } service auth { unix_listener auth-userdb { } unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } } service auth-worker { } service dict { unix_listener dict { } } ssl_server { cert_file = /etc/letsencrypt/live/imap.cryptodan.net/cert.pem key_file = /etc/letsencrypt/live/imap.cryptodan.net/privkey.pem }
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 11:11 PM, Jack Raats via dovecot <dovecot@dovecot.org> wrote:
Just use
auth_username_format = %n
in your config
Gr.,
Jack
Op 17-10-2026 om 23:32 schreef Daniel Reinhardt via dovecot:
Horst,
I am using the /etc/passwd file for usernames so its not a fancy setup using anything like SQL.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 9:29 PM, Horst B Simon<horst.simon2@icloud.com> wrote:
It depends where you keep your users. I am using on one server sqlite for the usernames and on another mariadb and the username query is in the “<path>/dovecot/conf.d/auth-sql.conf.ext“ and the users are created using postfixadmin.
Horst
On 18 Oct 2026, at 08:09, Daniel Reinhardt via dovecot<dovecot@dovecot.org> wrote:
All, I am running Dovecot 2.4 on a single server, and I am wondering where I can set it to use the full email address as the login name. I am running Ubuntu 26.04 and its fully updated. I own the server, and the domain. Let me know what information you need to assist me. Very Respectfully, Daniel Reinhardt Sent with [1]Proton Mail secure email.
References
Visible links 1.https://proton.me/mail/home
dovecot mailing list --dovecot@dovecot.org To unsubscribe send an email todovecot-leave@dovecot.org
dovecot mailing list --dovecot@dovecot.org To unsubscribe send an email todovecot-leave@dovecot.org Just use
auth_username_format = %n in your config Gr., Jack Op 17-10-2026 om 23:32 schreef Daniel Reinhardt via dovecot:Horst,
I am using the /etc/passwd file for usernames so its not a fancy setup using anything like SQL.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 9:29 PM, Horst B Simon [1]<horst.simon2@icloud.com> wrote:
It depends where you keep your users. I am using on one server sqlite for the usernames and on another mariadb and the username query is in the "<path>/dovecot/conf.d/auth-sql.conf.ext" and the users are created using postfixadmin.
Horst
On 18 Oct 2026, at 08:09, Daniel Reinhardt via dovecot [2]<dovecot@dovecot.org> wrote:
All, I am running Dovecot 2.4 on a single server, and I am wondering where I can set it to use the full email address as the login name. I am running Ubuntu 26.04 and its fully updated. I own the server, and the domain. Let me know what information you need to assist me. Very Respectfully, Daniel Reinhardt Sent with [1]Proton Mail secure email.References
Visible links 1. [3]https://proton.me/mail/home_______________________________________________ dovecot mailing list -- [4]dovecot@dovecot.org To unsubscribe send an email to [5]dovecot-leave@dovecot.org
dovecot mailing list -- [6]dovecot@dovecot.org To unsubscribe send an email to [7]dovecot-leave@dovecot.org
References
Visible links 1. mailto:horst.simon2@icloud.com 2. mailto:dovecot@dovecot.org 3. https://proton.me/mail/home 4. mailto:dovecot@dovecot.org 5. mailto:dovecot-leave@dovecot.org 6. mailto:dovecot@dovecot.org 7. mailto:dovecot-leave@dovecot.org_______________________________________________ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Hi Daniel The %n is invalid in Dovecot 2.4 please see my previous email which had the correct syntax Horst ------ Original Message ------ From "Daniel Reinhardt via dovecot" <[1]dovecot@dovecot.org> To [2]mlist@jarasoft.net Cc [3]dovecot@dovecot.org Date 18/10/2026 14:09:14 Subject Re: Dovecot 2.4 and E-Mail Address as Login Setting
Jack,
Here is my confifg pur dovecot -n and the %n does not work when enabled
as it thows No Authentication Error:
# 2.4.2 (0962ed2104): /etc/dovecot/dovecot.conf
# Pigeonhole version 2.4.2 (767418c3)
# OS: Linux 7.0.0-38-generic x86_64 Ubuntu 26.04.1 LTS
# Hostname: capricorn
# 9 default setting changes since version 2.4.0
dovecot_config_version = 2.4.0
auth_mechanisms = plain login
auth_username_format = %n
dovecot_storage_version = 2.4.0
first_valid_uid = 1000
fts_autoindex = yes
fts_autoindex_max_recent_msgs = 999
fts_search_add_missing = yes
last_valid_uid = 65535
listen = * ::
mail_driver = mbox
mail_home = /home/%{user | username}
mail_inbox_path = /var/mail/%{user}
mail_path = %{home}/mail
mail_privileged_group = mail
protocols {
imap = yes
pop3 = yes
}
passdb pam {
}
userdb passwd {
}
userdb passwd-file {
auth_username_format = %{user|lower}
passwd_file_path = /etc/passwd
driver = passwd-file
fields {
home = /var/vmail/%{user}
name = %{user|lower}
user = %{user|lower}
}
skip = found
}
namespace inbox {
inbox = yes
mailbox Drafts {
special_use = "\\Drafts"
}
mailbox Junk {
special_use = "\\Junk"
}
mailbox Trash {
special_use = "\\Trash"
}
mailbox Sent {
special_use = "\\Sent"
}
mailbox "Sent Messages" {
special_use = "\\Sent"
}
}
service imap-login {
inet_listener imap {
port = 143
}
inet_listener imaps {
port = 993
ssl = yes
}
}
service pop3-login {
inet_listener pop3 {
port = 110
}
inet_listener pop3s {
port = 995
ssl = yes
}
}
service submission-login {
inet_listener submission {
port = 587
}
inet_listener submissions {
port = 465
}
}
service lmtp {
unix_listener lmtp {
}
}
service imap {
}
service pop3 {
}
service submission {
}
service auth {
unix_listener auth-userdb {
}
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
}
}
service auth-worker {
}
service dict {
unix_listener dict {
}
}
ssl_server {
cert_file = /etc/letsencrypt/live/imap.cryptodan.net/cert.pem
key_file = /etc/letsencrypt/live/imap.cryptodan.net/privkey.pem
}
Very Respectfully,
Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 11:11 PM, Jack Raats via dovecot
<[4]dovecot@dovecot.org> wrote:
Just use
auth_username_format = %n
in your config
Gr.,
Jack
Op 17-10-2026 om 23:32 schreef Daniel Reinhardt via dovecot:
> Horst,
>
> I am using the /etc/passwd file for usernames so its not a fancy
setup using anything like SQL.
>
> Very Respectfully,
> Daniel Reinhardt
>
>
>
>
> Sent with Proton Mail secure email.
>
> On Saturday, October 17th, 2026 at 9:29 PM, Horst B
Simon<[5]horst.simon2@icloud.com> wrote:
>
>> It depends where you keep your users. I am using on one server
sqlite for the usernames and on another mariadb and the username query
is in the "<path>/dovecot/conf.d/auth-sql.conf.ext" and the users are
created using postfixadmin.
>>
>> Horst
>>
>>
>>> On 18 Oct 2026, at 08:09, Daniel Reinhardt via
dovecot<[6]dovecot@dovecot.org> wrote:
>>>
>>> All,
>>> I am running Dovecot 2.4 on a single server, and I am wondering
where I
>>> can set it to use the full email address as the login name.
>>> I am running Ubuntu 26.04 and its fully updated. I own the server,
and
>>> the domain. Let me know what information you need to assist me.
>>> Very Respectfully,
>>> Daniel Reinhardt
>>> Sent with [1]Proton Mail secure email.
>>>
>>> References
>>>
>>> Visible links
>>> 1.[7]https://proton.me/mail/home
>>> _______________________________________________
>>> dovecot mailing list [8]--dovecot@dovecot.org
>>> To unsubscribe send an email [9]todovecot-leave@dovecot.org
> _______________________________________________
> dovecot mailing list [10]--dovecot@dovecot.org
> To unsubscribe send an email [11]todovecot-leave@dovecot.org Just
use
auth_username_format = %n
in your config
Gr.,
Jack
Op 17-10-2026 om 23:32 schreef Daniel Reinhardt via dovecot:
Horst,
I am using the /etc/passwd file for usernames so its not a fancy setup
using anything like SQL.
Very Respectfully,
Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 9:29 PM, Horst B Simon
[1]<[12]horst.simon2@icloud.com> wrote:
It depends where you keep your users. I am using on one server sqlite
for the usernames and on another mariadb and the username query is in
the "<path>/dovecot/conf.d/auth-sql.conf.ext" and the users are
created using postfixadmin.
Horst
On 18 Oct 2026, at 08:09, Daniel Reinhardt via dovecot
[2]<[13]dovecot@dovecot.org> wrote:
All,
I am running Dovecot 2.4 on a single server, and I am wondering where
I
can set it to use the full email address as the login name.
I am running Ubuntu 26.04 and its fully updated. I own the server, and
the domain. Let me know what information you need to assist me.
Very Respectfully,
Daniel Reinhardt
Sent with [1]Proton Mail secure email.
References
Visible links
1. [3][14]https://proton.me/mail/home
_______________________________________________
dovecot mailing list -- [4][15]dovecot@dovecot.org
To unsubscribe send an email to [5][16]dovecot-leave@dovecot.org
_______________________________________________
dovecot mailing list -- [6][17]dovecot@dovecot.org
To unsubscribe send an email to [7][18]dovecot-leave@dovecot.org
References
Visible links
1. [19]mailto:horst.simon2@icloud.com
2. [20]mailto:dovecot@dovecot.org
3. [21]https://proton.me/mail/home
4. [22]mailto:dovecot@dovecot.org
5. [23]mailto:dovecot-leave@dovecot.org
6. [24]mailto:dovecot@dovecot.org
7. [25]mailto:dovecot-leave@dovecot.org
_______________________________________________
dovecot mailing list -- [26]dovecot@dovecot.org
To unsubscribe send an email to [27]dovecot-leave@dovecot.org
_______________________________________________
dovecot mailing list -- [28]dovecot@dovecot.org
To unsubscribe send an email to [29]dovecot-leave@dovecot.org
References
Visible links
- mailto:dovecot@dovecot.org
- mailto:mlist@jarasoft.net
- mailto:dovecot@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:horst.simon2@icloud.com
- mailto:dovecot@dovecot.org
- https://proton.me/mail/home
- mailto:--dovecot@dovecot.org
- mailto:todovecot-leave@dovecot.org
- mailto:--dovecot@dovecot.org
- mailto:todovecot-leave@dovecot.org
- mailto:horst.simon2@icloud.com
- mailto:dovecot@dovecot.org
- https://proton.me/mail/home
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
- mailto:horst.simon2@icloud.com
- mailto:dovecot@dovecot.org
- https://proton.me/mail/home
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
Horst,
I have that set to default, and it doesn't allow email address to be used.
I get the same error as No Authentication Error.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Sunday, October 18th, 2026 at 4:03 AM, Horst B Simon via dovecot <dovecot@dovecot.org> wrote:
Hi Daniel The %n is invalid in Dovecot 2.4 please see my previous email which had the correct syntax Horst
------ Original Message ------
From "Daniel Reinhardt via dovecot" <dovecot@dovecot.org> To mlist@jarasoft.net Cc dovecot@dovecot.org Date 18/10/2026 14:09:14 Subject Re: Dovecot 2.4 and E-Mail Address as Login Setting
Jack,
Here is my confifg pur dovecot -n and the %n does not work when enabled as it thows No Authentication Error:
2.4.2 (0962ed2104): /etc/dovecot/dovecot.conf
Pigeonhole version 2.4.2 (767418c3)
OS: Linux 7.0.0-38-generic x86_64 Ubuntu 26.04.1 LTS
Hostname: capricorn
9 default setting changes since version 2.4.0
dovecot_config_version = 2.4.0 auth_mechanisms = plain login auth_username_format = %n dovecot_storage_version = 2.4.0 first_valid_uid = 1000 fts_autoindex = yes fts_autoindex_max_recent_msgs = 999 fts_search_add_missing = yes last_valid_uid = 65535 listen = * :: mail_driver = mbox mail_home = /home/%{user | username} mail_inbox_path = /var/mail/%{user} mail_path = %{home}/mail mail_privileged_group = mail protocols { imap = yes pop3 = yes } passdb pam { } userdb passwd { } userdb passwd-file { auth_username_format = %{user|lower} passwd_file_path = /etc/passwd driver = passwd-file fields { home = /var/vmail/%{user} name = %{user|lower} user = %{user|lower} } skip = found } namespace inbox { inbox = yes mailbox Drafts { special_use = "\\Drafts" } mailbox Junk { special_use = "\\Junk" } mailbox Trash { special_use = "\\Trash" } mailbox Sent { special_use = "\\Sent" } mailbox "Sent Messages" { special_use = "\\Sent" } } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { port = 995 ssl = yes } } service submission-login { inet_listener submission { port = 587 } inet_listener submissions { port = 465 } } service lmtp { unix_listener lmtp { } } service imap { } service pop3 { } service submission { } service auth { unix_listener auth-userdb { } unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } } service auth-worker { } service dict { unix_listener dict { } } ssl_server { cert_file = /etc/letsencrypt/live/imap.cryptodan.net/cert.pem key_file = /etc/letsencrypt/live/imap.cryptodan.net/privkey.pem }
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 11:11 PM, Jack Raats via dovecot <dovecot@dovecot.org> wrote:
Just use
auth_username_format = %n
in your config
Gr.,
Jack
Op 17-10-2026 om 23:32 schreef Daniel Reinhardt via dovecot:
Horst,
I am using the /etc/passwd file for usernames so its not a fancy setup using anything like SQL.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 9:29 PM, Horst B Simon<horst.simon2@icloud.com> wrote:
It depends where you keep your users. I am using on one server sqlite for the usernames and on another mariadb and the username query is in the “<path>/dovecot/conf.d/auth-sql.conf.ext“ and the users are created using postfixadmin.
Horst
On 18 Oct 2026, at 08:09, Daniel Reinhardt via dovecot<dovecot@dovecot.org> wrote:
All, I am running Dovecot 2.4 on a single server, and I am wondering where I can set it to use the full email address as the login name. I am running Ubuntu 26.04 and its fully updated. I own the server, and the domain. Let me know what information you need to assist me. Very Respectfully, Daniel Reinhardt Sent with [1]Proton Mail secure email.
References
Visible links 1.https://proton.me/mail/home
dovecot mailing list --dovecot@dovecot.org To unsubscribe send an email todovecot-leave@dovecot.org
dovecot mailing list --dovecot@dovecot.org To unsubscribe send an email todovecot-leave@dovecot.org Just use
auth_username_format = %n in your config Gr., Jack Op 17-10-2026 om 23:32 schreef Daniel Reinhardt via dovecot:Horst,
I am using the /etc/passwd file for usernames so its not a fancy setup using anything like SQL.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 9:29 PM, Horst B Simon [1]<horst.simon2@icloud.com> wrote:
It depends where you keep your users. I am using on one server sqlite for the usernames and on another mariadb and the username query is in the "<path>/dovecot/conf.d/auth-sql.conf.ext" and the users are created using postfixadmin.
Horst
On 18 Oct 2026, at 08:09, Daniel Reinhardt via dovecot [2]<dovecot@dovecot.org> wrote:
All, I am running Dovecot 2.4 on a single server, and I am wondering where I can set it to use the full email address as the login name. I am running Ubuntu 26.04 and its fully updated. I own the server, and the domain. Let me know what information you need to assist me. Very Respectfully, Daniel Reinhardt Sent with [1]Proton Mail secure email.References
Visible links 1. [3]https://proton.me/mail/home_______________________________________________ dovecot mailing list -- [4]dovecot@dovecot.org To unsubscribe send an email to [5]dovecot-leave@dovecot.org
dovecot mailing list -- [6]dovecot@dovecot.org To unsubscribe send an email to [7]dovecot-leave@dovecot.org
References
Visible links 1. mailto:horst.simon2@icloud.com 2. mailto:dovecot@dovecot.org 3. https://proton.me/mail/home 4. mailto:dovecot@dovecot.org 5. mailto:dovecot-leave@dovecot.org 6. mailto:dovecot@dovecot.org 7. mailto:dovecot-leave@dovecot.org_______________________________________________ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org Hi Daniel
The %n is invalid in Dovecot 2.4 please see my previous email which had the correct syntax Horst ------ Original Message ------ From "Daniel Reinhardt via dovecot" <[1]dovecot@dovecot.org> To [2]mlist@jarasoft.net Cc [3]dovecot@dovecot.org Date 18/10/2026 14:09:14 Subject Re: Dovecot 2.4 and E-Mail Address as Login Setting
Jack, Here is my confifg pur dovecot -n and the %n does not work when enabled as it thows No Authentication Error: # 2.4.2 (0962ed2104): /etc/dovecot/dovecot.conf # Pigeonhole version 2.4.2 (767418c3) # OS: Linux 7.0.0-38-generic x86_64 Ubuntu 26.04.1 LTS # Hostname: capricorn # 9 default setting changes since version 2.4.0 dovecot_config_version = 2.4.0 auth_mechanisms = plain login auth_username_format = %n dovecot_storage_version = 2.4.0 first_valid_uid = 1000 fts_autoindex = yes fts_autoindex_max_recent_msgs = 999 fts_search_add_missing = yes last_valid_uid = 65535 listen = * :: mail_driver = mbox mail_home = /home/%{user | username} mail_inbox_path = /var/mail/%{user} mail_path = %{home}/mail mail_privileged_group = mail protocols { imap = yes pop3 = yes } passdb pam { } userdb passwd { } userdb passwd-file { auth_username_format = %{user|lower} passwd_file_path = /etc/passwd driver = passwd-file fields { home = /var/vmail/%{user} name = %{user|lower} user = %{user|lower} } skip = found } namespace inbox { inbox = yes mailbox Drafts { special_use = "\\Drafts" } mailbox Junk { special_use = "\\Junk" } mailbox Trash { special_use = "\\Trash" } mailbox Sent { special_use = "\\Sent" } mailbox "Sent Messages" { special_use = "\\Sent" } } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { port = 995 ssl = yes } } service submission-login { inet_listener submission { port = 587 } inet_listener submissions { port = 465 } } service lmtp { unix_listener lmtp { } } service imap { } service pop3 { } service submission { } service auth { unix_listener auth-userdb { } unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } } service auth-worker { } service dict { unix_listener dict { } } ssl_server { cert_file = /etc/letsencrypt/live/imap.cryptodan.net/cert.pem key_file = /etc/letsencrypt/live/imap.cryptodan.net/privkey.pem } Very Respectfully, Daniel Reinhardt Sent with Proton Mail secure email. On Saturday, October 17th, 2026 at 11:11 PM, Jack Raats via dovecot <[4]dovecot@dovecot.org> wrote: Just use auth_username_format = %n in your config Gr., Jack Op 17-10-2026 om 23:32 schreef Daniel Reinhardt via dovecot: > Horst, > > I am using the /etc/passwd file for usernames so its not a fancy setup using anything like SQL. > > Very Respectfully, > Daniel Reinhardt > > > > > Sent with Proton Mail secure email. > > On Saturday, October 17th, 2026 at 9:29 PM, Horst B Simon<[5]horst.simon2@icloud.com> wrote: > >> It depends where you keep your users. I am using on one server sqlite for the usernames and on another mariadb and the username query is in the "<path>/dovecot/conf.d/auth-sql.conf.ext" and the users are created using postfixadmin. >> >> Horst >> >> >>> On 18 Oct 2026, at 08:09, Daniel Reinhardt via dovecot<[6]dovecot@dovecot.org> wrote: >>> >>> All, >>> I am running Dovecot 2.4 on a single server, and I am wondering where I >>> can set it to use the full email address as the login name. >>> I am running Ubuntu 26.04 and its fully updated. I own the server, and >>> the domain. Let me know what information you need to assist me. >>> Very Respectfully, >>> Daniel Reinhardt >>> Sent with [1]Proton Mail secure email. >>> >>> References >>> >>> Visible links >>> 1.[7]https://proton.me/mail/home >>> _______________________________________________ >>> dovecot mailing list [8]--dovecot@dovecot.org >>> To unsubscribe send an email [9]todovecot-leave@dovecot.org > _______________________________________________ > dovecot mailing list [10]--dovecot@dovecot.org > To unsubscribe send an email [11]todovecot-leave@dovecot.org Just use auth_username_format = %n in your config Gr., Jack Op 17-10-2026 om 23:32 schreef Daniel Reinhardt via dovecot: Horst, I am using the /etc/passwd file for usernames so its not a fancy setup using anything like SQL. Very Respectfully, Daniel Reinhardt Sent with Proton Mail secure email. On Saturday, October 17th, 2026 at 9:29 PM, Horst B Simon [1]<[12]horst.simon2@icloud.com> wrote: It depends where you keep your users. I am using on one server sqlite for the usernames and on another mariadb and the username query is in the "<path>/dovecot/conf.d/auth-sql.conf.ext" and the users are created using postfixadmin. Horst On 18 Oct 2026, at 08:09, Daniel Reinhardt via dovecot [2]<[13]dovecot@dovecot.org> wrote: All, I am running Dovecot 2.4 on a single server, and I am wondering where I can set it to use the full email address as the login name. I am running Ubuntu 26.04 and its fully updated. I own the server, and the domain. Let me know what information you need to assist me. Very Respectfully, Daniel Reinhardt Sent with [1]Proton Mail secure email. References Visible links 1. [3][14]https://proton.me/mail/home _______________________________________________ dovecot mailing list -- [4][15]dovecot@dovecot.org To unsubscribe send an email to [5][16]dovecot-leave@dovecot.org _______________________________________________ dovecot mailing list -- [6][17]dovecot@dovecot.org To unsubscribe send an email to [7][18]dovecot-leave@dovecot.org References Visible links 1. [19]mailto:horst.simon2@icloud.com 2. [20]mailto:dovecot@dovecot.org 3. [21]https://proton.me/mail/home 4. [22]mailto:dovecot@dovecot.org 5. [23]mailto:dovecot-leave@dovecot.org 6. [24]mailto:dovecot@dovecot.org 7. [25]mailto:dovecot-leave@dovecot.org _______________________________________________ dovecot mailing list -- [26]dovecot@dovecot.org To unsubscribe send an email to [27]dovecot-leave@dovecot.org _______________________________________________ dovecot mailing list -- [28]dovecot@dovecot.org To unsubscribe send an email to [29]dovecot-leave@dovecot.orgReferences
Visible links
- mailto:dovecot@dovecot.org
- mailto:mlist@jarasoft.net
- mailto:dovecot@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:horst.simon2@icloud.com
- mailto:dovecot@dovecot.org
- https://proton.me/mail/home
- mailto:--dovecot@dovecot.org
- mailto:todovecot-leave@dovecot.org
- mailto:--dovecot@dovecot.org
- mailto:todovecot-leave@dovecot.org
- mailto:horst.simon2@icloud.com
- mailto:dovecot@dovecot.org
- https://proton.me/mail/home
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
- mailto:horst.simon2@icloud.com
- mailto:dovecot@dovecot.org
- https://proton.me/mail/home
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Hi Daniel,
I had issues too with using a password file, before I used sql database for the user authentication I used pam authentication which authenticates to the system password file, in Ubuntu it should already have the correct dovecot authentication file in /etc/pam.d
Horst
On 18 Oct 2026, at 15:06, Daniel Reinhardt via dovecot <dovecot@dovecot.org> wrote:
Horst,
I have that set to default, and it doesn't allow email address to be used.
I get the same error as No Authentication Error.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Sunday, October 18th, 2026 at 4:03 AM, Horst B Simon via dovecot <dovecot@dovecot.org> wrote:
Hi Daniel The %n is invalid in Dovecot 2.4 please see my previous email which had the correct syntax Horst
------ Original Message ------
From "Daniel Reinhardt via dovecot" <dovecot@dovecot.org> To mlist@jarasoft.net Cc dovecot@dovecot.org Date 18/10/2026 14:09:14 Subject Re: Dovecot 2.4 and E-Mail Address as Login Setting
Jack,
Here is my confifg pur dovecot -n and the %n does not work when enabled as it thows No Authentication Error:
2.4.2 (0962ed2104): /etc/dovecot/dovecot.conf
Pigeonhole version 2.4.2 (767418c3)
OS: Linux 7.0.0-38-generic x86_64 Ubuntu 26.04.1 LTS
Hostname: capricorn
9 default setting changes since version 2.4.0
dovecot_config_version = 2.4.0 auth_mechanisms = plain login auth_username_format = %n dovecot_storage_version = 2.4.0 first_valid_uid = 1000 fts_autoindex = yes fts_autoindex_max_recent_msgs = 999 fts_search_add_missing = yes last_valid_uid = 65535 listen = * :: mail_driver = mbox mail_home = /home/%{user | username} mail_inbox_path = /var/mail/%{user} mail_path = %{home}/mail mail_privileged_group = mail protocols { imap = yes pop3 = yes } passdb pam { } userdb passwd { } userdb passwd-file { auth_username_format = %{user|lower} passwd_file_path = /etc/passwd driver = passwd-file fields { home = /var/vmail/%{user} name = %{user|lower} user = %{user|lower} } skip = found } namespace inbox { inbox = yes mailbox Drafts { special_use = "\\Drafts" } mailbox Junk { special_use = "\\Junk" } mailbox Trash { special_use = "\\Trash" } mailbox Sent { special_use = "\\Sent" } mailbox "Sent Messages" { special_use = "\\Sent" } } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { port = 995 ssl = yes } } service submission-login { inet_listener submission { port = 587 } inet_listener submissions { port = 465 } } service lmtp { unix_listener lmtp { } } service imap { } service pop3 { } service submission { } service auth { unix_listener auth-userdb { } unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } } service auth-worker { } service dict { unix_listener dict { } } ssl_server { cert_file = /etc/letsencrypt/live/imap.cryptodan.net/cert.pem key_file = /etc/letsencrypt/live/imap.cryptodan.net/privkey.pem }
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 11:11 PM, Jack Raats via dovecot <dovecot@dovecot.org> wrote:
Just use
auth_username_format = %n
in your config
Gr.,
Jack
Op 17-10-2026 om 23:32 schreef Daniel Reinhardt via dovecot:
Horst,
I am using the /etc/passwd file for usernames so its not a fancy setup using anything like SQL.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 9:29 PM, Horst B Simon<horst.simon2@icloud.com> wrote:
It depends where you keep your users. I am using on one server sqlite for the usernames and on another mariadb and the username query is in the “<path>/dovecot/conf.d/auth-sql.conf.ext“ and the users are created using postfixadmin.
Horst
> On 18 Oct 2026, at 08:09, Daniel Reinhardt via dovecot<dovecot@dovecot.org> wrote: > > All, > I am running Dovecot 2.4 on a single server, and I am wondering where I > can set it to use the full email address as the login name. > I am running Ubuntu 26.04 and its fully updated. I own the server, and > the domain. Let me know what information you need to assist me. > Very Respectfully, > Daniel Reinhardt > Sent with [1]Proton Mail secure email. > > References > > Visible links > 1.https://proton.me/mail/home > _______________________________________________ > dovecot mailing list --dovecot@dovecot.org > To unsubscribe send an email todovecot-leave@dovecot.org
dovecot mailing list --dovecot@dovecot.org To unsubscribe send an email todovecot-leave@dovecot.org Just use
auth_username_format = %n
in your config
Gr.,
Jack
Op 17-10-2026 om 23:32 schreef Daniel Reinhardt via dovecot:
Horst,
I am using the /etc/passwd file for usernames so its not a fancy setup using anything like SQL.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 9:29 PM, Horst B Simon [1]<horst.simon2@icloud.com> wrote:
It depends where you keep your users. I am using on one server sqlite for the usernames and on another mariadb and the username query is in the "<path>/dovecot/conf.d/auth-sql.conf.ext" and the users are created using postfixadmin.
Horst
On 18 Oct 2026, at 08:09, Daniel Reinhardt via dovecot [2]<dovecot@dovecot.org> wrote:
All,I am running Dovecot 2.4 on a single server, and I am wondering where I can set it to use the full email address as the login name. I am running Ubuntu 26.04 and its fully updated. I own the server, and the domain. Let me know what information you need to assist me. Very Respectfully, Daniel Reinhardt Sent with [1]Proton Mail secure email.
References
Visible links
dovecot mailing list -- [4]dovecot@dovecot.org To unsubscribe send an email to [5]dovecot-leave@dovecot.org
dovecot mailing list -- [6]dovecot@dovecot.org To unsubscribe send an email to [7]dovecot-leave@dovecot.org
References
Visible links
- mailto:horst.simon2@icloud.com
- mailto:dovecot@dovecot.org
- https://proton.me/mail/home
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org Hi Daniel
The %n is invalid in Dovecot 2.4 please see my previous email which had the correct syntax Horst ------ Original Message ------ From "Daniel Reinhardt via dovecot" <[1]dovecot@dovecot.org> To [2]mlist@jarasoft.net Cc [3]dovecot@dovecot.org Date 18/10/2026 14:09:14 Subject Re: Dovecot 2.4 and E-Mail Address as Login Setting
Jack, Here is my confifg pur dovecot -n and the %n does not work when enabled as it thows No Authentication Error: # 2.4.2 (0962ed2104): /etc/dovecot/dovecot.conf # Pigeonhole version 2.4.2 (767418c3) # OS: Linux 7.0.0-38-generic x86_64 Ubuntu 26.04.1 LTS # Hostname: capricorn # 9 default setting changes since version 2.4.0 dovecot_config_version = 2.4.0 auth_mechanisms = plain login auth_username_format = %n dovecot_storage_version = 2.4.0 first_valid_uid = 1000 fts_autoindex = yes fts_autoindex_max_recent_msgs = 999 fts_search_add_missing = yes last_valid_uid = 65535 listen = * :: mail_driver = mbox mail_home = /home/%{user | username} mail_inbox_path = /var/mail/%{user} mail_path = %{home}/mail mail_privileged_group = mail protocols { imap = yes pop3 = yes } passdb pam { } userdb passwd { } userdb passwd-file { auth_username_format = %{user|lower} passwd_file_path = /etc/passwd driver = passwd-file fields { home = /var/vmail/%{user} name = %{user|lower} user = %{user|lower} } skip = found } namespace inbox { inbox = yes mailbox Drafts { special_use = "\\Drafts" } mailbox Junk { special_use = "\\Junk" } mailbox Trash { special_use = "\\Trash" } mailbox Sent { special_use = "\\Sent" } mailbox "Sent Messages" { special_use = "\\Sent" } } service imap-login { inet_listener imap { port = 143 } inet_listener imaps { port = 993 ssl = yes } } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { port = 995 ssl = yes } } service submission-login { inet_listener submission { port = 587 } inet_listener submissions { port = 465 } } service lmtp { unix_listener lmtp { } } service imap { } service pop3 { } service submission { } service auth { unix_listener auth-userdb { } unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } } service auth-worker { } service dict { unix_listener dict { } } ssl_server { cert_file = /etc/letsencrypt/live/imap.cryptodan.net/cert.pem key_file = /etc/letsencrypt/live/imap.cryptodan.net/privkey.pem } Very Respectfully, Daniel Reinhardt Sent with Proton Mail secure email. On Saturday, October 17th, 2026 at 11:11 PM, Jack Raats via dovecot <[4]dovecot@dovecot.org> wrote: Just use auth_username_format = %n in your config Gr., Jack Op 17-10-2026 om 23:32 schreef Daniel Reinhardt via dovecot:Horst,
I am using the /etc/passwd file for usernames so its not a fancy setup using anything like SQL.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 9:29 PM, Horst B Simon<[5]horst.simon2@icloud.com> wrote:
It depends where you keep your users. I am using on one server sqlite for the usernames and on another mariadb and the username query is in the "<path>/dovecot/conf.d/auth-sql.conf.ext" and the users are created using postfixadmin.
Horst
On 18 Oct 2026, at 08:09, Daniel Reinhardt via dovecot<[6]dovecot@dovecot.org> wrote:
All, I am running Dovecot 2.4 on a single server, and I am wondering where I can set it to use the full email address as the login name. I am running Ubuntu 26.04 and its fully updated. I own the server, and the domain. Let me know what information you need to assist me. Very Respectfully, Daniel Reinhardt Sent with [1]Proton Mail secure email.
References
Visible links 1.[7]https://proton.me/mail/home
dovecot mailing list [8]--dovecot@dovecot.org To unsubscribe send an email [9]todovecot-leave@dovecot.org
dovecot mailing list [10]--dovecot@dovecot.org To unsubscribe send an email [11]todovecot-leave@dovecot.org Just use
auth_username_format = %n in your config Gr., Jack Op 17-10-2026 om 23:32 schreef Daniel Reinhardt via dovecot: Horst, I am using the /etc/passwd file for usernames so its not a fancy setup using anything like SQL. Very Respectfully, Daniel Reinhardt Sent with Proton Mail secure email. On Saturday, October 17th, 2026 at 9:29 PM, Horst B Simon [1]<[12]horst.simon2@icloud.com> wrote: It depends where you keep your users. I am using on one server sqlite for the usernames and on another mariadb and the username query is in the "<path>/dovecot/conf.d/auth-sql.conf.ext" and the users are created using postfixadmin. Horst On 18 Oct 2026, at 08:09, Daniel Reinhardt via dovecot [2]<[13]dovecot@dovecot.org> wrote: All, I am running Dovecot 2.4 on a single server, and I am wondering where I can set it to use the full email address as the login name. I am running Ubuntu 26.04 and its fully updated. I own the server, and the domain. Let me know what information you need to assist me. Very Respectfully, Daniel Reinhardt Sent with [1]Proton Mail secure email. References Visible links 1. [3][14]https://proton.me/mail/home _______________________________________________ dovecot mailing list -- [4][15]dovecot@dovecot.org To unsubscribe send an email to [5][16]dovecot-leave@dovecot.org _______________________________________________ dovecot mailing list -- [6][17]dovecot@dovecot.org To unsubscribe send an email to [7][18]dovecot-leave@dovecot.org References Visible links 1. [19]mailto:horst.simon2@icloud.com 2. [20]mailto:dovecot@dovecot.org 3. [21]https://proton.me/mail/home 4. [22]mailto:dovecot@dovecot.org 5. [23]mailto:dovecot-leave@dovecot.org 6. [24]mailto:dovecot@dovecot.org 7. [25]mailto:dovecot-leave@dovecot.org _______________________________________________ dovecot mailing list -- [26]dovecot@dovecot.org To unsubscribe send an email to [27]dovecot-leave@dovecot.org _______________________________________________ dovecot mailing list -- [28]dovecot@dovecot.org To unsubscribe send an email to [29]dovecot-leave@dovecot.orgReferences
Visible links
- mailto:dovecot@dovecot.org
- mailto:mlist@jarasoft.net
- mailto:dovecot@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:horst.simon2@icloud.com
- mailto:dovecot@dovecot.org
- https://proton.me/mail/home
- mailto:--dovecot@dovecot.org
- mailto:todovecot-leave@dovecot.org
- mailto:--dovecot@dovecot.org
- mailto:todovecot-leave@dovecot.org
- mailto:horst.simon2@icloud.com
- mailto:dovecot@dovecot.org
- https://proton.me/mail/home
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
- mailto:horst.simon2@icloud.com
- mailto:dovecot@dovecot.org
- https://proton.me/mail/home
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
- mailto:dovecot@dovecot.org
- mailto:dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Have you tried setting log_debug=category=auth and check logs? It might tell you where the problem lies.
Aki
On 18/10/2026 07:06 EEST Daniel Reinhardt via dovecot <dovecot@dovecot.org> wrote:
Horst,
I have that set to default, and it doesn't allow email address to be used.
I get the same error as No Authentication Error.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Sunday, October 18th, 2026 at 4:03 AM, Horst B Simon via dovecot <dovecot@dovecot.org> wrote:
Hi Daniel The %n is invalid in Dovecot 2.4 please see my previous email which had the correct syntax Horst
All,
I got working with the following edits to auth-system.conf.ext:
userdb passwd-file { driver = passwd-file auth_username_format=%{user|username} passwd_file_path = /etc/passwd fields { user = %{user|username} name = %{user|lower} home = /var/vmail/%{user} } skip = found
And edits to 10-auth.conf
auth_username_format=%{user|username}
I can now authenticate via email address.
I thought I would provide the fix incase others have this issue.
Very Respectfully, Daniel Reinhardt
PS Dovecot support is awesome
Sent with Proton Mail secure email.
On Sunday, October 18th, 2026 at 6:40 AM, Aki Tuomi via dovecot <dovecot@dovecot.org> wrote:
Have you tried setting
log_debug=category=authand check logs? It might tell you where the problem lies.Aki
On 18/10/2026 07:06 EEST Daniel Reinhardt via dovecot <dovecot@dovecot.org> wrote:
Horst,
I have that set to default, and it doesn't allow email address to be used.
I get the same error as No Authentication Error.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Sunday, October 18th, 2026 at 4:03 AM, Horst B Simon via dovecot <dovecot@dovecot.org> wrote:
Hi Daniel The %n is invalid in Dovecot 2.4 please see my previous email which had the correct syntax Horst
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Why would you use an email address for login? Using an username gives you already some sort of 2fa. Only the huge companies that want to track people and have issues scaling, would resort to using email addresses...
-----Original Message----- From: Daniel Reinhardt via dovecot <dovecot@dovecot.org> Sent: Sunday, 18 October 2026 23:26 To: Aki Tuomi <aki.tuomi@open-xchange.com> Cc: Daniel Reinhardt via dovecot <dovecot@dovecot.org>; Horst B Simon <horst.simon2@icloud.com>; mlist@jarasoft.net Subject: Re: Re[2]: Dovecot 2.4 and E-Mail Address as Login Setting
All,
I got working with the following edits to auth-system.conf.ext:
userdb passwd-file { driver = passwd-file auth_username_format=%{user|username} passwd_file_path = /etc/passwd fields { user = %{user|username} name = %{user|lower} home = /var/vmail/%{user} } skip = found
And edits to 10-auth.conf
auth_username_format=%{user|username}
I can now authenticate via email address.
I thought I would provide the fix incase others have this issue.
Very Respectfully, Daniel Reinhardt
PS Dovecot support is awesome
Sent with Proton Mail secure email.
On Sunday, October 18th, 2026 at 6:40 AM, Aki Tuomi via dovecot <dovecot@dovecot.org> wrote:
Have you tried setting
log_debug=category=authand check logs? It might tell you where the problem lies.Aki
On 18/10/2026 07:06 EEST Daniel Reinhardt via dovecot <dovecot@dovecot.org> wrote:
Horst,
I have that set to default, and it doesn't allow email address to be used.
I get the same error as No Authentication Error.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Sunday, October 18th, 2026 at 4:03 AM, Horst B Simon via dovecot <dovecot@dovecot.org> wrote:
Hi Daniel The %n is invalid in Dovecot 2.4 please see my previous email which had the correct syntax Horst
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Marc,
Because its about choice and learning how to set things up.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Sunday, October 18th, 2026 at 9:32 PM, Marc <Marc@f1-outsourcing.eu> wrote:
Why would you use an email address for login? Using an username gives you already some sort of 2fa. Only the huge companies that want to track people and have issues scaling, would resort to using email addresses...
-----Original Message----- From: Daniel Reinhardt via dovecot <dovecot@dovecot.org> Sent: Sunday, 18 October 2026 23:26 To: Aki Tuomi <aki.tuomi@open-xchange.com> Cc: Daniel Reinhardt via dovecot <dovecot@dovecot.org>; Horst B Simon <horst.simon2@icloud.com>; mlist@jarasoft.net Subject: Re: Re[2]: Dovecot 2.4 and E-Mail Address as Login Setting
All,
I got working with the following edits to auth-system.conf.ext:
userdb passwd-file { driver = passwd-file auth_username_format=%{user|username} passwd_file_path = /etc/passwd fields { user = %{user|username} name = %{user|lower} home = /var/vmail/%{user} } skip = found
And edits to 10-auth.conf
auth_username_format=%{user|username}
I can now authenticate via email address.
I thought I would provide the fix incase others have this issue.
Very Respectfully, Daniel Reinhardt
PS Dovecot support is awesome
Sent with Proton Mail secure email.
On Sunday, October 18th, 2026 at 6:40 AM, Aki Tuomi via dovecot <dovecot@dovecot.org> wrote:
Have you tried setting
log_debug=category=authand check logs? It might tell you where the problem lies.Aki
On 18/10/2026 07:06 EEST Daniel Reinhardt via dovecot <dovecot@dovecot.org> wrote:
Horst,
I have that set to default, and it doesn't allow email address to be used.
I get the same error as No Authentication Error.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Sunday, October 18th, 2026 at 4:03 AM, Horst B Simon via dovecot <dovecot@dovecot.org> wrote:
Hi Daniel The %n is invalid in Dovecot 2.4 please see my previous email which had the correct syntax Horst
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
From IOS 18 on there are difficulties with the native Apple Mail client connecting using IMAP. After googling I found on the Apple mailing list that it works using Exchange Active Sync (EAS) to connect, but the username had to be an email address not username only. This is the reason why I use the email address for authentication.
Horst
On 19 Oct 2026, at 08:35, Daniel Reinhardt <cryptodanvr@protonmail.com> wrote:
Marc,
Because its about choice and learning how to set things up.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Sunday, October 18th, 2026 at 9:32 PM, Marc <Marc@f1-outsourcing.eu> wrote:
Why would you use an email address for login? Using an username gives you already some sort of 2fa. Only the huge companies that want to track people and have issues scaling, would resort to using email addresses...
-----Original Message----- From: Daniel Reinhardt via dovecot <dovecot@dovecot.org> Sent: Sunday, 18 October 2026 23:26 To: Aki Tuomi <aki.tuomi@open-xchange.com> Cc: Daniel Reinhardt via dovecot <dovecot@dovecot.org>; Horst B Simon <horst.simon2@icloud.com>; mlist@jarasoft.net Subject: Re: Re[2]: Dovecot 2.4 and E-Mail Address as Login Setting
All,
I got working with the following edits to auth-system.conf.ext:
userdb passwd-file { driver = passwd-file auth_username_format=%{user|username} passwd_file_path = /etc/passwd fields { user = %{user|username} name = %{user|lower} home = /var/vmail/%{user} } skip = found
And edits to 10-auth.conf
auth_username_format=%{user|username}
I can now authenticate via email address.
I thought I would provide the fix incase others have this issue.
Very Respectfully, Daniel Reinhardt
PS Dovecot support is awesome
Sent with Proton Mail secure email.
On Sunday, October 18th, 2026 at 6:40 AM, Aki Tuomi via dovecot <dovecot@dovecot.org> wrote:
Have you tried setting
log_debug=category=authand check logs? It might tell you where the problem lies.Aki
On 18/10/2026 07:06 EEST Daniel Reinhardt via dovecot <dovecot@dovecot.org> wrote:
Horst,
I have that set to default, and it doesn't allow email address to be used.
I get the same error as No Authentication Error.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Sunday, October 18th, 2026 at 4:03 AM, Horst B Simon via dovecot <dovecot@dovecot.org> wrote:
Hi Daniel The %n is invalid in Dovecot 2.4 please see my previous email which had the correct syntax Horst
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
Hi Daniel,
This is my personal DokuWiki, maybe you can/would compare your settings to mine:
https://dokuwiki.tachtler.net/doku.php?id=tachtler:dovecot_archlinux#konfigu...
(It's only in German language)
Later in my DokuWiki, I have a SQL configuration with postfixadmin too...
Greetings, Klaus.
--
e-Mail : klaus@tachtler.net Homepage: https://www.tachtler.net DokuWiki: https://dokuwiki.tachtler.net
Daniel,
I run it thru the converter and it came back as follow
auth_username_format = %{user | lower}
Horst
------ Original Message ------ From "Daniel Reinhardt via dovecot" <dovecot@dovecot.org> To "Horst B Simon" <horst.simon2@icloud.com> Cc dovecot@dovecot.org Date 18/10/2026 8:32:58 AM Subject Re: Dovecot 2.4 and E-Mail Address as Login Setting
Horst,
I am using the /etc/passwd file for usernames so its not a fancy setup using anything like SQL.
Very Respectfully, Daniel Reinhardt
Sent with Proton Mail secure email.
On Saturday, October 17th, 2026 at 9:29 PM, Horst B Simon <horst.simon2@icloud.com> wrote:
It depends where you keep your users. I am using on one server sqlite for the usernames and on another mariadb and the username query is in the “<path>/dovecot/conf.d/auth-sql.conf.ext“ and the users are created using postfixadmin.
Horst
On 18 Oct 2026, at 08:09, Daniel Reinhardt via dovecot <dovecot@dovecot.org> wrote:
All, I am running Dovecot 2.4 on a single server, and I am wondering where I can set it to use the full email address as the login name. I am running Ubuntu 26.04 and its fully updated. I own the server, and the domain. Let me know what information you need to assist me. Very Respectfully, Daniel Reinhardt Sent with [1]Proton Mail secure email.
References
Visible links
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
participants (6)
-
Aki Tuomi
-
Daniel Reinhardt
-
Horst B Simon
-
Jack Raats
-
Klaus Tachtler
-
Marc