Last active
October 22, 2020 11:04
-
-
Save jeffrysleddens/236fec1d3c9e64f6cc1663dde2974e97 to your computer and use it in GitHub Desktop.
rspamd rules for Invaluement.com Service Provider DNSBL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
These rules catch Sendgrid senders that are listed on Invaluement.com's Service Provider DNSBLs | |
https://www.invaluement.com/serviceproviderdnsbl/ | |
Both files need to be placed in the /etc/rspamd/local.d directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/rspamd/local.d/multimap.conf | |
SENDGRID_INVALUEMENT_ID_BL { | |
require_symbols = "HAS_SG_EID"; | |
type = "selector"; | |
map = "https://www.invaluement.com/spdata/sendgrid-id-dnsbl.txt"; | |
selector = 'from("smtp","orig").regexp("/^<?bounces\+(\d+)\-[^@]+@/i").last'; | |
score = 8; | |
description = "Abusive Sendgrid IDs" | |
} | |
SENDGRID_INVALUEMENT_ENVFROM_BL { | |
require_symbols = "HAS_SG_EID"; | |
type = "from"; | |
filter = "email:domain:tld"; | |
map = "https://www.invaluement.com/spdata/sendgrid-envelopefromdomain-dnsbl.txt"; | |
score = 2; | |
description = "Abusive Sendgrid Envelope From Domains" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/rspamd/local.d/regexp.conf | |
HAS_SG_EID { | |
re = "header_exists('X-SG-EID')"; | |
description = "Has X-SG-EID header"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment