razor et pyzor
This commit is contained in:
parent
e7654b8f9e
commit
6d40db429a
@ -26,7 +26,7 @@ install_exim() {
|
|||||||
install_ask_domain
|
install_ask_domain
|
||||||
echo -e "${YEL}Two boxes will appear. Hit [Enter] each time to continue.${STD}"
|
echo -e "${YEL}Two boxes will appear. Hit [Enter] each time to continue.${STD}"
|
||||||
read -p "Press [Enter] key to continue..."
|
read -p "Press [Enter] key to continue..."
|
||||||
aptitude -y install exim4 courier-imap courier-imap-ssl courier-authlib-userdb ssl-cert
|
aptitude -y install exim4 courier-imap courier-imap-ssl courier-authlib-userdb ssl-cert sudo openssl
|
||||||
chown -fvR daemon: courier/*
|
chown -fvR daemon: courier/*
|
||||||
cp -fv courier/* /etc/courier/
|
cp -fv courier/* /etc/courier/
|
||||||
chown -vR $USER: courier/*
|
chown -vR $USER: courier/*
|
||||||
@ -41,7 +41,9 @@ install_exim() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install_spamassassin() {
|
install_spamassassin() {
|
||||||
aptitude -y install exim4-daemon-heavy sa-exim spamassassin
|
aptitude -y install exim4-daemon-heavy sa-exim spamassassin pyzor razor
|
||||||
|
sudo -u debian-spamd pyzor discover
|
||||||
|
razor-admin -home=/etc/razor -discover
|
||||||
cp -fv spamd/sa-learn /etc/cron.daily/sa-learn
|
cp -fv spamd/sa-learn /etc/cron.daily/sa-learn
|
||||||
cp -fv spamd/spamassassin /etc/default/spamassassin
|
cp -fv spamd/spamassassin /etc/default/spamassassin
|
||||||
systemctl enable spamassassin
|
systemctl enable spamassassin
|
||||||
@ -98,4 +100,4 @@ install_mailserver() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
clear && [[ $1 == "install" ]] && install_mailserver
|
[[ $1 == "install" ]] && clear && install_mailserver
|
||||||
|
Loading…
Reference in New Issue
Block a user