Yes. That's all actually in the documentation.

But what *exactly* did you try with pam?

passdb pam {
   auth_username_format = %{user|username}
}

usually works, if you have /etc/pam.d/dovecot file done right.

Aki

> On 22/10/2026 18:23 EEST fc26wuqa--- via dovecot <[email protected]> wrote:
> 
>  
> Hello,
> thank you. I already tried this.
> 
> I tried switching to passwd-file now.
> How can I create users with that. Do I just edit some password file?
> Isnt this a bad idea to store plain passwords this way? Or how can i  
> encrypt them that dovecot understands them?
> Best,
> Lucienne
> Zitat von Aki Tuomi <[email protected]>:
> 
> > Hi!
> >  
> >    See
> > https://doc.dovecot.org/2.4.5/core/summaries/settings.html#auth_username_format
> >  
> > Aki
> >  
> >
> >> On 22/10/2026 17:56 EEST fc26wuqa--- via dovecot <[email protected]>
> >> wrote:
> >>  
> >>  
> >> Hello,
> >>  
> >> so far I used pam_ldap.so for authentication.
> >> nsss then imports all ldap users.
> >>  
> >> My Ldap Server went down today, so I want to migrate to a system that
> >> uses users in /etc/passwd.
> >> I created a user something.something and I can log in with pam.
> >>  
> >> But when I try to login via dovecot I get the error message: pam:
> >> unknown user. I think its probably because its trying to authenticate
> >>     something@[email protected] which does not exist.
> >>  
> >> How do i fix that?
> >>  
> >> Thank you.
> >> Best,
> >> Lucienne
> >>  
> >>  
> >> _______________________________________________
> >>     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]

_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to