
protocols = imap imaps pop3 pop3s
disable_plaintext_auth = no
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot.log
ssl_disable = no
ssl_cert_file = /etc/ssl/dovecot/cert.pem
ssl_key_file = /etc/ssl/dovecot/key.pem
login_greeting = Unimetro Mailserver Ready.
mail_location = maildir:/var/virtual/%n/Maildir
mail_uid = vmail
mail_gid = vmail
mail_privileged_group = mail
first_valid_uid = 1000
last_valid_uid = 1000
first_valid_gid = 1000
last_valid_gid = 1000
valid_chroot_dirs = /var/virtual
maildir_copy_with_hardlinks = yes

protocol imap {
	mail_plugins = quota imap_quota
	mail_plugin_dir = /usr/local/lib/dovecot/imap
	login_greeting_capability = yes
	imap_client_workarounds = delay-newmail netscape-eoh tb-extra-mailbox-sep
	}

protocol pop3 {
	pop3_uidl_format = %08Xu%08Xv
	mail_plugins = quota
	mail_plugin_dir = /usr/local/lib/dovecot/pop3
	pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
	}

protocol lda {
	debug = yes
	mail_plugins = cmusieve quota
	mail_plugin_dir = /usr/local/lib/dovecot/lda
	postmaster_address = postmaster@unimetro.net
	sendmail_path = /usr/sbin/sendmail
	auth_socket_path = /var/run/dovecot/auth-master
	log_path = /var/log/dovecot-lda.log
	info_log_path = /var/log/dovecot-lda.log
	global_script_path = /usr/local/etc/dovecot/dovecot.sieve
	sieve_global_path = /usr/local/etc/dovecot/dovecot.sieve
	}

auth_username_format = %Lu

auth default {
	mechanisms = plain login
	passdb ldap {
		args = /usr/local/etc/dovecot-ldap.conf
	}
	userdb ldap {
		args = /usr/local/etc/dovecot-ldap.conf
	}
	user = root
	socket listen {
		master {
			path = /var/run/dovecot/auth-master
			mode = 0600
			user = vmail
			group = vmail
		}
		client {
			path = /var/run/dovecot/auth-client
			mode = 0660
			user = postfix
			group = postfix
		}
	}
}

dict {
}

plugin {
	quota_rule = *:storage=20480
	quota = maildir
	quota_warning = storage=85%% /usr/local/bin/quota-warning.sh 85%
	sieve  = /usr/local/etc/dovecot/dovecot.sieve
}


