Koozali.org: home of the SME Server

invaluement SPBL plugin for qpsmtpd

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
invaluement SPBL plugin for qpsmtpd
« on: August 26, 2020, 06:13:00 PM »
Dear all,

Rob from Invaluement.com has created another (free) blacklist helping with spam being sent from sendgrid. I have implemented this new SPBL (Service Provider Black List) and do get quite some hits that do not otherwise get caught.

I have created a plugin for qpsmtpd which I, for now, have placed in GitHub. I know that to get it into SME, there is a little template work to be done, but I am sure someone will assist (or I will get around to that as well).

https://github.com/jesper-knudsen/qpsmtpd

The Invaluement page:
https://www.invaluement.com/serviceproviderdnsbl/

Enjoy,
Jesper

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: invaluement SPBL plugin for qpsmtpd
« Reply #1 on: August 27, 2020, 04:01:23 AM »
thumbs up
--
qui scribit bis legit

Offline SchulzStefan

  • *
  • 620
  • +0/-0
Re: invaluement SPBL plugin for qpsmtpd
« Reply #2 on: August 27, 2020, 01:11:14 PM »
Quite interesting, I'd like to implement this in my up-to-date 9.2 server.

I copied the spbl-file from github to /usr/share/qpsmtpd/plugins/

How to proceed? Any help would be appreciated.

regards,
stefan
And then one day you find ten years have got behind you.

Time, 1973
(Mason, Waters, Wright, Gilmour)

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Re: invaluement SPBL plugin for qpsmtpd
« Reply #3 on: August 27, 2020, 04:32:41 PM »
Hi Stefan,

Here is the rough hack that will get you going

# cd /usr/share/qpsmtpd/plugins/
# wget https://raw.githubusercontent.com/jesper-knudsen/qpsmtpd/master/plugins/spbl
# echo "spbl" > /etc/e-smith/templates/var/service/qpsmtpd/config/peers/0/25spbl
# /sbin/e-smith/expand-template /var/service/qpsmtpd/config/peers/0
# sv t qpsmtpd

The you should see a log entry in /var/log/qpsmtpd/current saying:
(init) spbl: Reloading SPBL...

P.S
Please get a later version from GitHub.

Rgds,
Jesper


Offline SchulzStefan

  • *
  • 620
  • +0/-0
Re: invaluement SPBL plugin for qpsmtpd
« Reply #4 on: August 28, 2020, 11:04:36 AM »
Hi Jesper,

thank you for guiding me. Here's the output of

# grep 'spbl' current
@400000005f48c5cb3710a43c 16589 (init) spbl: Reloading SPBL...
@400000005f48c603171faf74 16595 (init) spbl: Reloading SPBL...
@400000005f48c6923a6ad774 16843 (init) spbl: Reloading SPBL...
@400000005f48c6ca2181240c 16856 (init) spbl: Reloading SPBL...

Seems to be implemented and running... I'll keep an eye on the logs the next days. Wouldn't it make sense to put this in the custom-templates?

What did you mean by "get a later version from github"?

regards,
stefan
« Last Edit: August 28, 2020, 11:08:03 AM by SchulzStefan »
And then one day you find ten years have got behind you.

Time, 1973
(Mason, Waters, Wright, Gilmour)

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
Re: invaluement SPBL plugin for qpsmtpd
« Reply #5 on: August 28, 2020, 01:12:43 PM »
Perfekt - seems to work. Please be aware that its relatively low volume spam, but always nice to clean some more.

Right now the plugin downloads the data at initialization (which is with every mail in a normal SME server - I use the prefork system which reduces the re-download). I might create a little separate script that downloads and stores locally when Invaluement updates.