Skip to content

Instantly share code, notes, and snippets.

@lluuaapp
Created April 6, 2018 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lluuaapp/7daddf761131da47237b0f45e6bab5a8 to your computer and use it in GitHub Desktop.
Save lluuaapp/7daddf761131da47237b0f45e6bab5a8 to your computer and use it in GitHub Desktop.
# 2.3.1 (8e2f634): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.1 (d9bc6dfe)
# OS: Linux 4.9.0-6-amd64 x86_64 Debian 9.4
# Hostname: mail.iwascoding.com
auth_cache_size = 10 M
auth_cache_ttl = 2 hours
auth_mechanisms = plain login
first_valid_gid = 8
first_valid_uid = 8
hostname = iwascoding.com
imap_capability = +SPECIAL-USE
last_valid_gid = 8
last_valid_uid = 8
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
mail_debug = yes
mail_gid = 8
mail_home = /var/mail/iwascoding/%n
mail_location = mdbox:~/mdbox
mail_plugins = quota listescape
mail_prefetch_count = 200
mail_uid = 8
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext spamtest spamtestplus
mdbox_rotate_size = 16 M
namespace inbox {
inbox = yes
location =
mailbox "Sent Messages" {
auto = no
special_use = \Sent
}
mailbox archive {
auto = no
special_use = \Archive
}
mailbox drafts {
auto = no
special_use = \Drafts
}
mailbox junk {
auto = no
special_use = \Junk
}
mailbox sent {
auto = no
special_use = \Sent
}
mailbox trash {
auto = no
special_use = \Trash
}
prefix =
separator = /
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
plugin {
quota = dict:User quota::file:%h/dovecot-quota
quota_grace = 10%%
quota_rule = *:storage=200M
sieve = /var/mail/iwascoding/%n/.dovecot.sieve
sieve_default = /var/lib/dovecot/sieve/default.sieve
sieve_dir = /var/mail/iwascoding/%n/sieve
sieve_extensions = +spamtest +spamtestplus
sieve_global_dir = /var/lib/dovecot/sieve/global
sieve_spamtest_max_value = 200
sieve_spamtest_status_header = X-Spam-Score-Int
sieve_spamtest_status_type = score
}
postmaster_address = postmaster@iwascoding.com
protocols = imap pop3 lmtp imap lmtp sieve pop3 submission
quota_full_tempfail = yes
service auth {
unix_listener auth-userdb {
user = mail
}
}
service lmtp {
user = mail
}
service managesieve-login {
inet_listener sieve {
port = 4190
}
}
service stats {
unix_listener stats-writer {
user = mail
}
}
service submission-login {
inet_listener submission {
port = 5870
}
}
ssl = required
ssl_cert = </etc/nginx/certs/iwascoding.crt
ssl_cipher_list = ALL:HIGH:!SSLv2:!SSLv3:!MEDIUM:!LOW:!EXP:!RC4:!MD5:!aNULL:@STRENGTH
ssl_client_ca_dir = /etc/ssl/certs
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
ssl_min_protocol = TLSv1.2
ssl_prefer_server_ciphers = yes
submission_relay_host = mail.iwascoding.com
submission_relay_port = 587
submission_relay_ssl = starttls
userdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
protocol lmtp {
mail_fsync = optimized
mail_plugins = quota listescape sieve
}
protocol lda {
mail_fsync = optimized
mail_plugins = quota listescape sieve
}
protocol imap {
mail_max_userip_connections = 40
mail_plugins = quota listescape imap_quota imap_zlib
}
protocol pop3 {
mail_max_userip_connections = 30
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment