summaryrefslogtreecommitdiff
path: root/etc/dovecot/dovecot.conf
blob: e7d11a07ea83c27791f68d27fadaefbcf92ef111 (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
# Edited from `doveconf -nP`, see https://doc.dovecot.org/2.3/configuration_manual/quick_configuration/#split-configuration-files
mail_location = maildir:~/Mail:INBOX=~/Mail/Inbox:LAYOUT=fs
namespace inbox {
	inbox = yes
	location =
	mailbox Archive {
		auto = subscribe
		special_use = \Archive
	}
	mailbox Drafts {
		auto = subscribe
		special_use = \Drafts
	}
	mailbox Junk {
		auto = subscribe
		special_use = \Junk
	}
	mailbox Sent {
		auto = subscribe
		special_use = \Sent
	}
	mailbox Trash {
		auto = subscribe
		# https://doc.dovecot.org/configuration_manual/namespace/#core_setting-namespace/mailbox/autoexpunge
		# https://github.com/LukeSmithxyz/emailwiz/blob/558c4de108a472eca70abca20888de2981ff17ca/emailwiz.sh#L259
		# https://doc.dovecot.org/settings/types/#time
		autoexpunge = 30 days
		special_use = \Trash
	}
	prefix =
}
passdb {
	driver = pam
}
service auth {
	unix_listener /var/spool/postfix/private/auth {
		group = postfix
		mode = 0666
		user = postfix
	}
}
ssl = required
ssl_cert = </etc/postfix/flylightning.pem
ssl_dh = </etc/dovecot/dh.pem
ssl_key = </etc/postfix/flylightning.key
userdb {
	driver = passwd
}