Usage
SpamAssassin
Postfix
How to test your config
IP to ASN map
SEM-COUNTRY
SpamAssassin
To use the SEM lists with SpamAssassin add the following rules to your active configuration:
# SEM-BACKSCATTER
header RCVD_IN_SEMBACKSCATTER eval:check_rbl('sembackscatter-lastexternal', 'backscatter.spameatingmonkey.net')
tflags RCVD_IN_SEMBACKSCATTER net
describe RCVD_IN_SEMBACKSCATTER Received from an IP listed by SEM-BACKSCATTER
score RCVD_IN_SEMBACKSCATTER 0.5
# SEM-BLACK
header RCVD_IN_SEMBLACK eval:check_rbl('semblack-lastexternal', 'bl.spameatingmonkey.net')
tflags RCVD_IN_SEMBLACK net
describe RCVD_IN_SEMBLACK Received from an IP listed by SEM-BLACK
score RCVD_IN_SEMBLACK 0.5
# SEM-URI
urirhssub SEM_URI uribl.spameatingmonkey.net. A 2
body SEM_URI eval:check_uridnsbl('SEM_URI')
describe SEM_URI Contains a URI listed by SEM-URI
tflags SEM_URI net
score SEM_URI 0.5
# SEM-URIRED
urirhssub SEM_URIRED urired.spameatingmonkey.net. A 2
body SEM_URIRED eval:check_uridnsbl('SEM_URIRED')
describe SEM_URIRED Contains a URI listed by SEM-URIRED
tflags SEM_URIRED net
score SEM_URIRED 0.5
# SEM-FRESH
urirhssub SEM_FRESH fresh.spameatingmonkey.net. A 2
body SEM_FRESH eval:check_uridnsbl('SEM_FRESH')
describe SEM_FRESH Contains a domain registered less than 5 days ago
tflags SEM_FRESH net
score SEM_FRESH 0.5
Postfix
To use the SEM lists with postfix add the lines below to your smtpd_recipient_restrictions section:
# SEM-BACKSCATTER
warn_if_reject reject_rbl_client backscatter.spameatingmonkey.net,
# SEM-BLACK
warn_if_reject reject_rbl_client bl.spameatingmonkey.net,
# SEM-FRESH
warn_if_reject reject_rhsbl_sender fresh.spameatingmonkey.net,
warn_if_reject reject_rhsbl_client fresh.spameatingmonkey.net,
# SEM-URI
warn_if_reject reject_rhsbl_sender uribl.spameatingmonkey.net,
warn_if_reject reject_rhsbl_client uribl.spameatingmonkey.net,
# SEM-URIRED
warn_if_reject reject_rhsbl_sender urired.spameatingmonkey.net,
warn_if_reject reject_rhsbl_client urired.spameatingmonkey.net,
Remove warn_if_reject if you want to block mail otherwise it will only log the list hit.
How to test your config
You can perform a real test of your config for SEM-BLACK, SEM-URI and SEM-URIRED by telnetting to our test server from the mail server you wish to test. To perform the test using telnet run:telnet test.spameatingmonkey.net
or using netcat by running:
netcat test.spameatingmonkey.net 23
IP to ASN map
SEM-ASN-ORIGIN
To obtain the info for IP 74.125.45.100 run:
dig +short -t txt 100.45.125.74.origin.asn.spameatingmonkey.net
and the response will be:
"74.125.44.0/23 | AS15169 | Google Inc. | 2000-03-30"
SEM-ASN
To find out about AS15169 run:
dig +short -t txt 15169.asn.spameatingmonkey.net
and you will receive:
"AS15169 | Google Inc. | 2000-03-30"
SEM-COUNTRY
To check if the IP 74.125.45.100 is located in the United States (US) run:
dig +short -t any 100.45.125.74.us.country.spameatingmonkey.net
and the response will be:
"74.125.45.100 is located in United States (US)"
127.0.0.2