Skip to content

Instantly share code, notes, and snippets.

@boxysean
Created April 30, 2013 22:03
Show Gist options
  • Save boxysean/5492302 to your computer and use it in GitHub Desktop.
Save boxysean/5492302 to your computer and use it in GitHub Desktop.
hosts = localhost
auth_bind = yes
auth_bind_userdn = cn=%n, ou=people, dc=outerwebs, dc=nodomain
ldap_version = 3
base = ou=people, dc=outerwebs, dc=nodomain
scope = subtree
user_filter = (cn=%n)
protocols = imap imaps pop3 pop3s
log_timestamp = "%Y-%m-%d %H:%M:%S "
mail_location = maildir:/home/vmail/%d/%n
ssl_cert_file = /etc/ssl/certs/dovecot.pem
ssl_key_file = /etc/ssl/private/dovecot.pem
namespace private {
separator = .
prefix = INBOX.
inbox = yes
}
protocol lda {
log_path = /home/vmail/dovecot-deliver.log
auth_socket_path = /var/run/dovecot/auth-master
postmaster_address = [email protected]
mail_plugins = sieve
global_script_path = /home/vmail/globalsieverc
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}
auth default {
user = root
# passdb sql {
# args = /etc/dovecot/dovecot-sql.conf
# }
#
# userdb static {
# args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
# }
passdb ldap {
args = /etc/dovecot/dovecot-ldap.conf
}
userdb ldap {
args = /etc/dovecot/dovecot-ldap.conf
}
socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = vmail
}
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
auth_debug_passwords = yes
mail_uid = 5000
mail_gid = 5000
first_valid_uid = 5000
last_valid_uid = 5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment