Gentoo Archives: gentoo-user

From: antlists <antlists@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Dovecot config
Date: Tue, 28 Sep 2021 21:44:17
Message-Id: 14f27b12-cc26-6c88-518c-156f009ae6eb@youngman.org.uk
In Reply to: [gentoo-user] Dovecot config by antlists
1 On 27/09/2021 22:46, antlists wrote:
2 > I'm trying to configure dovecot to give me a mix of virtual and real
3 > users. It's working fine for my real id.
4 >
5 > But it's not working for my antlists virtual id :-(
6
7 Is nobody else using virtual addresses for dovecot?
8 >
9 > I know it's the authentication messing up,  but I don't know what or how
10 > to fix it - I don't use anything more complicated than /etc/passwd,  and
11 > it looks like it's desperate to use pam.auth and getting itself all in a
12 > twist.
13 >
14 > If I create the dovecot passwd file with
15 >
16 > antlists:{PLAIN}password
17 >
18 > thunderbird complains that there's a problem with the server.
19 >
20 > But if I use htpasswd to create the entry in the passwd file, it complains
21 > pam_faillock(imap:auth): User unknown
22 >
23 I've been trying a bunch of stuff, and it boils down to "how the hell do
24 I get the password to match?"
25
26 If I have the line
27
28 antlists:password
29
30 it rejects my attempt to connect with "login failed", and systemctl says
31 "password mismatch". But if I try to put an encrypted password in there,
32 the attempt to connect fails with "server disconnected".
33
34 So basically, how on earth am I supposed to get dovecot to either accept
35 the password I give it, or let me set the password!
36
37 (Of course, I could just give up and create a real user, but I was
38 hoping to avoid that!)
39
40 Cheers,
41 Wol