• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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