Hwo to setup RelayCountry to work with spamassassin and mailscanner front end
Posted: 17 Feb 2024, 22:51
Hwo to setup RelayCountry:
I've found this script:
loadplugin Mail::SpamAssassin::Plugin::RelayCountry
ifplugin Mail::SpamAssassin::Plugin::RelayCountry
add_header all Relay-Countries _RELAYCOUNTRY_
add_header all Relay-Country _RELAYCOUNTRY_
report X-Relay-Countries: _RELAYCOUNTRY_
report X-Relay-Country: _RELAYCOUNTRY_
header RC_GOD X-Relay-Countries =~ /(BA|HR|DE)/
describe RC_GOD Relayed through a prohibited country at some point
score RC_GOD 0.1
endif
For some reason, headers in Mailscanner Front End do show: X-Relay-Countries: _RELAYCOUNTRY_ X-Relay-Country: _RELAYCOUNTRY_ but without any info of country.
I've installed MaxMind database as per this link: https://support.cpanel.net/hc/en-us/art ... -mod-geoip
I would like to know if it is possible to block some countries to send emails to my server if email was going thru them. These countries are just for test.
Thank you!
Nermin
I've found this script:
loadplugin Mail::SpamAssassin::Plugin::RelayCountry
ifplugin Mail::SpamAssassin::Plugin::RelayCountry
add_header all Relay-Countries _RELAYCOUNTRY_
add_header all Relay-Country _RELAYCOUNTRY_
report X-Relay-Countries: _RELAYCOUNTRY_
report X-Relay-Country: _RELAYCOUNTRY_
header RC_GOD X-Relay-Countries =~ /(BA|HR|DE)/
describe RC_GOD Relayed through a prohibited country at some point
score RC_GOD 0.1
endif
For some reason, headers in Mailscanner Front End do show: X-Relay-Countries: _RELAYCOUNTRY_ X-Relay-Country: _RELAYCOUNTRY_ but without any info of country.
I've installed MaxMind database as per this link: https://support.cpanel.net/hc/en-us/art ... -mod-geoip
I would like to know if it is possible to block some countries to send emails to my server if email was going thru them. These countries are just for test.
Thank you!
Nermin