1 |
On 29/09/2021 12:06, Nils Freydank wrote: |
2 |
> Hi Wol, |
3 |
> |
4 |
> my credentials for dovecot have the following syntax, i.e. four additional |
5 |
> colons after the password: |
6 |
> '<user name>:<type of the password><password itself>::::' |
7 |
> I use only virtual users, so I can't tell if mixing works, too. |
8 |
> |
9 |
> For the dovecot setup I can recommend this guide: |
10 |
> https://prefetch.eu/blog/2020/email-server/#mda-dovecot |
11 |
|
12 |
Looks quite a good guide ... |
13 |
> |
14 |
> Two general remarks: |
15 |
> 1st, be more patient. This is a mailing list, not a support chat. |
16 |
|
17 |
I know :-) but I thought 24hrs would lead to at least one bite ... :-) |
18 |
|
19 |
> 2nd, I _strongly_ recommend to use some kind of hashing instead of plain |
20 |
> passwords. I use '{ARGON2ID}' and generate the hashes by running |
21 |
> 'doveadm pw -s ARGON2I' |
22 |
> which asks for the plain text password on stdin. |
23 |
|
24 |
Yup. But it's a home server and security is pretty lax anyway... |
25 |
And having problems full stop I thought I'd try and get it working |
26 |
before worrying about hashing - I've already tried hashing with exactly |
27 |
the same results ... |
28 |
> |
29 |
> |
30 |
These are the logs reported by systemctl ... |
31 |
|
32 |
Sep 29 22:01:11 thewolery dovecot[1328]: auth-worker(4883): conn |
33 |
unix:auth-worker (pid=4881,uid=76): auth-worker<1>: |
34 |
passwd(antlists,192.168.1.65,<0zFJoSjNUfnAqAFB>): unknown user |
35 |
Sep 29 22:01:11 thewolery dovecot[1328]: auth: Error: |
36 |
passwd(antlists,192.168.1.65,<0zFJoSjNUfnAqAFB>): user not found from userdb |
37 |
Sep 29 22:01:11 thewolery dovecot[1328]: imap: Error: auth-master: |
38 |
login: request [2101346305]: Login auth request failed: Authenticated |
39 |
user not found from userdb, auth lookup id=2101346305 (auth connect> |
40 |
Sep 29 22:01:11 thewolery dovecot[1328]: imap-login: Internal login |
41 |
failure (pid=4880 id=1): user=<antlists>, method=PLAIN, |
42 |
rip=192.168.1.65, lip=192.168.1.218, mpid=4882, TLS, |
43 |
session=<0zFJoSjNUfnAqAFB> |
44 |
Sep 29 22:01:11 thewolery dovecot[1328]: auth-worker(4883): conn |
45 |
unix:auth-worker (pid=4881,uid=76): auth-worker<2>: |
46 |
passwd(antlists,192.168.1.65,<3ddJoSjNUvnAqAFB>): unknown user |
47 |
Sep 29 22:01:11 thewolery dovecot[1328]: auth: Error: |
48 |
passwd(antlists,192.168.1.65,<3ddJoSjNUvnAqAFB>): user not found from userdb |
49 |
Sep 29 22:01:11 thewolery dovecot[1328]: imap: Error: auth-master: |
50 |
login: request [2807693313]: Login auth request failed: Authenticated |
51 |
user not found from userdb, auth lookup id=2807693313 (auth connect> |
52 |
Sep 29 22:01:11 thewolery dovecot[1328]: imap-login: Internal login |
53 |
failure (pid=4884 id=1): user=<antlists>, method=PLAIN, |
54 |
rip=192.168.1.65, lip=192.168.1.218, mpid=4885, TLS, |
55 |
session=<3ddJoSjNUvnAqAFB> |
56 |
|
57 |
and from dovecot.conf |
58 |
|
59 |
# authentication configuration: |
60 |
auth_verbose = yes |
61 |
auth_mechanisms = plain |
62 |
passdb { |
63 |
driver = passwd-file |
64 |
args = /etc/dovecot/passwd |
65 |
} |
66 |
|
67 |
userdb { |
68 |
driver = passwd-file |
69 |
args = username_format=%n /etc/dovecot/passwd |
70 |
override_fields = uid=vmail gid=vmail home=/home/vmail/%n |
71 |
} |
72 |
|
73 |
Cheers, |
74 |
Wol |