Created
September 12, 2017 09:21
-
-
Save pooza/f205fa947f337a7f17e28b50df6c29d5 to your computer and use it in GitHub Desktop.
includeを一切行わない、dovecot.conf。元記事→https://blog.b-shock.org/2017/09/11/Dovecot-Setup/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listen = * | |
login_access_sockets = tcpwrap | |
# auth | |
auth_verbose = yes | |
disable_plaintext_auth = no | |
auth_mechanisms = plain login | |
passdb { | |
driver = passwd | |
} | |
userdb { | |
driver = passwd | |
} | |
# SSL | |
ssl = yes | |
verbose_ssl = yes | |
ssl_cert = </usr/local/etc/letsencrypt/live/example.com/fullchain.pem | |
ssl_key = </usr/local/etc/letsencrypt/live/example.com/privkey.pem | |
ssl_protocols = !SSLv2 !SSLv3 | |
# mailboxes | |
mail_location = maildir:~/Maildir | |
namespace inbox { | |
inbox = yes | |
mailbox Drafts { | |
special_use = \Drafts | |
} | |
mailbox Junk { | |
special_use = \Junk | |
} | |
mailbox SPAM { | |
special_use = \Junk | |
} | |
mailbox Trash { | |
special_use = \Trash | |
} | |
mailbox Sent { | |
special_use = \Sent | |
} | |
mailbox "Sent Messages" { | |
special_use = \Sent | |
} | |
} | |
# protocols | |
protocols = imap pop3 | |
protocol imap { | |
mail_max_userip_connections = 20 | |
} | |
protocol pop3 { | |
mail_max_userip_connections = 10 | |
} | |
# services | |
service imap-login { | |
inet_listener imap { | |
port = 143 | |
} | |
inet_listener imaps { | |
port = 993 | |
ssl = yes | |
} | |
} | |
service pop3-login { | |
inet_listener pop3 { | |
port = 110 | |
} | |
inet_listener pop3s { | |
port = 995 | |
ssl = yes | |
} | |
} | |
service auth { | |
unix_listener /var/spool/postfix/private/auth { | |
mode = 0666 | |
user = postfix | |
} | |
} | |
service tcpwrap { | |
unix_listener login/tcpwrap { | |
mode = 0666 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment