any way to block .tlds?
any way to block .tlds?
Hi im looking to block all emails from .eu as im getting alot of spam i tried to configure filter in exim but no luck how i can achieve this?
thank you.
thank you.
-
- Junior Member
- Posts: 115
- Joined: 18 Dec 2006, 01:55
Re: any way to block .tlds?
yes use the black list function in cpanel under mailscannner config / Email Black/Whitelist settings and add
domains in this format
*@*.me
*@*.in
*@*.eu
*@*.asia
*@*.uk
*@*.link
domains in this format
*@*.me
*@*.in
*@*.eu
*@*.asia
*@*.uk
*@*.link
Re: any way to block .tlds?
Hello,
I tried the listing exactly as above in /usr/mailscanner/etc/rules/spam.blacklist.rules.
It does not block these. Is there something else I have to do to or another setting in mailscanner to make it take affect?
Thanks,
TR
I tried the listing exactly as above in /usr/mailscanner/etc/rules/spam.blacklist.rules.
It does not block these. Is there something else I have to do to or another setting in mailscanner to make it take affect?
Thanks,
TR
-
- Junior Member
- Posts: 115
- Joined: 18 Dec 2006, 01:55
Re: any way to block .tlds?
Do it from the web interface in Cpanel per domain
Re: any way to block .tlds?
Use "From: /\.eu$/ yes" (without the quotes) and reload MS.
Re: any way to block .tlds?
Thanks for the suggestions, I will try them.
-
- Junior Member
- Posts: 22
- Joined: 27 Jun 2007, 22:28
Re: any way to block .tlds?
I have been blocking these in MSFE through WHM not in Cpanel per user. That would take forever. I do have a question about .xyz. I would like to block it, but now that Google has registered alphabet.xyz I fear real people might also start using that tld. I've even seen registrars advertise it.
Anyone have thoughts on what to block/not block server-wide? What's the best practice?
Anyone have thoughts on what to block/not block server-wide? What's the best practice?
-
- Junior Member
- Posts: 3
- Joined: 23 Feb 2013, 22:13
Re: any way to block .tlds?
I've been trying automatically delete emails actually marked as {Spam?} and from certain TDL's, such as
.download .pro .xyz .click .faith .top
I've tried the global email filter in cpanel but that doesn't work, and I've been looking for a way to do it in mailscanner but I'm not getting too far.
I've setup the filter in thunderbird for my own private email and it works great with 0% false positives so far, but I would really like to fine a way to do it server wide without tons of hassle.
I want
subject: contains spam AND from: ends with .download
Pete
.download .pro .xyz .click .faith .top
I've tried the global email filter in cpanel but that doesn't work, and I've been looking for a way to do it in mailscanner but I'm not getting too far.
I've setup the filter in thunderbird for my own private email and it works great with 0% false positives so far, but I would really like to fine a way to do it server wide without tons of hassle.
I want
subject: contains spam AND from: ends with .download
Pete
Re: any way to block .tlds?
I created the following rule to block all the .TLDS that I don't want to accept in my server, if you use it is at your own risk, I don't accept any responsibilities; on the other hand, it will be great to know if it worked for you:
To use it:
- go to /etc/mail/spamassassin and create a file called "blacklist.cf"
- edit "blacklist.cf" and copy paste the above rules and save
- goto MailScanner and reload
You can add or delete TLDs but double check that you do it on both rules TLDFROM and TLDFROMA.
Sergio
Code: Select all
# start TLDs blocked rule by Sergio
# you use it is at your own risk,
# not responsibilities accepted.
header __FROM_TLDFROM From =~ /\.(bid|book|click|club|cricket|date|democrat|directory|download|faith|help|host|link|ninja|online|party|press|pro|racing|reviews?|rocks|science|site|social|space|stream|top|uno|webcam|website|work|win|xyz)\>/i
header __FROM_TLDFROMA From:address =~ /\.(bid|book|click|club|cricket|date|democrat|directory|download|faith|help|host|link|ninja|online|party|press|pro|racing|reviews?|rocks|science|site|social|space|stream|top|uno|webcam|website|win|work|xyz)$/i
meta FROM_TLD ( __FROM_TLDFROM + __FROM_TLDFROMA >= 1 )
score FROM_TLD 11
describe FROM_TLD Sergio's Forbiden TLDs
# ends TLDs blocked rule
- go to /etc/mail/spamassassin and create a file called "blacklist.cf"
- edit "blacklist.cf" and copy paste the above rules and save
- goto MailScanner and reload
You can add or delete TLDs but double check that you do it on both rules TLDFROM and TLDFROMA.
Sergio
Re: any way to block .tlds?
I love you Sergio