This is not new idea, actually. someone at spamassassin plugin developers have been made before. basically, the idea was put email addresses in RBLDNSD zone dnset format, ie:
So, we replace @ sign into dot (.) sign. that way, we can save the email addresses into the RBLDNSD dnset zone.
RBLDNSD part:
create emailbl zone, meta information
zone
1 | :127.0.0.4:DNSBL. $ - Not receiving email right now. |
3 | example.user.rediffmail.com |
meta
1 | $NS 1w ns.example.com ns.example.com |
2 | $SOA 1w ns.example.com admin.example.com 0 2h 2h 1w 1h |
6 | @ TXT "example email blocklist" |
in /etc/sysconfig/rbldnsd
1 | RBLDNSD="dsbl -r/var/lib/rbldns/dsbl -t 300 -b 1.2.3.4 \ |
2 | emailbl.example.com:combined:meta,emailbl |
ofcourse we should delegate the subdomain emailbl.example.com in example.com authoritative nameserver
2 | emailbl.example.com. IN NS ns.example.com. |
3 | ns.example.com. IN A 1.2.3.4 |
start rbldnsd service