Results 1 to 9 of 9
-
09-22-2016, 06:13 AM #1Junior Guru Wannabe
- Join Date
- Nov 2011
- Posts
- 45
How can I block specific domains from sending emails to my site?
I want to block specific domain addresses from sending emails to my website.
I have a lot of spam through China and I don't want to install any filter in fear of losing important emails.
So how can I block these domains? Through .htaccess? Can you give me specific instructions?
Thank you.
-
09-22-2016, 06:38 AM #2Web Hosting Master
- Join Date
- Jun 2002
- Posts
- 1,682
Do you have a dedicated server?
-
09-22-2016, 07:22 AM #3Junior Guru Wannabe
- Join Date
- Nov 2011
- Posts
- 45
Yes. It's Dedicated.
-
09-22-2016, 07:57 AM #4Junior Guru
- Join Date
- Aug 2015
- Posts
- 182
Does it have a control panel installed? Which email server are you using?
-
09-24-2016, 07:21 AM #5Web Hosting Master
- Join Date
- Jun 2002
- Posts
- 1,682
What email software are you using?
Any control panel like CPanel?
-
09-24-2016, 08:22 AM #6The Linux Specialist
- Join Date
- Mar 2003
- Location
- /root
- Posts
- 23,991
Specially 4 U
Reseller Hosting: Boost Your Websites | Fully Managed KVM VPS: 3.20 - 5.00 Ghz, Pure Dedicated Power
JoneSolutions.Com is on the net 24/7 providing stable and reliable web hosting solutions, server management and services since 2001
Debian|Ubuntu|cPanel|DirectAdmin|Enhance|Webuzo|Acronis|Estela|BitNinja|Nginx
-
09-24-2016, 09:06 AM #7Web Hosting Master
- Join Date
- May 2012
- Location
- Linux World
- Posts
- 1,137
You cannot block Emails via a .htaccess rule, however you might be able to do that hacking through your MailServer conf file. Or you may want to install an anti-spam system with very relaxed values, and block the domains only there.
Kevin Cheri : Senior Server Administrator / Freelancer : 13+ years Exp, reach me out for any help
Server Optimization Expert / Mysql Guru / Migration Specialist
Skype : lynxmaestro
Gmail : cheri.kevin@gmail.com
-
09-24-2016, 11:24 AM #8Web Hosting Guru
- Join Date
- Nov 2013
- Posts
- 263
If you have cPanel, you can create filters via Account Level Filtering section to block emails from specific senders. Just set the rule to match the FROM address to the required email address you want to block. Also you can blacklist mails from a sender if you have SpamAssassin enabled / active in your control panel. Just go to Configure SpamAssassin section and enter the email address you want to block in blacklist_from field.
Server Administration Expert
Server Audit | Migration Assistance | Server Hardening
skype: trumanorson
email: trumanorson@gmail.com
-
09-25-2016, 03:15 AM #9Disabled
- Join Date
- Apr 2012
- Location
- United States
- Posts
- 1,249
+1 just to add to this a bit... be sure to use the wild symbol when you do their address, spammers have tons of email address that are just slightly different than the previous one. So if you block spam@emai.com just put it in spam assassin as *@email.com or you can even do *@email.* or *@em*.*
these will block tons of combinations of names, just be sure you do it so that you dont block email from people you actually want, dont make it too wild lol..
Similar Threads
-
How can I prevent an account from sending emails over the limit ? (cPanel)
By TenqHosting in forum Web HostingReplies: 10Last Post: 01-15-2012, 10:45 PM -
How can I block certain people from privmsg me?
By JGRoboMarketing in forum WHT Announcements, Feedback and QuestionsReplies: 6Last Post: 05-28-2009, 05:23 PM -
How can I block a user from coming....
By Paragon in forum Web HostingReplies: 6Last Post: 11-15-2003, 09:40 AM -
How can i block an ip from sending spam to my server
By loadthis in forum Dedicated ServerReplies: 6Last Post: 09-18-2003, 06:33 AM -
Need .htaccess help to block specific domains from subdirectory
By Deb Suran in forum Hosting Security and TechnologyReplies: 12Last Post: 05-02-2002, 08:20 AM