logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

Raw Paste Créer un nouveau Paste

dovecot conf - #808C9EB7FD

  1. ## Dovecot configuration file
  2.  
  3. # If you're in a hurry, see http://wiki2.dovecot.org/QuickConfiguration
  4.  
  5. # "doveconf -n" command gives a clean output of the changed settings. Use it
  6. # instead of copy&pasting files when posting to the Dovecot mailing list.
  7.  
  8. # '#' character and everything after it is treated as comments. Extra spaces
  9. # and tabs are ignored. If you want to use either of these explicitly, put the
  10. # value inside quotes, eg.: key = "# char and trailing whitespace "
  11.  
  12. # Most (but not all) settings can be overridden by different protocols and/or
  13. # source/destination IPs by placing the settings inside sections, for example:
  14. # protocol imap, local 127.0.0.1 { }, remote 10.0.0.0/8 { }
  15.  
  16. # Default values are shown for each setting, it's not required to uncomment
  17. # those. These are exceptions to this though: No sections (e.g. namespace {})
  18. # or plugin settings are added by default, they're listed only as examples.
  19. # Paths are also just examples with the real defaults being based on configure
  20. # options. The paths listed here are for configure --prefix=/usr
  21. # --sysconfdir=/etc --localstatedir=/var
  22.  
  23. # Enable installed protocols
  24. !include_try /usr/share/dovecot/protocols.d/*.protocol
  25.  
  26. # A comma separated list of IPs or hosts where to listen in for connections.
  27. # "*" listens in all IPv4 interfaces, "::" listens in all IPv6 interfaces.
  28. # If you want to specify non-default ports or anything more complex,
  29. # edit conf.d/master.conf.
  30. #listen = *, ::
  31. #listen = *
  32.  
  33. # Base directory where to store runtime data.
  34. #base_dir = /var/run/dovecot/
  35.  
  36. # Name of this instance. In multi-instance setup doveadm and other commands
  37. # can use -i <instance_name> to select which instance is used (an alternative
  38. # to -c <config_path>). The instance name is also added to Dovecot processes
  39. # in ps output.
  40. #instance_name = dovecot
  41.  
  42. # Greeting message for clients.
  43. #login_greeting = Dovecot ready.
  44.  
  45. # Space separated list of trusted network ranges. Connections from these
  46. # IPs are allowed to override their IP addresses and ports (for logging and
  47. # for authentication checks). disable_plaintext_auth is also ignored for
  48. # these networks. Typically you'd specify your IMAP proxy servers here.
  49. #login_trusted_networks =
  50.  
  51. # Space separated list of login access check sockets (e.g. tcpwrap)
  52. #login_access_sockets =
  53.  
  54. # With proxy_maybe=yes if proxy destination matches any of these IPs, don't do
  55. # proxying. This isn't necessary normally, but may be useful if the destination
  56. # IP is e.g. a load balancer's IP.
  57. #auth_proxy_self =
  58.  
  59. # Show more verbose process titles (in ps). Currently shows user name and
  60. # IP address. Useful for seeing who are actually using the IMAP processes
  61. # (eg. shared mailboxes or if same uid is used for multiple accounts).
  62. #verbose_proctitle = no
  63.  
  64. # Should all processes be killed when Dovecot master process shuts down.
  65. # Setting this to "no" means that Dovecot can be upgraded without
  66. # forcing existing client connections to close (although that could also be
  67. # a problem if the upgrade is e.g. because of a security fix).
  68. #shutdown_clients = yes
  69.  
  70. # If non-zero, run mail commands via this many connections to doveadm server,
  71. # instead of running them directly in the same process.
  72. #doveadm_worker_count = 0
  73. # UNIX socket or host:port used for connecting to doveadm server
  74. #doveadm_socket_path = doveadm-server
  75.  
  76. # Space separated list of environment variables that are preserved on Dovecot
  77. # startup and passed down to all of its child processes. You can also give
  78. # key=value pairs to always set specific settings.
  79. #import_environment = TZ
  80.  
  81. ##
  82. ## Dictionary server settings
  83. ##
  84.  
  85. # Dictionary can be used to store key=value lists. This is used by several
  86. # plugins. The dictionary can be accessed either directly or though a
  87. # dictionary server. The following dict block maps dictionary names to URIs
  88. # when the server is used. These can then be referenced using URIs in format
  89. # "proxy::<name>".
  90.  
  91. dict {
  92. #quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
  93. #expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
  94. }
  95.  
  96. # Most of the actual configuration gets included below. The filenames are
  97. # first sorted by their ASCII value and parsed in that order. The 00-prefixes
  98. # in filenames are intended to make it easier to understand the ordering.
  99.  
  100. !include conf.d/*.conf
  101.  
  102. # A config file can also tried to be included without giving an error if
  103. # it's not found:
  104.  
  105. #!include_try local.conf
  106.  
  107.  
  108. ####### AUTHENTIFICATION #########
  109.  
  110. auth_master_user_separator = +
  111. #auth_username_chars = * #dovecot complains about the “*” character
  112. #auth_username_format = %Lu
  113. auth_verbose = yes
  114. auth_debug = yes
  115. auth_debug_passwords = yes
  116. passdb {
  117. driver = passwd-file
  118. args = /etc/dovecot/passwd.masterusers
  119. master = yes
  120. #pass = yes
  121. #result_success -> doesn’t work with PAM or LDAP without auth_bind=yes, because both of them require knowing the user’s password
  122. #result_success=continue
  123. }
  124. passdb {
  125. # driver = shadow
  126. # driver = pam -> pam_unix.so module, which authenticates user from the system’s shadow password file
  127. driver = pam
  128. }
  129. userdb {
  130. driver = passwd
  131. }
  132.  
  133. ############ PROTOCOLS ############
  134.  
  135. # the protocols we use
  136. protocols = imap pop3 lmtp sieve
  137. #lmtp sieve
  138.  
  139. ############ LOG ############
  140.  
  141. log_path = /var/log/dovecot.log
  142. # If you want everything in one file, just don't specify info_log_path and debug_log_path
  143. #info_log_path = /var/log/dovecot-info.log
  144. # Leave empty in order to send debug-level messages to info_log_path
  145. #debug_log_path = /var/log/dovecot-debug.log
  146.  
  147. #log_path = syslog
  148. #debug_log_path =
  149. #syslog_facility = mail
  150. #auth_verbose = no
  151. #auth_verbose_passwords = no
  152. #auth_debug = no
  153. #auth_debug_passwords = no
  154. #mail_debug = no
  155. #verbose_ssl = no
  156.  
  157. #plugin {
  158. #mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
  159. # Available fields: uid, box, msgid, from, subject, size, vsize, flags
  160. # size and vsize are available only for expunge and copy events.
  161. #mail_log_fields = uid box msgid size
  162. #}
  163.  
  164. #log_timestamp = "%b %d %H:%M:%S "
  165. #login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c
  166. #login_log_format = %$: %s
  167. #mail_log_prefix = "%s(%u): "
  168.  
  169. # %$ - Delivery status message (e.g. "saved to INBOX")
  170. # %m - Message-ID
  171. # %s - Subject
  172. # %f - From address
  173. # %p - Physical size
  174. # %w - Virtual size
  175. #deliver_log_format = msgid=%m: %$
  176.  
  177. ############ MAIL ############
  178. # %u - username
  179. # %n - user part in user@domain, same as %u if there's no domain
  180. # %d - domain part in user@domain, empty if there's no domain
  181. # %h - home directory
  182.  
  183. # Chemin des mails de chaque user cree sous linux
  184. #mail_home = /home/vmail/%d/%n
  185. mail_location = maildir:~/Maildir
  186.  
  187. namespace inbox {
  188. separator = /
  189. inbox = yes
  190. }
  191.  
  192. # User accept to access mails
  193. first_valid_uid = 2000
  194. last_valid_uid = 2050
  195. first_valid_gid = 2000
  196. last_valid_gid = 2000
  197.  
  198. #If you use multiple, userdb
  199. #mail_uid = 11111
  200. #mail_gid = 11111
  201. #mail_privileged_group = mail
  202.  
  203. # ?
  204. #mail_plugins = $mail_plugins imap_sieve
  205.  
  206. #mail_temp_dir=/mnt/my_data/srv_mail/mail_tmp
  207.  
  208. # Directory root where to store mail attachments. Disabled, if empty.
  209. #mail_attachment_dir = /mnt/my_data/srv_mail/
  210.  
  211. # Hash format to use in attachment filenames. You can add any text and
  212. # variables: %{md4}, %{md5}, %{sha1}, %{sha256}, %{sha512}, %{size}.
  213. # Variables can be truncated, e.g. %{sha256:80} returns only first 80 bits
  214. #mail_attachment_hash = %{sha1}
  215.  
  216. #mail_attachment_min_size = 128k
  217.  
  218. # Voir /etc/dovecot/conf.d/10-mail.conf
  219. #valid_chroot_dirs = <doc/wiki/Chrooting.txt>
  220. #mail_chroot = <doc/wiki/Chrooting.txt>
  221.  
  222. # Maildir-specific settings
  223.  
  224. #maildir_stat_dirs = no
  225. #maildir_copy_with_hardlinks = yes
  226. #maildir_broken_filename_sizes = no
  227. #maildir_empty_new = no
  228.  
  229. ############ MASTER ############
  230. # /etc/dovecot/conf.d/10-master.conf
  231.  
  232. service imap-login {
  233.  
  234. inet_listener imap {
  235. port = 143
  236. }
  237. #inet_listener imaps {
  238. # port = 993
  239. # ssl = yes
  240. #}
  241. }
  242.  
  243. #service imap {
  244. # service_count = 5
  245. # process_min_avail = 1
  246. #}
  247.  
  248. #service lmtp {
  249. # unix_listener lmtp {
  250. # mode = 0666
  251. # }
  252.  
  253. # Create inet listener only if you can't use the above UNIX socket
  254. #inet_listener lmtp {
  255. # Avoid making LMTP visible for the entire internet
  256. #address =
  257. #port =
  258. #}
  259. #}
  260.  
  261. #service submission-login {
  262. # inet_listener submission {
  263. # port = 587
  264. # }
  265. #}
  266.  
  267. #service submission {
  268. # Max. number of SMTP Submission processes (connections)
  269. #process_limit = 1024
  270. #}
  271.  
  272. # Postfix smtp-auth
  273. service auth {
  274. unix_listener /var/spool/postfix/private/auth {
  275. mode = 0660
  276. user = postfix
  277. group = postfix
  278. }
  279. }
  280.  
  281. #service auth {
  282. # unix_listener auth-userdb {
  283. # mode = 0666
  284. #user = postfix
  285. #group = postfix
  286. # }
  287. #}
  288.  
  289. service auth-worker {
  290. # Auth worker process is run as root by default, so that it can access
  291. # /etc/shadow. If this isn't necessary, the user should be changed to
  292. # $default_internal_user.
  293. #user = root
  294. }
  295.  
  296. ############ SSL ############
  297.  
  298. ssl = yes
  299. #ssl_ca = </etc/letsencrypt/live/domain.org/cert.pem
  300. ssl_cert = </etc/letsencrypt/live/domain.org/fullchain.pem
  301. ssl_key = </etc/letsencrypt/live/domain.org/privkey.pem
  302. #ssl_dh_parameters_length = 1024
  303. #ssl_protocols = !SSLv3 !TLSv1 !TLSv1.1 TLSv1.2
  304. #ssl_min_protocol =
  305. ssl_cipher_list = ALL:!LOW:!SSLv2:!EXP:!aNULL
  306. ssl_prefer_server_ciphers = yes
  307.  
  308. ############ MAILBOX ############
  309.  
  310. namespace inbox {
  311. separator = /
  312. mailbox Drafts {
  313. auto = subscribe
  314. special_use = \Drafts
  315. }
  316. mailbox Junk {
  317. auto = subscribe
  318. special_use = \Junk
  319. }
  320. mailbox Trash {
  321. auto = subscribe
  322. special_use = \Trash
  323. }
  324. mailbox Sent {
  325. auto = subscribe
  326. special_use = \Sent
  327. }
  328. mailbox Archive {
  329. auto = subscribe
  330. special_use = \Archive
  331. }
  332. }
  333.  
  334. ############ IMAP ############
  335.  
  336. #imap_idle_notify_interval = 30 mins
  337.  
  338. protocol imap {
  339. mail_max_userip_connections = 50
  340. postmaster_address = postmaster@domain.org
  341. mail_plugins = $mail_plugins imap_sieve
  342. }
  343.  
  344. ############ LMTP ############
  345.  
  346. #protocol lmtp {
  347. # mail_fsync = optimized
  348. # postmaster_address = postmaster@domain.org
  349. #}
  350.  
  351. ############ SIEVE ############
  352.  
  353. #plugin {
  354. # sieve = ~/.dovecot.sieve
  355. # sieve_dir = ~/sieve
  356. # #sieve_extensions = +notify +imap4flags +imapflags +editheader +vnd.dovecot.pipe +imapsieve
  357. # seive_plugins = sieve_extdata sieve_extprograms
  358. # sieve_extensions = +notify +imap4flags +imapflags +editheader +vnd.dovecot.pipe +imapsieve +vnd.dovecot.filter +vnd.dovecot.extdata
  359. #}
  360.  
  361. plugin {
  362. sieve_plugins = sieve_imapsieve sieve_extprograms
  363.  
  364. sieve_global_dir=/etc/dovecot/sieve
  365.  
  366. # From elsewhere to Spam folder
  367. imapsieve_mailbox1_name = Junk
  368. imapsieve_mailbox1_causes = COPY
  369. imapsieve_mailbox1_before = file:/etc/dovecot/sieve/report-spam.sieve
  370.  
  371. # From Spam folder to elsewhere
  372. imapsieve_mailbox2_name = *
  373. imapsieve_mailbox2_from = Junk
  374. imapsieve_mailbox2_causes = COPY
  375. imapsieve_mailbox2_before = file:/etc/dovecot/sieve/report-ham.sieve
  376.  
  377. sieve_pipe_bin_dir = /etc/dovecot/sieve
  378.  
  379. sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment

Pied de page des forums

Propulsé par FluxBB