Procházet zdrojové kódy

spamassassin auto move to Junk

pull/12/head
Luke Smith před 6 roky
rodič
revize
08107c0ee3
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4C50B54A911F6252
1 změnil soubory, kde provedl 28 přidání a 2 odebrání
  1. +28
    -2
      emailwiz.sh

+ 28
- 2
emailwiz.sh Zobrazit soubor

@@ -140,14 +140,40 @@ service auth {
group = postfix group = postfix
} }
} }

protocol lda {
mail_plugins = \$mail_plugins sieve
}

protocol lmtp {
mail_plugins = \$mail_plugins sieve
}

plugin {
sieve = ~/.dovecot.sieve
sieve_default = /var/lib/dovecot/sieve/default.sieve
#sieve_global_path = /var/lib/dovecot/sieve/default.sieve
sieve_dir = ~/.sieve
sieve_global_dir = /var/lib/dovecot/sieve/
}
" > /etc/dovecot/dovecot.conf " > /etc/dovecot/dovecot.conf


mkdir /var/lib/dovecot/sieve/

echo "require [\"fileinto\", \"mailbox\"];
if header :contains \"X-Spam-Flag\" \"YES\"
{
fileinto \"Junk\";
}" > /var/lib/dovecot/sieve/default.sieve

chown -R vmail:vmail /var/lib/dovecot
sievec /var/lib/dovecot/sieve/default.sieve

echo "Preparing user authetication..." echo "Preparing user authetication..."
grep nullok /etc/pam.d/dovecot >/dev/null || grep nullok /etc/pam.d/dovecot >/dev/null ||
echo "auth required pam_unix.so nullok echo "auth required pam_unix.so nullok
account required pam_unix.so" >> /etc/pam.d/dovecot account required pam_unix.so" >> /etc/pam.d/dovecot



# OpenDKIM # OpenDKIM


# A lot of the big name email services, like Google, will automatically rejectmark as spam unfamiliar and unauthenticated email addresses. As in, the server will flattly reject the email, not even deliverring it to someone's Spam folder. # A lot of the big name email services, like Google, will automatically rejectmark as spam unfamiliar and unauthenticated email addresses. As in, the server will flattly reject the email, not even deliverring it to someone's Spam folder.
@@ -190,7 +216,7 @@ postconf -e "milter_default_action = accept"
postconf -e "milter_protocol = 2" postconf -e "milter_protocol = 2"
postconf -e "smtpd_milters = inet:localhost:8891" postconf -e "smtpd_milters = inet:localhost:8891"
postconf -e "non_smtpd_milters = inet:localhost:8891" postconf -e "non_smtpd_milters = inet:localhost:8891"
postconf -e "mailbox_command = /usr/lib/dovecot/deliver"


echo "Restarting Dovecot..." echo "Restarting Dovecot..."
service dovecot restart && echo "Dovecot restarted." service dovecot restart && echo "Dovecot restarted."


Načítá se…
Zrušit
Uložit