Adjustments continued:
I added to the end of the /etc/pmg/templates/init.pre.in as followed:
loadplugin Mail::SpamAssassin:lugin:yzor
use_pyzor 1
loadplugin Mail::SpamAssassin:lugin:CC
dcc_path /usr/local/bin/dccproc
dcc_home /var/dcc
dcc_dccifd_path /var/dcc/dccifd
dcc_body_max 999999
dcc_fuz1_max 999999
dcc_fuz2_max 999999
use_dcc 1
dcc_timeout 10
loadplugin Mail::SpamAssassin:lugin::RelayCountry
I changed the /etc/mail/spamassassin/custom.cf as followed:
ifplugin Mail::SpamAssassin:lugin::RelayCountry
add_header all Relay-Country _RELAYCOUNTRY_
header RELAYCOUNTRY_BAD X-Relay-Countries =~ /(CN|RU|UA|RO|VN)/
describe RELAYCOUNTRY_BAD Relayed through spammy country at some point
score RELAYCOUNTRY_BAD 2.0
header RELAYCOUNTRY_GOOD X-Relay-Countries =~ /^(DE|AT|CH)/
describe RELAYCOUNTRY_GOOD First untrusted GW is DE, AT or CH
score RELAYCOUNTRY_GOOD -0.5
endif # Mail::SpamAssassin:lugin::RelayCountry
header RCVD_IN_BRBL eval:check_rbl('brbl-lastexternal', 'b.barracudacentral.org.', '127.0.0.2')
describe RCVD_IN_BRBL Received via a relay in Barracuda RBL
tflags RCVD_IN_BRBL net
score RCVD_IN_BRBL 1.4
Hopefully Pyzor and DCC will work now. I for sure synced the templates and recompiled the config with sa-compile.
I added to the end of the /etc/pmg/templates/init.pre.in as followed:
loadplugin Mail::SpamAssassin:lugin:yzor
use_pyzor 1
loadplugin Mail::SpamAssassin:lugin:CC
dcc_path /usr/local/bin/dccproc
dcc_home /var/dcc
dcc_dccifd_path /var/dcc/dccifd
dcc_body_max 999999
dcc_fuz1_max 999999
dcc_fuz2_max 999999
use_dcc 1
dcc_timeout 10
loadplugin Mail::SpamAssassin:lugin::RelayCountry
I changed the /etc/mail/spamassassin/custom.cf as followed:
ifplugin Mail::SpamAssassin:lugin::RelayCountry
add_header all Relay-Country _RELAYCOUNTRY_
header RELAYCOUNTRY_BAD X-Relay-Countries =~ /(CN|RU|UA|RO|VN)/
describe RELAYCOUNTRY_BAD Relayed through spammy country at some point
score RELAYCOUNTRY_BAD 2.0
header RELAYCOUNTRY_GOOD X-Relay-Countries =~ /^(DE|AT|CH)/
describe RELAYCOUNTRY_GOOD First untrusted GW is DE, AT or CH
score RELAYCOUNTRY_GOOD -0.5
endif # Mail::SpamAssassin:lugin::RelayCountry
header RCVD_IN_BRBL eval:check_rbl('brbl-lastexternal', 'b.barracudacentral.org.', '127.0.0.2')
describe RCVD_IN_BRBL Received via a relay in Barracuda RBL
tflags RCVD_IN_BRBL net
score RCVD_IN_BRBL 1.4
Hopefully Pyzor and DCC will work now. I for sure synced the templates and recompiled the config with sa-compile.