summaryrefslogtreecommitdiffstats
path: root/doc/wiki/HowTo.EximAndDovecotSASL.txt
blob: 99d178ce5e65fadfac9a5f2583dda325ed174967 (plain)
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
Exim and Dovecot SASL
=====================

Exim v4.64+ users can use Dovecot SASL instead of Cyrus SASL for authenticating
SMTP clients.

conf.d/10-master.conf
---------------------

---%<-------------------------------------------------------------------------
service auth {
...
#SASL
  unix_listener auth-client {
    mode = 0660
    user = mail
  }
...
}
---%<-------------------------------------------------------------------------

conf.d/10-auth.conf
-------------------

---%<-------------------------------------------------------------------------
auth_mechanisms = plain login
---%<-------------------------------------------------------------------------

exim.conf
---------

Create authenticators for Dovecot:

---%<-------------------------------------------------------------------------
dovecot_login:
  driver = dovecot
  public_name = LOGIN
  server_socket = /var/run/dovecot/auth-client
# setting server_set_id might break several headers in mails sent by
authenticated smtp. So be careful.
  server_set_id = $auth1

dovecot_plain:
  driver = dovecot
  public_name = PLAIN
  server_socket = /var/run/dovecot/auth-client
  server_set_id = $auth1
---%<-------------------------------------------------------------------------

If you are having problems with this not working ensure that you are using
version 4.72 or greater of exim. Previous versions of exim have trouble with
the version of the protocol used in Dovecot 2

(This file was created from the wiki on 2019-06-19 12:42)