Koozali.org: home of the SME Server

Email: How to block top-level domain?

Offline MSmith

  • *
  • 675
  • +0/-0
Email: How to block top-level domain?
« on: August 09, 2011, 10:15:29 PM »
So email trouble continues.  A large portion of what I get purports to come from ".info" domains, and NONE of my legit email does.

How to block an entire top-level domain?  This will become more relevant once .xxx comes online, I think ...
...

Offline piran

  • ****
  • 502
  • +0/-0
Re: Email: How to block top-level domain?
« Reply #1 on: August 10, 2011, 12:35:16 AM »
So email trouble continues.  A large portion of what I get purports to come from ".info" domains, and NONE of my legit email does. How to block an entire top-level domain?
One simple option would be to do it at the router,
my old Billion does URL blocking in its firewall options.
*.info would be just another entry... if you wanted
a somewhat brutish level of blocking.

Offline piran

  • ****
  • 502
  • +0/-0
Re: Email: How to block top-level domain?
« Reply #2 on: August 10, 2011, 12:41:08 AM »
Take a look at the E-mail WBL contrib.
The last panel in the Black list section.
qmail badmailfrom
If they are honestly from .info this might
do what you appear to want to do. The
contrib always used to say that it was
beta but hasn't misbehaved in my use.
http://wiki.contribs.org/Email_Whitelist-Blacklist_Control

PostEdit: URL
« Last Edit: August 10, 2011, 12:42:43 AM by piran »

Offline piran

  • ****
  • 502
  • +0/-0
Re: Email: How to block top-level domain?
« Reply #3 on: August 10, 2011, 12:46:15 AM »
You'd have to test whether it takes a *
as I've only ever used the WBL contrib
with specified domains ie without * .

Offline MSmith

  • *
  • 675
  • +0/-0
Re: Email: How to block top-level domain?
« Reply #4 on: August 10, 2011, 07:58:48 PM »
I should have mentioned that I'm using the "WBL" contrib already, with success.  I don't know what the syntax will be to effectively block ".info" senders but I will experiment.
...

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Email: How to block top-level domain?
« Reply #5 on: August 10, 2011, 08:36:22 PM »
MSmith, could you please post the result of
Code: [Select]
config show qpsmtpd

thank you

Offline MSmith

  • *
  • 675
  • +0/-0
Re: Email: How to block top-level domain?
« Reply #6 on: August 10, 2011, 09:10:01 PM »
qpsmtpd=service
    Bcc=enabled
    BccMode=bcc
    BccUser=maillog
    DNSBL=enabled
    LogLevel=6
    MaxScannerSize=25000000
    RBLList=zen.spamhaus.org:whois.rfc-ignorant.org:dnsbl.njabl.org
    RHSBL=enabled
    RequireResolvableFromHost=yes
    SBLList=dsn.rfc-ignorant.org:dnsbl.sorbs.net:rhsbl.sorbs.net:ex.dnsbl.org:multi.surbl.org
    TlsBeforeAuth=1
    access=public
    qplogsumm=disabled
    status=enabled
...

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Email: How to block top-level domain?
« Reply #7 on: August 11, 2011, 02:17:22 AM »
MSmith

From the contrib screen:
"Check envelope sender addresses. Reject any that appear (@host or user@host) in badmailfrom during the 'mail' stage."

So you will probably have to enter each individual domain as they are identified as "spammers" ie
@thisdomain.info
@anotherdomain.info
@domain3.info
etc etc
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Email: How to block top-level domain?
« Reply #8 on: August 11, 2011, 04:54:49 AM »
This qpsmtpd plugin allows a badmailpatterns file to be used for "wildmat format" sender addresses:

ftp://ftp.canl.nc/Sharewares/Linux/Network/courrier/anti-spam/qpsmtpd/check_badpatterns..txt

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Email: How to block top-level domain?
« Reply #9 on: August 11, 2011, 09:20:51 AM »
    RBLList=zen.spamhaus.org:whois.rfc-ignorant.org:dnsbl.njabl.org
    SBLList=dsn.rfc-ignorant.org:dnsbl.sorbs.net:rhsbl.sorbs.net:ex.dnsbl.org:multi.surbl.org

I would work on RBLList and SBLList

Code: [Select]
RBLList=bl.spamcop.net:combined.njabl.org:dnsbl.ahbl.org:list.dsbl.org:multihop.dsbl.org:zen.spamhaus.org
SBLList=bogusmx.rfc-ignorant.org:multi.surbl.org:black.uribl.com:rhsbl.sorbs.net:bulk.rhs.mailpolice.com:fraud.rhs.mailpolice.com:porn.rhs.mailpolice.com:adult.rhs.mailpolice.com:ex.dnsbl.org

maybe you could add one list at time and see if something changes

Offline MSmith

  • *
  • 675
  • +0/-0
Re: Email: How to block top-level domain?
« Reply #10 on: August 24, 2011, 08:23:06 PM »
Stefano:  I thought some of those were deprecated, but what the heck, we have lots of bandwidth so I've enabled them all.  We'll see what happens.  I'll also look into the earlytalker issue.  Thanks.
...