From 53d4820d749173387b23bf87a32f68a071919787 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Fri, 17 Jul 2015 11:13:15 +0000 Subject: [PATCH] hard-code pyzor sevice URL because 'pyzor discover' is failing because Sourceforge is offline, fixes #496 --- setup/spamassassin.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/setup/spamassassin.sh b/setup/spamassassin.sh index 2833c5fb..9816204b 100755 --- a/setup/spamassassin.sh +++ b/setup/spamassassin.sh @@ -22,8 +22,18 @@ apt_install spampd razor pyzor dovecot-antispam tools/editconf.py /etc/default/spamassassin \ CRON=1 -# Configure pyzor. -hide_output pyzor discover +# Configure pyzor, which is a client to a live database of hashes of +# spam emails. Set the pyzor configuration directory to something sane. +# The default is ~/.pyzor. We used to use that, so we'll kill that old +# directory. Then write the public pyzor server to its servers file. +# That will prevent an automatic download on first use, and also means +# we can skip 'pyzor discover', both of which are currently broken by +# something happening on Sourceforge (#496). +rm -rf ~/.pyzor +tools/editconf.py /etc/spamassassin/local.cf -s \ + pyzor_options="--homedir /etc/spamassassin/pyzor" +echo "public.pyzor.org:24441" > /etc/spamassassin/pyzor/servers +# check with: pyzor --homedir /etc/mail/spamassassin/pyzor ping # Configure spampd: # * Pass messages on to docevot on port 10026. This is actually the default setting but we don't