bstinson / centos / t_functional

Forked from centos/t_functional 3 years ago
Clone

Blame tests/p_dovecot/1-config_dovecot.sh

Athmane Madjoudj 0a3c81
#!/bin/bash
Athmane Madjoudj 0a3c81
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj 0a3c81
Pablo Greco bf4e34
if (t_GetPkgRel dovecot | egrep -q 'el6|7|8')
Athmane Madjoudj 0a3c81
then
Athmane Madjoudj 0a3c81
   t_Log "Running $0 - Configuration of Dovecot"
Athmane Madjoudj 0a3c81
Athmane Madjoudj 0a3c81
   cat > /etc/dovecot/conf.d/11-mail.conf <
Athmane Madjoudj 0a3c81
mail_location = mbox:~/mail:INBOX=/var/mail/%u
Athmane Madjoudj 0a3c81
mail_privileged_group = mail
Athmane Madjoudj 0a3c81
EOF
Athmane Madjoudj 0a3c81
Athmane Madjoudj 0a3c81
t_ServiceControl dovecot restart
Athmane Madjoudj 0a3c81
Athmane Madjoudj 0a3c81
else
Athmane Madjoudj 0a3c81
   t_Log "This script is not required for CentOS 5.x"
Athmane Madjoudj 0a3c81
fi