aboutsummaryrefslogtreecommitdiff
path: root/app/email/build/dovecot/conf/dovecot.conf
blob: b0fffbf5fc4a52668ad5c9a1012572a637780313 (plain) (blame)
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
auth_mechanisms = plain login
auth_username_format = %u
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/var/mail/%u
mail_privileged_group = mail

log_path = /dev/stderr
info_log_path = /dev/stdout
debug_log_path = /dev/stdout

protocols = imap sieve lmtp

ssl_cert = < /etc/ssl/certs/dovecot.crt
ssl_key = < /etc/ssl/private/dovecot.key

service auth {
 inet_listener {
   port = 1337
 }
}



service lmtp {
  inet_listener lmtp {
    address = 0.0.0.0
    port = 24
  }
}

# https://doc.dovecot.org/configuration_manual/authentication/ldap_authentication/
passdb {
  args = /etc/dovecot/dovecot-ldap.conf
  driver = ldap
}
userdb {
  driver = prefetch
}
userdb {
  args = /etc/dovecot/dovecot-ldap.conf
  driver = ldap
}


service imap-login {
  inet_listener imap {
    port = 143
  }
  inet_listener imaps {
    port = 993
  }
}

protocol imap {
  mail_plugins = $mail_plugins imap_sieve
}

protocol lda {
  auth_socket_path = /var/run/dovecot/auth-master
  info_log_path = /var/log/dovecot-deliver.log
  log_path = /var/log/dovecot-deliver-errors.log
  postmaster_address = postmaster@deuxfleurs.fr
  mail_plugins = $mail_plugins sieve
}

plugin {
  sieve = file:~/sieve;active=~/dovecot.sieve
  sieve_before = /etc/dovecot/all_before.sieve

  # antispam learn
  sieve_plugins = sieve_imapsieve sieve_extprograms
  sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment +vnd.dovecot.debug
  sieve_pipe_bin_dir = /usr/bin

  imapsieve_mailbox1_name = Junk
  imapsieve_mailbox1_causes = COPY FLAG APPEND
  imapsieve_mailbox1_before = file:/etc/dovecot/report-spam.sieve

  imapsieve_mailbox2_name = *
  imapsieve_mailbox2_from = Spam
  imapsieve_mailbox2_causes = COPY APPEND
  imapsieve_mailbox2_before = file:/etc/dovecot/report-ham.sieve

}