Last active
August 29, 2015 14:07
-
-
Save drscream/be33ccc1e10b3769fc92 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# core.io dovecot proxy config file | |
# defaults | |
postmaster_address = postmaster@%d | |
auth_mechanisms = plain | |
protocols = imap pop3 sieve | |
# secure | |
ssl = yes | |
disable_plaintext_auth = yes | |
# imap | |
service imap-login { | |
inet_listener imap { | |
port = 0 | |
} | |
} | |
protocol imap { | |
ssl_cert = </opt/local/etc/dovecot/ssl/imap.pem | |
ssl_key = </opt/local/etc/dovecot/ssl/imap.pem | |
} | |
# pop3 | |
service pop3-login { | |
inet_listener pop3 { | |
port = 0 | |
} | |
} | |
protocol pop3 { | |
ssl_cert = </opt/local/etc/dovecot/ssl/pop.pem | |
ssl_key = </opt/local/etc/dovecot/ssl/pop.pem | |
} | |
# sieve | |
service managesieve-login { | |
inet_listener sieve { | |
port = 4190 | |
} | |
inet_listener sieve_deprecated { | |
port = 2000 | |
} | |
process_min_avail = 1 | |
} | |
protocol sieve { | |
ssl_cert = </opt/local/etc/dovecot/ssl/imap.pem | |
ssl_key = </opt/local/etc/dovecot/ssl/imap.pem | |
} | |
# userdb and passdb proxy | |
userdb { | |
driver = static | |
args = uid=dovecot gid=dovecot | |
} | |
passdb { | |
driver = static | |
args = proxy=y host=box.mail.core.io ssl=any-cert port=993 nopassword=y | |
} |
This file contains hidden or 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
global | |
log 127.0.0.1 local0 | |
log 127.0.0.1 local1 notice | |
#log loghost local0 info | |
maxconn 4096 | |
#chroot /usr/share/haproxy | |
uid 99 | |
gid 99 | |
daemon | |
tune.ssl.default-dh-param 2048 | |
#debug | |
#quiet | |
defaults | |
log global | |
mode tcp | |
option dontlognull | |
retries 3 | |
option redispatch | |
maxconn 2000 | |
timeout connect 5000 | |
timeout client 50000 | |
timeout server 50000 | |
frontend smtps | |
bind *:465 ssl crt /opt/local/etc/haproxy/smtp.pem | |
bind :::465 ssl crt /opt/local/etc/haproxy/smtp.pem | |
default_backend submission | |
frontend smtp-submission | |
bind *:587 ssl crt /opt/local/etc/haproxy/smtp.pem | |
bind :::587 ssl crt /opt/local/etc/haproxy/smtp.pem | |
default_backend submission | |
backend submission | |
option ssl-hello-chk | |
server submission-01 submission.mail.core.io ssl ca-file /etc/ssl/certs/ca-certificates.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment