• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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