Guest User

Untitled

a guest
Dec 29th, 2025
295
0
Never
10
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. ###
  2. ### aktivated protocols
  3. #############################
  4.  
  5. protocols = imap lmtp sieve
  6.  
  7.  
  8.  
  9. ###
  10. ### TLS configuration
  11. #######################
  12.  
  13. ssl = required
  14. ssl_cert = </etc/letsencrypt/live/torunska2.pl/fullchain.pem
  15. ssl_key = </etc/letsencrypt/live/torunska2.pl/privkey.pem
  16. #ssl_cipher_list = EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA256:EECDH:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!IDEA:!ECDSA:kEDH:CAMELLIA128-SHA:AES128-SHA
  17. ssl_cipher_list = ALL:!kRSA:!SRP:!kDHd:!DSS:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK:!RC4:!ADH:!LOW@STRENGTH
  18. ssl_prefer_server_ciphers = yes
  19. ssl_dh = </etc/dovecot/dh.pem
  20.  
  21.  
  22. ###
  23. ### Dovecot services
  24. ################################
  25.  
  26. service imap-login {
  27. inet_listener imap {
  28. port = 143
  29. }
  30. }
  31.  
  32.  
  33. service managesieve-login {
  34. inet_listener sieve {
  35. port = 4190
  36. }
  37. }
  38.  
  39.  
  40. service lmtp {
  41. unix_listener /var/spool/postfix/private/dovecot-lmtp {
  42. mode = 0660
  43. group = postfix
  44. user = postfix
  45. }
  46.  
  47. user = vmail
  48. }
  49.  
  50.  
  51. service auth {
  52. ### Auth socket für Postfix
  53. unix_listener /var/spool/postfix/private/auth {
  54. mode = 0660
  55. user = postfix
  56. group = postfix
  57. }
  58.  
  59. ### Auth socket für LMTP-Dienst
  60. unix_listener auth-userdb {
  61. mode = 0660
  62. user = vmail
  63. group = vmail
  64. }
  65. }
  66.  
  67.  
  68. ###
  69. ### Protocol settings
  70. #############################
  71.  
  72. protocol imap {
  73. mail_plugins = $mail_plugins quota imap_quota imap_sieve
  74. mail_max_userip_connections = 20
  75. imap_idle_notify_interval = 29 mins
  76. }
  77.  
  78. protocol lmtp {
  79. postmaster_address = [email protected]
  80. mail_plugins = $mail_plugins sieve
  81. }
  82.  
  83.  
  84.  
  85. ###
  86. ### Client authentication
  87. #############################
  88.  
  89. disable_plaintext_auth = yes
  90. auth_mechanisms = plain login
  91.  
  92.  
  93. passdb {
  94. driver = sql
  95. args = /etc/dovecot/dovecot-sql.conf
  96. }
  97.  
  98. userdb {
  99. driver = sql
  100. args = /etc/dovecot/dovecot-sql.conf
  101. }
  102.  
  103.  
  104. ###
  105. ### Mail location
  106. #######################
  107.  
  108. mail_uid = vmail
  109. mail_gid = vmail
  110. mail_privileged_group = vmail
  111.  
  112.  
  113. #mail_home = /var/vmail/mailboxes/%d/%n
  114. mail_home = /home/mail/mailboxes/%d/%n
  115. mail_location = maildir:~/mail:LAYOUT=fs
  116.  
  117.  
  118.  
  119. ###
  120. ### Mailbox configuration
  121. ########################################
  122.  
  123. namespace inbox {
  124. inbox = yes
  125.  
  126. mailbox Spam {
  127. auto = subscribe
  128. special_use = \Junk
  129. }
  130.  
  131. mailbox Trash {
  132. auto = subscribe
  133. special_use = \Trash
  134. }
  135.  
  136. mailbox Drafts {
  137. auto = subscribe
  138. special_use = \Drafts
  139. }
  140.  
  141. mailbox Sent {
  142. auto = subscribe
  143. special_use = \Sent
  144. }
  145. }
  146.  
  147.  
  148.  
  149. ###
  150. ### Mail plugins
  151. ############################
  152.  
  153.  
  154. plugin {
  155. sieve_plugins = sieve_imapsieve sieve_extprograms
  156. sieve_before = /home/mail/sieve/global/spam-global.sieve
  157. sieve = file:/home/mail/sieve/%d/%n/scripts;active=/home/mail/sieve/%d/%n/active-script.sieve
  158.  
  159. ###
  160. ### Spam learning
  161. ###
  162. # From elsewhere to Spam folder
  163. imapsieve_mailbox1_name = Spam
  164. imapsieve_mailbox1_causes = COPY
  165. imapsieve_mailbox1_before = file:/home/mail/sieve/global/learn-spam.sieve
  166.  
  167. # From Spam folder to elsewhere
  168. imapsieve_mailbox2_name = *
  169. imapsieve_mailbox2_from = Spam
  170. imapsieve_mailbox2_causes = COPY
  171. imapsieve_mailbox2_before = file:/home/mail/sieve/global/learn-ham.sieve
  172.  
  173. sieve_pipe_bin_dir = /usr/bin
  174. sieve_global_extensions = +vnd.dovecot.pipe
  175.  
  176. quota = maildir:User quota
  177. quota_exceeded_message = Urzutkownik %u wykożystał limit skrzynki pocztowej. Usuń wiadomości lub skntaktuj się z Administratorem.
  178. }
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment