Guest User

Untitled

a guest
Jul 17th, 2020
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.25 KB | None | 0 0
  1. #
  2. # VARIABLEN ZUM ANPASSEN
  3. #
  4. #
  5.  
  6. # Enabled mail protocols.
  7. protocols = pop3 imap
  8.  
  9. # User/group who owns the message files:
  10. mail_uid = 2000
  11. mail_gid = 2000
  12.  
  13. # Assign uid to virtual users.
  14. first_valid_uid = 2000
  15. last_valid_uid = 2000
  16.  
  17. #ssl_ca = </path/to/ca
  18. ssl_cert = </etc/ssl/certs/2020.mail.intern.xxx.xxx.crt
  19. ssl_key = </etc/ssl/private/2020.mail.intern.xxx.xxx.key
  20. ssl_dh = </etc/ssl/dh2048_param.pem
  21.  
  22. # Mail location and mailbox format.
  23. mail_location = maildir:%Lh/Maildir/:INDEX=%Lh/Maildir/
  24.  
  25. service auth {
  26. unix_listener /var/spool/postfix/private/dovecot-auth {
  27. user = postfix
  28. group = postfix
  29. mode = 0666
  30. }
  31. unix_listener auth-master {
  32. user = vmail
  33. group = vmail
  34. mode = 0666
  35. }
  36. unix_listener auth-userdb {
  37. user = vmail
  38. group = vmail
  39. mode = 0660
  40. }
  41. }
  42.  
  43. # LMTP server (Local Mail Transfer Protocol).
  44. # Reference: http://wiki2.dovecot.org/LMTP
  45. service lmtp {
  46. user = vmail
  47.  
  48. # For higher volume sites, it may be desirable to increase the number of
  49. # active listener processes. A range of 5 to 20 is probably good for most
  50. # sites.
  51. process_min_avail = 5
  52.  
  53. # Logging.
  54. # Require 'log_path =' in 'protocol lmtp {}' block.
  55. executable = lmtp -L
  56.  
  57. # Listening on socket file and TCP
  58. unix_listener /var/spool/postfix/private/dovecot-lmtp {
  59. user = postfix
  60. group = postfix
  61. mode = 0600
  62. }
  63.  
  64. inet_listener lmtp {
  65. # Listen on localhost (ipv4)
  66. address = 127.0.0.1
  67. port = 24
  68. }
  69. }
  70.  
  71. # Virtual mail accounts.
  72. userdb {
  73. args = uid=vmail gid=vmail home=/home/vmail
  74. driver = static
  75. }
  76. passdb {
  77. args = /maildata/userpass
  78. driver = passwd-file
  79. }
  80.  
  81. service dict {
  82. unix_listener dict {
  83. mode = 0660
  84. user = vmail
  85. group = vmail
  86. }
  87. }
  88.  
  89. #dict {
  90. #expire = db:/var/lib/dovecot/expire/expire.db
  91. #quotadict = mysql:/etc/dovecot/dovecot-used-quota.conf
  92. #acl = mysql:/etc/dovecot/dovecot-share-folder.conf
  93. #lastlogin = mysql:/etc/dovecot/dovecot-last-login.conf
  94. #}
  95.  
  96. #
  97. # PASST SCHON
  98. #
  99. #
  100.  
  101. # More details about Dovecot settings:
  102. # - http://wiki2.dovecot.org/
  103. # - http://wiki2.dovecot.org/Variables
  104.  
  105. # Listen addresses.
  106. # - '*' means all available IPv4 addresses.
  107. # - '[::]' means all available IPv6 addresses.
  108. # Listen on all available addresses by default
  109. listen = * [::]
  110.  
  111. #base_dir = /var/run/dovecot
  112. #mail_plugins = quota mailbox_alias acl mail_log notify
  113.  
  114. # Logging. Reference: http://wiki2.dovecot.org/Logging
  115. #
  116. # Use syslog
  117. syslog_facility = local5
  118. # Log file path if we use internal log system
  119. #log_path = /var/log/dovecot/dovecot.log
  120.  
  121. # Debug
  122. #mail_debug = yes
  123. #auth_verbose = yes
  124. #auth_debug = yes
  125. #auth_debug_passwords = yes
  126. # Possible values: no, plain, sha1.
  127. #auth_verbose_passwords = no
  128.  
  129. # SSL: Global settings.
  130. # Refer to wiki site for per protocol, ip, server name SSL settings:
  131. # http://wiki2.dovecot.org/SSL/DovecotConfiguration
  132. ssl_min_protocol = TLSv1.2
  133. ssl = required
  134. verbose_ssl = no
  135.  
  136. # Fix 'The Logjam Attack'
  137. ssl_cipher_list = EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
  138. ssl_prefer_server_ciphers = yes
  139.  
  140. # With disable_plaintext_auth=yes AND ssl=required, STARTTLS is mandatory.
  141. # Set disable_plaintext_auth=no AND ssl=yes to allow plain password transmitted
  142. # insecurely.
  143. disable_plaintext_auth = yes
  144.  
  145. # Allow plain text password per IP address/net
  146. #remote 192.168.0.0/24 {
  147. # disable_plaintext_auth = no
  148. #}
  149.  
  150. # Authentication related settings.
  151. # Append this domain name if client gives empty realm.
  152. #auth_default_realm = intern.xxx.xxx
  153.  
  154. # Authentication mechanisms.
  155. auth_mechanisms = PLAIN LOGIN
  156.  
  157. # Limits the number of users that can be logging in at the same time.
  158. # Default is 100. This can be overridden by `process_limit =` in
  159. # `service [protocol]` block.
  160. # e.g.
  161. # protocol imap-login {
  162. # ...
  163. # process_limit = 500
  164. # }
  165. #default_process_limit = 100
  166.  
  167. # Login log elements.
  168. # Add '%k' for detailed SSL protocol and cipher information.
  169. # e.g. "TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)"
  170. login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c %k session=<%{session}>
  171.  
  172. # Mail delivery log format
  173. deliver_log_format = from=%{from}, envelope_sender=%{from_envelope}, subject=%{subject}, msgid=%m, size=%{size}, delivery_time=%{delivery_time}ms, %$
  174.  
  175. plugin {
  176. # Quota configuration.
  177. # Reference: http://wiki2.dovecot.org/Quota/Configuration
  178. #quota = dict:user::proxy::quotadict
  179.  
  180. # Set default quota rule if no quota returned from SQL/LDAP query.
  181. #quota_rule = *:storage=1G
  182. #quota_rule2 = *:messages=0
  183. #quota_rule3 = Trash:storage=1G
  184. #quota_rule4 = Junk:ignore
  185.  
  186. # Quota warning.
  187. #
  188. # If user suddenly receives a huge mail and the quota jumps from
  189. # 85% to 95%, only the 95% script is executed.
  190. #
  191. # Only the command for the first exceeded limit is executed, so configure
  192. # the highest limit first.
  193. #quota_warning = storage=100%% quota-warning 100 %u
  194. #quota_warning2 = storage=95%% quota-warning 95 %u
  195. #quota_warning3 = storage=90%% quota-warning 90 %u
  196. #quota_warning4 = storage=85%% quota-warning 85 %u
  197.  
  198. # allow user to become max 10% (or 50 MB) over quota
  199. #quota_grace = 10%%
  200. #quota_grace = 50 M
  201.  
  202. # Custom Quota Exceeded Message.
  203. # You can specify the message directly or read the message from a file.
  204. #quota_exceeded_message = Quota exceeded, please try again later.
  205. #quota_exceeded_message = </path/to/quota_exceeded_message.txt
  206.  
  207. # Used by quota-status service.
  208. #quota_status_success = DUNNO
  209. #quota_status_nouser = DUNNO
  210. #quota_status_overquota = "552 5.2.2 Mailbox is full"
  211.  
  212. # Plugin: expire.
  213. #expire = Trash 7 Trash/* 7 Junk 30
  214. #expire_dict = proxy::expire
  215.  
  216. # ACL and share folder
  217. #acl = vfile
  218. #acl_shared_dict = proxy::acl
  219.  
  220. # By default Dovecot doesn't allow using the IMAP "anyone" or
  221. # "authenticated" identifier, because it would be an easy way to spam
  222. # other users in the system. If you wish to allow it,
  223. #acl_anyone = allow
  224.  
  225. # Pigeonhole managesieve service.
  226. # Reference: http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration
  227. # Per-user sieve settings.
  228. #sieve_dir = ~/sieve
  229. #sieve = ~/sieve/dovecot.sieve
  230.  
  231. # Global sieve settings.
  232. #sieve_global_dir = /maildata/sieve
  233. # Note: if user has personal sieve script, global sieve rules defined in
  234. # sieve_default will be ignored. Please use sieve_before or
  235. # sieve_after instead.
  236. #sieve_default =
  237.  
  238. #sieve_before = /maildata/sieve/dovecot.sieve
  239. #sieve_after =
  240.  
  241. # The maximum number of redirect actions that can be performed during a
  242. # single script execution.
  243. # The meaning of 0 differs based on your version. For pigeonhole-0.3.0 and
  244. # beyond this means that redirect is prohibited. For older versions,
  245. # however, this means that the number of redirects is unlimited.
  246. #sieve_max_redirects = 30
  247.  
  248. # Use recipient as vacation message sender instead of null sender (<>).
  249. #sieve_vacation_send_from_recipient = yes
  250.  
  251. # Reference: http://wiki2.dovecot.org/Plugins/MailboxAlias
  252. #mailbox_alias_old = Sent
  253. #mailbox_alias_new = Sent Messages
  254. #mailbox_alias_old2 = Sent
  255. #mailbox_alias_new2 = Sent Items
  256.  
  257. # Events to log. `autoexpunge` is included in `expunge`
  258. # Defined in https://github.com/dovecot/core/blob/master/src/plugins/mail-log/mail-log-plugin.c
  259. #mail_log_events = delete undelete expunge copy mailbox_create mailbox_delete mailbox_rename
  260. #mail_log_fields = uid box msgid size from subject flags
  261.  
  262. # Track user last login
  263. #last_login_dict = proxy::lastlogin
  264. #last_login_key = last-login/%s/%u/%d
  265. }
  266.  
  267. #service stats {
  268. # fifo_listener stats-mail {
  269. # user = vmail
  270. # mode = 0644
  271. # }
  272.  
  273. # unix_listener stats-writer {
  274. # user = vmail
  275. # group = vmail
  276. # mode = 0660
  277. # }
  278.  
  279. # inet_listener {
  280. # address = 127.0.0.1
  281. # port = 24242
  282. # }
  283. #}
  284.  
  285. #service quota-warning {
  286. # executable = script /usr/local/bin/dovecot-quota-warning.sh
  287. # unix_listener quota-warning {
  288. # user = vmail
  289. # group = vmail
  290. # mode = 0660
  291. # }
  292. #}
  293.  
  294. #service quota-status {
  295. # # '-p <protocol>'. Currently only 'postfix' protocol is supported.
  296. # executable = quota-status -p postfix
  297. # client_limit = 1
  298. # inet_listener {
  299. # address = 127.0.0.1
  300. # port = 12340
  301. # }
  302. #}
  303.  
  304. protocol lda {
  305. mail_plugins = $mail_plugins sieve
  306. lda_mailbox_autocreate = yes
  307. lda_mailbox_autosubscribe = yes
  308. }
  309.  
  310. protocol lmtp {
  311. # Plugins
  312. mail_plugins = $mail_plugins sieve
  313.  
  314. # Address extension delivery
  315. lmtp_save_to_detail_mailbox = yes
  316. recipient_delimiter = +
  317. }
  318.  
  319. protocol imap {
  320. mail_plugins = $mail_plugins imap_quota imap_acl last_login
  321. imap_client_workarounds = tb-extra-mailbox-sep
  322.  
  323. # Maximum number of IMAP connections allowed for a user from each IP address.
  324. # NOTE: The username is compared case-sensitively.
  325. # Default is 10.
  326. # Increase it to avoid issue like below:
  327. # "Maximum number of concurrent IMAP connections exceeded"
  328. mail_max_userip_connections = 30
  329. }
  330.  
  331. protocol pop3 {
  332. mail_plugins = $mail_plugins last_login
  333. pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  334. pop3_uidl_format = %08Xu%08Xv
  335.  
  336. # Maximum number of IMAP connections allowed for a user from each IP address.
  337. # NOTE: The username is compared case-sensitively.
  338. # Default is 10.
  339. mail_max_userip_connections = 30
  340.  
  341. # POP3 logout format string:
  342. # %i - total number of bytes read from client
  343. # %o - total number of bytes sent to client
  344. # %t - number of TOP commands
  345. # %p - number of bytes sent to client as a result of TOP command
  346. # %r - number of RETR commands
  347. # %b - number of bytes sent to client as a result of RETR command
  348. # %d - number of deleted messages
  349. # %m - number of messages (before deletion)
  350. # %s - mailbox size in bytes (before deletion)
  351. # Default format doesn't have 'in=%i, out=%o'.
  352. #pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s, in=%i, out=%o
  353. }
  354.  
  355. # Login processes. Refer to Dovecot wiki for more details:
  356. # http://wiki2.dovecot.org/LoginProcess
  357. service imap-login {
  358. #inet_listener imap {
  359. # port = 143
  360. #}
  361. #inet_listener imaps {
  362. # port = 993
  363. # ssl = yes
  364. #}
  365.  
  366. service_count = 1
  367.  
  368. # To avoid startup latency for new client connections, set process_min_avail
  369. # to higher than zero. That many idling processes are always kept around
  370. # waiting for new connections.
  371. #process_min_avail = 0
  372.  
  373. # number of simultaneous IMAP connections
  374. process_limit = 500
  375.  
  376. # vsz_limit should be fine at its default 64MB value
  377. #vsz_limit = 64M
  378. }
  379.  
  380. service pop3-login {
  381. #inet_listener pop3 {
  382. # port = 110
  383. #}
  384. #inet_listener pop3s {
  385. # port = 995
  386. # ssl = yes
  387. #}
  388.  
  389. service_count = 1
  390.  
  391. # number of simultaneous POP3 connections
  392. #process_limit = 500
  393. }
  394.  
  395. service managesieve-login {
  396. inet_listener sieve {
  397. # Listen on localhost (ipv4)
  398. address = 127.0.0.1
  399. port = 4190
  400. }
  401. }
  402.  
  403. metric imap_command_finished {
  404. event_name = imap_command_finished
  405. }
  406.  
  407. namespace {
  408. type = private
  409. separator = /
  410. prefix =
  411. inbox = yes
  412.  
  413. # Refer to document for more details about alias mailbox:
  414. # http://wiki2.dovecot.org/MailboxSettings
  415. #
  416. # Sent
  417. mailbox Sent {
  418. auto = subscribe
  419. special_use = \Sent
  420. }
  421. mailbox "Sent Messages" {
  422. auto = no
  423. special_use = \Sent
  424. }
  425. mailbox "Sent Items" {
  426. auto = no
  427. special_use = \Sent
  428. }
  429.  
  430. mailbox Drafts {
  431. auto = subscribe
  432. special_use = \Drafts
  433. }
  434.  
  435. # Trash
  436. mailbox Trash {
  437. auto = subscribe
  438. special_use = \Trash
  439. }
  440.  
  441. mailbox "Deleted Messages" {
  442. auto = no
  443. special_use = \Trash
  444. }
  445.  
  446. # Junk
  447. mailbox Junk {
  448. auto = subscribe
  449. special_use = \Junk
  450. }
  451. mailbox Spam {
  452. auto = no
  453. special_use = \Junk
  454. }
  455. mailbox "Junk E-mail" {
  456. auto = no
  457. special_use = \Junk
  458. }
  459.  
  460. # Archive
  461. mailbox Archive {
  462. auto = no
  463. special_use = \Archive
  464. }
  465. mailbox Archives {
  466. auto = no
  467. special_use = \Archive
  468. }
  469. }
  470.  
  471. #namespace {
  472. # type = shared
  473. # separator = /
  474. # prefix = Shared/%%u/
  475. # location = maildir:%%Lh/Maildir/:INDEX=%%Lh/Maildir/Shared/%%Ld/%%Ln
  476.  
  477. # # this namespace should handle its own subscriptions or not.
  478. # subscriptions = yes
  479. # list = children
  480. #}
  481.  
  482. # Public mailboxes.
  483. # Refer to Dovecot wiki page for more details:
  484. # http://wiki2.dovecot.org/SharedMailboxes/Public
  485. #namespace {
  486. # type = public
  487. # separator = /
  488. # prefix = Public/
  489. # location = maildir:/maildata/public:CONTROL=%Lh/Maildir/public:INDEXPVT=%Lh/Maildir/public
  490. #
  491. # # Allow users to subscribe to the public folders.
  492. # subscriptions = yes
  493. #}
Add Comment
Please, Sign In to add comment