• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

How Do I Block Email From All Except Localhost?

S

Superman859

Guest
I have one email address set up for a domain that I would like to only accept localhost mail on. It receives some spam, and I only use it for administrative purposes of the domain and personal notifications of events that occur, so there is no need for that email address to even receive mail from other mail servers.

Is this possible to configure in Plesk?
 
Sure you can do it with firewall rules. Either disable the smtp one from the firewall policy manage in plesk, or if you want to do it from the command line:


iptables -I INPUT -i eth0 -p tcp --dport 25 -j DROP
 
Well, that certainly would block email from other mail servers. However, I have lots of email addresses that I would like to continue receiving email from other servers. There are several domains on the server, and several email addresses with each domain. There is only one email address associated with a specific domain that I want to block incoming email on. I would like to be able to only allow incoming mail from whitelisted addresses for that one email address, while leaving the other addresses unaffected.
 
Back
Top