1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
Contents
1. Check that it's running
2. Check that it's listening
3. Check that it's allowing logins
4. Check that it's allowing remote logins
5. Check that it finds the mails
6. Check that real mail clients work
7. Make a graceful exit
Check that it's running
-----------------------
First check with 'ps' that 'dovecot' process is actually running. If it's not,
you had an error in 'dovecot.conf' and the error message was written to log. Go
back to <RunningDovecot.txt> and <Logging.txt> if you can't find it.
Check that it's listening
-------------------------
Next check that Dovecot is listening for connections:
---%<-------------------------------------------------------------------------
# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Dovecot ready.
---%<-------------------------------------------------------------------------
If you got "connection refused", check that 'pop3' is included in 'protocols'
setting in 'dovecot.conf'. Also check that 'listen' setting is '*'.
Next check that it also works from remote host:
---%<-------------------------------------------------------------------------
# telnet imap.example.com 110
Trying 1.2.3.4...
Connected to imap.example.com.
Escape character is '^]'.
+OK Dovecot ready.
---%<-------------------------------------------------------------------------
If that didn't work, check all possible firewalls in between, and check that
'listen' setting is '*' in 'dovecot.conf'.
Check that it's allowing logins
-------------------------------
---%<-------------------------------------------------------------------------
# telnet localhost 110
user username
pass password
---%<-------------------------------------------------------------------------
Replace the username and password with the ones you added to 'passwd.dovecot'
in <BasicConfiguration.txt>.
You should get an "+OK Logged in." reply. If you get "Authentication failed"
error, set 'auth_verbose = yes' and 'auth_debug = yes' in 'dovecot.conf',
restart Dovecot and try again. The log file should now show enough information
to help you fix the problem.
Check that it's allowing remote logins
--------------------------------------
You'll need to try this from another computer, since all local IPs are treated
as secure:
---%<-------------------------------------------------------------------------
# telnet imap.example.com 110
user username
pass password
---%<-------------------------------------------------------------------------
If the connection is hanging instead of giving '+OK Dovecot ready', you have a
firewall that's preventing the connections.
Otherwise, the only difference here compared to step above is that you might
get:
---%<-------------------------------------------------------------------------
-ERR Plaintext authentication disabled.
---%<-------------------------------------------------------------------------
If this is the case, you didn't set 'disable_plaintext_auth = no'. You could
alternatively use OpenSSL to test that the server works with SSL (assuming
you've already set it up):
---%<-------------------------------------------------------------------------
# openssl s_client -connect imap.example.com:995
+OK Dovecot ready.
---%<-------------------------------------------------------------------------
Check that it finds the mails
-----------------------------
After logging in, check that it sees mails:
---%<-------------------------------------------------------------------------
stat
+OK 1 1532
retr 1
+OK 1532 octets
<the mail's contents>
.
---%<-------------------------------------------------------------------------
It should contain the mail that you sent to yourself in <FindMailLocation.txt>
step.
If anything goes wrong, set 'mail_debug = yes' and try again. The log file
should now contain debugging information of where Dovecot is trying to find the
mails. Fix 'mail_location' setting and try again.
Check that real mail clients work
---------------------------------
Since mail clients can be configured in various ways, please check first if the
problem is with Dovecot configuration or with the client's configuration. You
can rule out it being Dovecot's problem with the "telnet" methods described
above.
If you can't log in,
* Make sure SSL/TLS settings are correct.
* Make sure the client uses plaintext authentication method, unless you've
specifically configured Dovecot to accept others.
Many POP3 clients have been tested with Dovecot and they work.
Make a graceful exit
--------------------
To close the connection to Dovecot issue a logout:
---%<-------------------------------------------------------------------------
quit
+OK Logging out.
---%<-------------------------------------------------------------------------
(This file was created from the wiki on 2019-06-19 12:42)
|