Answer the question
In order to leave comments, you need to log in
How to install dovecot on Centos 6?
I'm trying to install dovecot , I'm doing everything according to the guide
https ://support.rackspace.com/how-to/dovecot-insta...
After executing the command: You$ sudo yum install dovecot
need to make settings in the file : /etc no. What am I doing wrong? Should I create it manually? The goal is to make this script work:/etc/dovecot/dovecot.conf
echo "Установка и конфигурирование Dovecot"
yum -y install dovecot
cp /etc/dovecot/h0uoixdovecot.conf{,.orig}
cat <<'EOF' > /etc/dovecot/dovecot.conf
listen = *
ssl = no
protocols = pop3 imap
disable_plaintext_auth = no
auth_mechanisms = plain login
mail_access_groups = vmail
default_login_user = vmail
first_valid_uid = 2222
first_valid_gid = 2222
#mail_location = maildir:~/Maildir
mail_location = maildir:/var/vmail/%d/%n
passdb {
driver = passwd-file
args = scheme=SHA1 /etc/dovecot/passwd
}
userdb {
driver = static
args = uid=2222 gid=2222 home=/var/vmail/%d/%n allow_all_users=yes
}
service auth {
unix_listener auth-client {
group = postfix
mode = 0660
user = postfix
}
user = root
}
service imap-login {
process_min_avail = 1
user = vmail
}
EOF
rm /etc/dovecot/passwd
touch /etc/dovecot/passwd
rm /tmp/vmp
mailpass=`echo -e $mps`
doveadm pw -p $mailpass -s sha1 | cut -d '}' -f2 > /tmp/vmp
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question