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
<[email protected]> 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<[email protected]> 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<[email protected]> 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 [email protected]
> >>> To unsubscribe send an email [email protected]
> > _______________________________________________
> > dovecot mailing list [email protected]
> > To unsubscribe send an email [email protected] 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]<[email protected]> 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]<[email protected]> 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][email protected]
> To unsubscribe send an email to [5][email protected]
>
>
> _______________________________________________
> dovecot mailing list -- [6][email protected]
> To unsubscribe send an email to [7][email protected]
>
> References
>
> Visible links
> 1. mailto:[email protected]
> 2. mailto:[email protected]
> 3. https://proton.me/mail/home
> 4. mailto:[email protected]
> 5. mailto:[email protected]
> 6. mailto:[email protected]
> 7. mailto:[email protected]
> _______________________________________________
> dovecot mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
>
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]