Browse Source

Fixed Spam mail filetring

bugfixes
gau1991 10 years ago
parent
commit
d5a1f2c00a
  1. 7
      src/modules/stack/install/mail/ee_mod_setup_dovecot.sh
  2. 4
      src/modules/stack/install/mail/ee_mod_setup_mailscan.sh
  3. 10
      templates/mail/autocreate

7
src/modules/stack/install/mail/ee_mod_setup_dovecot.sh

@ -59,6 +59,11 @@ function ee_mod_setup_dovecot()
|| ee_lib_error "Unable to setup Dovecot SSL certificate path, exit status = " $?
# Setting Dovecot init.d script
cp -v /usr/share/easyengine/mail/dovecot /etc/init.d/dovecot &>> $EE_COMMAND_LOG \
cp -v /usr/share/easyengine/mail/dovecot /etc/init.d/dovecot &>> $EE_COMMAND_LOG
# Add autocreate plugin
sed -i "s'#mail_plugins = \$mail_plugins'mail_plugins = \$mail_plugins autocreate'" /etc/dovecot/conf.d/20-imap.conf \
|| ee_lib_error "Unable to setup Dovecot autocreate plugin, exit status = " $?
cat /usr/share/easyengine/mail/autocreate >> /etc/dovecot/conf.d/20-imap.conf
}

4
src/modules/stack/install/mail/ee_mod_setup_mailscan.sh

@ -23,4 +23,8 @@ function ee_mod_setup_mailscan()
|| ee_lib_error "Unable to setup Amavis, exit status = " $?
cat /usr/share/easyengine/mail/amavis-master.cf >> /etc/postfix/master.cf
# Configure ClamAv and Amavis to each other files
adduser clamav amavis &>> $EE_COMMAND_LOG
adduser amavis clamav &>> $EE_COMMAND_LOG
chmod -R 775 /var/lib/amavis/tmp &>> $EE_COMMAND_LOG
}

10
templates/mail/autocreate

@ -0,0 +1,10 @@
plugin {
autocreate = Trash
autocreate2 = Junk
autocreate3 = Drafts
autocreate4 = Sent
autosubscribe = Trash
autosubscribe2 = Junk
autosubscribe3 = Drafts
autosubscribe4 = Sent
}
Loading…
Cancel
Save