L
L
LastQuest2019-02-07 01:20:30
Dovecot
LastQuest, 2019-02-07 01:20:30

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

there must be some other file in this directory, for example h0uoixdovecot.conf. Why aren't they there?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LastQuest, 2019-02-07
@LastQuest

Hang up the alarm, apparently there were some problems with my ftp client, I just went to the etc directory through the console and saw that all the folders were in place and the configuration file too

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question