I am sure its me, however I cannot seem to get GeoIP working.
I have following this guide which is a variation of Heutgers':
https://github.com/killmasta93/tutorials/wiki/PMG-Harden#geoip
https://forum.proxmox.com/threads/a...y-spam-and-virus-detection.44152/#post-211196
/etc/GeoIP.conf
/etc/pmg/templates/init.pre.in
/etc/mail/spamassassin/custom.cf
apply the changes
It doesnt update:
Any assistance would be much appreciated.
I have following this guide which is a variation of Heutgers':
https://github.com/killmasta93/tutorials/wiki/PMG-Harden#geoip
https://forum.proxmox.com/threads/a...y-spam-and-virus-detection.44152/#post-211196
/etc/GeoIP.conf
Code:
AccountID xxx
LicenseKey yyy
EditionIDs GeoLite2-Country
/etc/pmg/templates/init.pre.in
Code:
loadplugin Mail::SpamAssassin::Plugin::RelayCountry
/etc/mail/spamassassin/custom.cf
Code:
ifplugin Mail::SpamAssassin::Plugin::RelayCountry
# country_db_type (GeoIP|GeoIP2|DB_File) #Tried all 3 and hashed out!!!
country_db_path /usr/share/GeoIP/GeoLite2-Country.mmdb
add_header all Relay-Country _RELAYCOUNTRY_
header RELAYCOUNTRY_BAD X-Relay-Countries =~ /(CN|RU)/
describe RELAYCOUNTRY_BAD Email Originating from Untrusted Countries
score RELAYCOUNTRY_BAD 2.0
header RELAYCOUNTRY_GOOD X-Relay-Countries =~ /^(AU|NZ)/
describe RELAYCOUNTRY_GOOD Trusted Countries
score RELAYCOUNTRY_GOOD -0.5
endif # Mail::SpamAssassin::Plugin::RelayCountry
apply the changes
Code:
pmgconfig sync --restart 1
spamassassin -D --lint
echo "test" | spamassassin -D pyzor 2>&1
It doesnt update:
Code:
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on spam.domain
X-Spam-Flag: YES
X-Spam-Level: ********
X-Spam-Status: Yes, score=8.3 required=5.0 tests=EMPTY_MESSAGE,
KAM_BLANKSUBJECT,KAM_DMARC_STATUS,MISSING_DATE,MISSING_FROM,
MISSING_HEADERS,MISSING_MID,MISSING_SUBJECT,NO_HEADERS_MESSAGE,
NO_RECEIVED,NO_RELAYS shortcircuit=no autolearn=no autolearn_force=no
version=3.4.6
X-Spam-Relay-Country: _RELAYCOUNTRY_
Any assistance would be much appreciated.