mirror of
https://git.freebsd.org/ports.git
synced 2025-05-08 03:40:46 -04:00
- support mail/spamassassin 4.0.0+ Note: this commit will NOT support spamassassin < 4.0.0
45 lines
1.1 KiB
Text
45 lines
1.1 KiB
Text
[
|
|
{
|
|
message: <<EOM
|
|
you will need to configure the sh.cf file with your own
|
|
DQS key.
|
|
|
|
Follow the instructions at:
|
|
https://www.spamhaustech.com/dqs/
|
|
to get a key, then go to:
|
|
https://portal.spamhaustech.com/manuals/dqs/
|
|
and note the DQS key under section "1.0 Datafeed Query Service".
|
|
|
|
Once you have it, run the following as root:
|
|
|
|
cd %%PREFIX%%/etc/mail/spamassassin
|
|
sed -e 's/your_DQS_key/<your key from above>/g' sh.cf.sample >sh.cf
|
|
|
|
if the HBL option is selected, issue the following as well:
|
|
sed -e 's/your_DQS_key/<your key from above>/g' sh_hbl.cf.sample >sh_hbl.cf
|
|
|
|
(for more information on HBL, see %%DOCSDIR%%/README.md)
|
|
|
|
then restart spamassassin.
|
|
EOM
|
|
type: install
|
|
}
|
|
{
|
|
message: <<EOM
|
|
You will need to re-run this as root:
|
|
|
|
cd %%PREFIX%%/etc/mail/spamassassin
|
|
sed -e 's/your_DQS_key/<your key from above>/g' sh.cf.sample >sh.cf
|
|
|
|
if the HBL option is selected, issue the following as well:
|
|
sed -e 's/your_DQS_key/<your key from above>/g' sh_hbl.cf.sample >sh_hbl.cf
|
|
|
|
(for more information on HBL, see %%DOCSDIR%%/README.md)
|
|
|
|
and restart spamassassin
|
|
EOM
|
|
type: upgrade
|
|
maximum_version: "1.4.0"
|
|
}
|
|
]
|
|
|