Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###
- ### aktivated protocols
- #############################
- protocols = imap lmtp sieve
- ###
- ### TLS configuration
- #######################
- ssl = required
- ssl_cert = </etc/letsencrypt/live/torunska2.pl/fullchain.pem
- ssl_key = </etc/letsencrypt/live/torunska2.pl/privkey.pem
- #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
- ssl_cipher_list = ALL:!kRSA:!SRP:!kDHd:!DSS:!aNULL:!eNULL:!EXPORT:!DES:!3DES:!MD5:!PSK:!RC4:!ADH:!LOW@STRENGTH
- ssl_prefer_server_ciphers = yes
- ssl_dh = </etc/dovecot/dh.pem
- ###
- ### Dovecot services
- ################################
- service imap-login {
- inet_listener imap {
- port = 143
- }
- }
- service managesieve-login {
- inet_listener sieve {
- port = 4190
- }
- }
- service lmtp {
- unix_listener /var/spool/postfix/private/dovecot-lmtp {
- mode = 0660
- group = postfix
- user = postfix
- }
- user = vmail
- }
- service auth {
- ### Auth socket für Postfix
- unix_listener /var/spool/postfix/private/auth {
- mode = 0660
- user = postfix
- group = postfix
- }
- ### Auth socket für LMTP-Dienst
- unix_listener auth-userdb {
- mode = 0660
- user = vmail
- group = vmail
- }
- }
- ###
- ### Protocol settings
- #############################
- protocol imap {
- mail_plugins = $mail_plugins quota imap_quota imap_sieve
- mail_max_userip_connections = 20
- imap_idle_notify_interval = 29 mins
- }
- protocol lmtp {
- postmaster_address = [email protected]
- mail_plugins = $mail_plugins sieve
- }
- ###
- ### Client authentication
- #############################
- disable_plaintext_auth = yes
- auth_mechanisms = plain login
- passdb {
- driver = sql
- args = /etc/dovecot/dovecot-sql.conf
- }
- userdb {
- driver = sql
- args = /etc/dovecot/dovecot-sql.conf
- }
- ###
- ### Mail location
- #######################
- mail_uid = vmail
- mail_gid = vmail
- mail_privileged_group = vmail
- #mail_home = /var/vmail/mailboxes/%d/%n
- mail_home = /home/mail/mailboxes/%d/%n
- mail_location = maildir:~/mail:LAYOUT=fs
- ###
- ### Mailbox configuration
- ########################################
- namespace inbox {
- inbox = yes
- mailbox Spam {
- auto = subscribe
- special_use = \Junk
- }
- mailbox Trash {
- auto = subscribe
- special_use = \Trash
- }
- mailbox Drafts {
- auto = subscribe
- special_use = \Drafts
- }
- mailbox Sent {
- auto = subscribe
- special_use = \Sent
- }
- }
- ###
- ### Mail plugins
- ############################
- plugin {
- sieve_plugins = sieve_imapsieve sieve_extprograms
- sieve_before = /home/mail/sieve/global/spam-global.sieve
- sieve = file:/home/mail/sieve/%d/%n/scripts;active=/home/mail/sieve/%d/%n/active-script.sieve
- ###
- ### Spam learning
- ###
- # From elsewhere to Spam folder
- imapsieve_mailbox1_name = Spam
- imapsieve_mailbox1_causes = COPY
- imapsieve_mailbox1_before = file:/home/mail/sieve/global/learn-spam.sieve
- # From Spam folder to elsewhere
- imapsieve_mailbox2_name = *
- imapsieve_mailbox2_from = Spam
- imapsieve_mailbox2_causes = COPY
- imapsieve_mailbox2_before = file:/home/mail/sieve/global/learn-ham.sieve
- sieve_pipe_bin_dir = /usr/bin
- sieve_global_extensions = +vnd.dovecot.pipe
- quota = maildir:User quota
- quota_exceeded_message = Urzutkownik %u wykożystał limit skrzynki pocztowej. Usuń wiadomości lub skntaktuj się z Administratorem.
- }
Advertisement