Contact

Contact us

Login

site login

SQL Based Virtual Setup With Dovecot

1. Setup Dovecot with the following config snippet...

# Server login banner
login_greeting = Server ready.

# Protocols we want to serve
protocols = imap pop3

# If you're using NFS or FUSE
#mail_nfs_index=yes
#mail_nfs_storage=yes
#mmap_disable=yes

# High performance mode, allow more than one connection to be handled per process
login_process_per_connection=no
# Processes to keep waiting for new connections
login_processes_count=4
# Maximum number of processes
login_max_processes_count=50
# Maximum number of connections per process
login_max_connections=4

# Disable fsync to increase speed
fsync_disable=yes

# Don't kill clients if we restart
shutdown_clients=no

# Use the quota and imap_quota and add the workarounds to make other mua's happy
protocol imap {
mail_plugins = quota imap_quota
imap_client_workarounds = outlook-idle delay-newmail
}

# Use quotas and workarounds
protocol pop3 {
mail_plugins = quota
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}

# Local delivery agent, add quota support aswell
protocol lda {
# Don't disable fsync for lda, this must succeed
fsync_disable=no
postmaster_address = postmaster@example.com
mail_plugins = quota
log_path = /var/log/dovecot-deliver.log
info_log_path = /var/log/dovecot-deliver.log
}

# Authentication configuration
auth default {
mechanisms = plain login cram-md5 digest-md5

# Master users which can login to any mailbox
passdb sql {
args = /etc/dovecot/sql-master.conf
master = yes
pass = yes
}

# Password query for users
passdb sql {
# http://wiki.dovecot.org/PasswordDatabase/ExtraFields
# You can use the %Ls variable which expands to imap or pop3 in