|
|
@ -26,8 +26,8 @@ function ee_mod_setup_mailscaner() |
|
|
|
cat /usr/share/easyengine/mail/amavis-master.cf >> /etc/postfix/master.cf |
|
|
|
|
|
|
|
# Grep ViMbAdmin host and Password from Postfix Configuration |
|
|
|
ee_vimbadmin_host=$(grep password /etc/postfix/mysql/virtual_alias_maps.cf | awk '{ print $3 }') |
|
|
|
ee_vimbadmin_password=$(grep hosts /etc/postfix/mysql/virtual_alias_maps.cf | awk '{ print $3 }') |
|
|
|
ee_vimbadmin_host=$(grep hosts /etc/postfix/mysql/virtual_alias_maps.cf | awk '{ print $3 }') |
|
|
|
ee_vimbadmin_password=$(grep password /etc/postfix/mysql/virtual_alias_maps.cf | awk '{ print $3 }') |
|
|
|
|
|
|
|
# Changing hosts and password of ViMbAdmin database in Amavis configuration |
|
|
|
sed -i "s/127.0.0.1/$ee_vimbadmin_host/" /etc/amavis/conf.d/50-user && |
|
|
|