|
|
@ -2,10 +2,15 @@ |
|
|
|
|
|
|
|
function ee_mod_setup_sieve() |
|
|
|
{ |
|
|
|
EE_EMAIL=$($EE_CONFIG_GET wordpress.email) |
|
|
|
if [[ $EE_EMAIL = "" ]]; then |
|
|
|
EE_EMAIL=$(git config user.email) |
|
|
|
fi |
|
|
|
|
|
|
|
ee_lib_echo "Setting up Sieve, please wait..." |
|
|
|
|
|
|
|
# Enable sieve plugin support for dovecot-lmtp |
|
|
|
sed -i "s' #mail_plugins = \$mail_plugins' postmaster_address = admin@example.com\n mail_plugins = \$mail_plugins sieve'" /etc/dovecot/conf.d/20-lmtp.conf \ |
|
|
|
sed -i "s' #mail_plugins = \$mail_plugins' postmaster_address =$EE_EMAIL \n mail_plugins = \$mail_plugins sieve'" /etc/dovecot/conf.d/20-lmtp.conf \ |
|
|
|
|| ee_lib_error "Unable to add sieve plugin support for dovecot-lmtp, exit status = " $? |
|
|
|
|
|
|
|
# Sieve dovecot-pluign configuration |
|
|
|