User Tools

Site Tools


doc:appunti:linux:sa:spamassassin_private_dnsbl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:appunti:linux:sa:spamassassin_private_dnsbl [2020/02/17 18:22]
niccolo [Python Script to Manage the Dynamic Zone]
doc:appunti:linux:sa:spamassassin_private_dnsbl [2020/02/19 15:11] (current)
niccolo [Python script to manage the dynamic zone]
Line 1: Line 1:
-====== How to use a private DNSBL with SpamAssassin ======+====== How to run a private DNSBL for SpamAssassin ======
  
 Here we will present a recipe to create a personal **[[wp>​Domain_Name_System-based_Blackhole_List|Domain Name System-based Blackhole List]]** to be used with **SpamAssassin**. This will enable you to assign a **custom SPAM score** to mails coming from **specific IP addresses** (at the moment only IPv4 addresses). Here we will present a recipe to create a personal **[[wp>​Domain_Name_System-based_Blackhole_List|Domain Name System-based Blackhole List]]** to be used with **SpamAssassin**. This will enable you to assign a **custom SPAM score** to mails coming from **specific IP addresses** (at the moment only IPv4 addresses).
Line 33: Line 33:
 </​file>​ </​file>​
  
-==== The Dynamic Zone ====+==== The dynamic zone ====
  
 Your DNS server will manage a **dynamic zone** dedicated to the DNSBL service. Create a file **/​var/​cache/​bind/​bl.rigacci.org** owned by **bind:​bind**:​ Your DNS server will manage a **dynamic zone** dedicated to the DNSBL service. Create a file **/​var/​cache/​bind/​bl.rigacci.org** owned by **bind:​bind**:​
Line 82: Line 82:
 You can customize the **score** (default SPAM score is 5.0 in SpamAssassin) to match your requirements. You can customize the **score** (default SPAM score is 5.0 in SpamAssassin) to match your requirements.
  
-===== Python ​Script ​to Manage ​the Dynamic Zone =====+===== Python ​script ​to manage ​the dynamic zone =====
  
 Finally we need a script to add, remove or query IP address into the DNSBL zone. We have written a **{{.:​dnsbl-tool.txt|dnsbl-tool}}** which can be used as follow: Finally we need a script to add, remove or query IP address into the DNSBL zone. We have written a **{{.:​dnsbl-tool.txt|dnsbl-tool}}** which can be used as follow:
Line 104: Line 104:
  
 <​code>​ <​code>​
-dig -tAXFR ​zen.texnet.it+dig -tAXFR ​bl.rigacci.org
 </​code>​ </​code>​
doc/appunti/linux/sa/spamassassin_private_dnsbl.1581960136.txt.gz ยท Last modified: 2020/02/17 18:22 by niccolo