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