The following is the script I use to install and configure DoveCot on RHEL of CentOS. In summary, the script is doing the following:
- Installing DoveCot
- Setup the dovecot.conf configuration file
- Enabling dovecot to start upon bootup
- Startup dovecot
yum install dovecot -y
cp /etc/dovecot.conf /etc/dovecot.conf.orig
cat > /etc/dovecot.conf << EOF
protocols = imap imaps
protocol imap {
}
protocol lda {
postmaster_address = postmaster@domain.com
}
auth default {
mechanisms = plain
passdb pam {
}
userdb passwd {
}
user = root
}
dict {
}
plugin {
}
EOF
chkconfig dovecot on
service dovecot restart
Once the script is completed, you can go ahead and use your mail client to connect to your server. The configuration file used here is for a IMAP(s) mail server.
Leave a comment