gau1991
10 years ago
5 changed files with 58 additions and 16 deletions
@ -1,6 +1,6 @@ |
|||||
# Install Amavis package |
# Install Amavis package |
||||
|
|
||||
function ee_mod_install_mailscan() |
function ee_mod_install_mailscaner() |
||||
{ |
{ |
||||
# Install Amavis |
# Install Amavis |
||||
ee_lib_echo "Installing Amavis, SpamAssassin and ClamAV, please wait..." |
ee_lib_echo "Installing Amavis, SpamAssassin and ClamAV, please wait..." |
@ -1,8 +1,8 @@ |
|||||
# Install mail scanner packages |
# Install mail scanner packages |
||||
|
|
||||
function ee_mod_setup_mailscan() |
function ee_mod_setup_mailscaner() |
||||
{ |
{ |
||||
# Confiure Amavis |
# Configure Amavis |
||||
|
|
||||
ee_lib_echo "Setting up Amavis, please wait..." |
ee_lib_echo "Setting up Amavis, please wait..." |
||||
sed -i "s'#@'@'" /etc/amavis/conf.d/15-content_filter_mode && \ |
sed -i "s'#@'@'" /etc/amavis/conf.d/15-content_filter_mode && \ |
@ -1,9 +0,0 @@ |
|||||
# Remove MailScan package |
|
||||
|
|
||||
function ee_mod_remove_mailscan() |
|
||||
{ |
|
||||
ee_lib_echo "$EE_SECOND Amavis, SpamAssassin and ClamAV package, please wait..." |
|
||||
$EE_APT_GET $EE_SECOND amavisd-new spamassassin clamav clamav-daemon arj zoo nomarch lzop cabextract p7zip rpm unrar-free \ |
|
||||
|| ee_lib_error "Unable to $EE_SECOND Amavis, SpamAssassin and ClamAV,, exit status = " $? |
|
||||
|
|
||||
} |
|
@ -0,0 +1,17 @@ |
|||||
|
# Remove MailScan package |
||||
|
|
||||
|
function ee_mod_remove_mailscaner() |
||||
|
{ |
||||
|
|
||||
|
# Remove Amavis configuration from Postfix configuration |
||||
|
sed -i '/content_filter/d' /etc/postfix/main.cf |
||||
|
sed -i '/content_filter/d' /etc/postfix/master.cf |
||||
|
sed -i '/receive_override_options/d' /etc/postfix/master.cf |
||||
|
sed -i '/smtp-amavis/,$d' /etc/postfix/master.cf |
||||
|
|
||||
|
#Remove/Purge mailscan packages |
||||
|
ee_lib_echo "$EE_SECOND Amavis, SpamAssassin and ClamAV package, please wait..." |
||||
|
$EE_APT_GET $EE_SECOND amavisd-new spamassassin clamav clamav-daemon arj zoo nomarch lzop cabextract p7zip rpm unrar-free \ |
||||
|
|| ee_lib_error "Unable to $EE_SECOND Amavis, SpamAssassin and ClamAV,, exit status = " $? |
||||
|
|
||||
|
} |
Loading…
Reference in new issue