-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaster-authentication.txt
49 lines (34 loc) · 1.33 KB
/
master-authentication.txt
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
remove ACL from plugins
conf.d/10-mail.conf
conf.d/20-imap.conf
### file: /Library/Server/Mail/Config/dovecot/conf.d/auth-master.conf.ext
# Authentication for master users. Included from 10-auth.conf.
#
# Version 2.2.x (AR14759611)
# By adding master=yes setting inside a passdb you make the passdb a list
# of "master users", who can log in as anyone else.
# <doc/wiki/Authentication.MasterUsers.txt>
# Example master user passdb using passwd-file. You can use any passdb though.
passdb {
driver = passwd-file
master = yes
args = /Library/Server/Mail/Config/dovecot/master-users
# Unless you're using PAM, you probably still want the destination user to
# be looked up from passdb that it really exists. pass=yes does that.
pass = yes
}
#### Edit /Library/Server/Mail/Config/dovecot/conf.d/10-auth.conf
auth_master_user_separator = *
#!include auth-master.conf.ext
!include auth-master.conf.ext
# create masteruser pass
sudo htpasswd -b -c -s /Library/Server/Mail/Config/dovecot/master-users masteruser 'masterpass'
sudo htpasswd -b -c -s /Library/Server/Mail/Config/dovecot/master-users masteruser 'AllTheWay'
# activate
sudo launchctl stop org.dovecot.dovecotd
#test
# telnet localhost 143
* OK Dovecot ready.
1 login loginuser*masteruser masterpass
1 login loginuser*masteruser AllTheWay
1 login jeffjohnson*masteruser AllTheWay