Koozali.org: home of the SME Server

WBL's Revisited

Offline gbentley

  • ****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
WBL's Revisited
« on: November 20, 2018, 01:04:31 PM »
Hi All,

Time has marched on somewhat and I am just wondering what lists if any you are using and how that's working out? uceprotect is becoming a bit of a pain and more than a little aggressive...

Here is my config;

config show qpsmtpd SBList
qpsmtpd=service
    A_Record_RBL=b.barracudacentral.org:Blocked - see <http://bbl.barracudacentral.com/q.cgi?ip=%IP%>
    Bcc=disabled
    BccMode=cc
    BccUser=maillog
    DNSBL=enabled
    LogLevel=6
    MaxScannerSize=25000000
    RBLList=bl.spamcop.net,dnsbl-1.uceprotect.net,dnsbl-2.uceprotect.net,psbl.surreil.com,zen.spamhaus.org
    RHSBL=enabled
    RelayRequiresAuth=disabled
    SBLList=dbl.spamhaus.org,mulit.surbl.org,black.uribl.com,rhsbl.sorbs.net
    TlsBeforeAuth=1
    UBLList=multi.surbl.org:8-16-64-128,black.uribl.com,rhsbl.sorbs.net
    URIBL=disabled
    access=public
    qplogsumm=disabled
    status=enabled

Any advice appreciated :)
"If you don't know what you want, you end up with a lot you don't."

Offline ReetP

  • *
  • 3,730
  • +5/-0
Re: WBL's Revisited
« Reply #1 on: November 20, 2018, 02:31:00 PM »
Yes UCE is a bit aggressive - if you don't like it then remove the servers from your config.

Not sure where this came from?

Code: [Select]
A_Record_RBL=b.barracudacentral.org:Blocked - see <http://bbl.barracudacentral.com/q.cgi?ip=%IP%>
I think you ought to read this:

https://wiki.contribs.org/Qpsmtpd#A-Record_DNSBL_Services

You could enable URIBL:

https://wiki.contribs.org/Email#Qpsmtpd_for_SME_versions_9.2_and_Later


Hmmm - this should probably be enabled unless you have a good reason not to:

Code: [Select]
   RelayRequiresAuth=disabled

Go and have a good read through the documentation so you really understand what each bit does and how to control it. Well worth the time and effort.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline gbentley

  • ****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Re: WBL's Revisited
« Reply #2 on: November 20, 2018, 06:19:19 PM »
Code: [Select]
   RelayRequiresAuth=disabled

Thanks for reminding me about that - and the other advice :)
"If you don't know what you want, you end up with a lot you don't."

Offline ReetP

  • *
  • 3,730
  • +5/-0
Re: WBL's Revisited
« Reply #3 on: November 20, 2018, 06:37:08 PM »
Hehehehehehe hope it helps !
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline gbentley

  • ****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
Re: WBL's Revisited
« Reply #4 on: November 20, 2018, 10:35:33 PM »
Out of interest are there any scripts that would help me create a 'total emails rejected by blocklist' report from the log files?
"If you don't know what you want, you end up with a lot you don't."

Offline ReetP

  • *
  • 3,730
  • +5/-0
Re: WBL's Revisited
« Reply #5 on: November 21, 2018, 01:20:50 AM »
Check the wiki for mailstats.....
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Re: WBL's Revisited
« Reply #6 on: November 22, 2018, 06:42:24 PM »
config show qpsmtpd SBList
qpsmtpd=service
    A_Record_RBL=b.barracudacentral.org:Blocked - see <http://bbl.barracudacentral.com/q.cgi?ip=%IP%>
    ...
    RBLList=bl.spamcop.net,dnsbl-1.uceprotect.net,dnsbl-2.uceprotect.net,psbl.surreil.com,zen.spamhaus.org
    ...

The update that allowed commas instead of colons in RBLList also allows you to put barracudacentral in RBLList instead of A_Record_RBL:

Here is what I'm using for RBLList:
Code: [Select]
config getprop qpsmtpd RBLList
zen.spamhaus.org,bl.spamcop.net,truncate.gbudb.net,ix.dnsbl.manitu.net,b.barracudacentral.org:Blocked - see http://bbl.barracudacentral.com/q.cgi?ip=%IP%

I try to include the commands I use for email analysis here:
https://wiki.contribs.org/Email_Statistics#Useful_Commands

Quote from: Count messages denied by DNSBL Block Lists
if [ -z $DAYS ]; then DAYS=1; fi; \
echo -n "Days of logfiles to scan [$DAYS]: "; read NEWDAYS; \
if [ $NEWDAYS ]; then DAYS=$NEWDAYS; fi; \
awk -F"[\t]" ' /logterse.*dnsbl/ \
{                                \
split($8,msg,"/");               \
svc=msg[3];                      \
count[svc]++;                    \
count[" Total"]++;                \
}                                \
END                              \
{                                \
for (j in count)                 \
print count[j] "\t" j;           \
}'                               \
$(find /var/log/qpsmtpd /var/log/sqpsmtpd -ctime -$DAYS -type f -name "@*" -o -name current)

This forum post includes a perl script that also gives email delivery stats:
https://forums.contribs.org/index.php/topic,52750.msg272084.html#msg272084

This bug includes a script that you can use to search all of the email in your users' folders, then re-check them against the RBL list of your choice:
https://bugs.contribs.org/show_bug.cgi?id=9110