## Dovecot configuration file
base_dir = /var/spool/postfix/var/dovecot/
protocols = imap imaps pop3 pop3s
listen = *
disable_plaintext_auth = yes
shutdown_clients = yes
syslog_facility = mail
ssl_cert_file = /etc/ssl/dovecotcert.pem
ssl_key_file = /etc/ssl/private/dovecot.pem
login_dir = /var/dovecot/login
login_user = _dovecot
mail_location = maildir:/var/mail/virtual/%u
mail_extra_groups = _postfix
mail_log_prefix = "%Us(%u): "
mmap_no_write = yes
first_valid_uid = 507
first_valid_gid = 507
max_mail_processes = 1024
mbox_read_locks = fcntl
mbox_write_locks = fcntl

protocol imap {
    imap_client_workarounds = delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep
}
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}
protocol lda {
  postmaster_address = postmaster@server.gue.web.id
}
#kalau konfigurasi sudah berjalan dengan baik auth_verbose, auth_debug, auth_debug_passwords di kembalikan ke no 
#auth_verbose = no 
auth_verbose = yes
#auth_debug = no
auth_debug = yes
#auth_debug_passwords = no
auth_debug_passwords = yes

auth default {
   mechanisms = plain login digest-md5 cram-md5
  userdb sql {
                args = /etc/dovecot-mysql.conf
        }
        passdb sql {
                args = /etc/dovecot-mysql.conf
        }
       socket listen {
        client {
          path = /var/spool/postfix/var/dovecot/auth
          mode = 0660
 	 user = _postfix
	group = _postfix 
      }
     }
	
   user = root
   count = 1 
}

dict {
  #quota = mysql:/etc/dovecot-dict-quota.conf 
}

plugin {

}

