1

Topic: Block a particular relay host

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  0.9.9
- Deployed with iRedMail Easy or the downloadable installer? No
- Linux/BSD distribution name and version:  CentOS 7.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  PGSQL v9.2
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes, 3.1
====

I want to block a particular relay host so that any mail sent to any domain or received which corresponds to that specific relay host gets immediately rejected.

2

Re: Block a particular relay host

- block it in iptables firewall?
- blacklist it globally with iRedAdmin-Pro?

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

3

Re: Block a particular relay host

ZhangHuangbin wrote:

- block it in iptables firewall?
- blacklist it globally with iRedAdmin-Pro?

Actually, under iRedAdmin-Pro, I have made blacklist entries for those relay host and reverse DNS names, but they are not effective as the relay host is the that corresponds to smtp relay of malicious host while the domain name is different.

Shall it work with Firewalld (CentOS 7.6) ?

4

Re: Block a particular relay host

Sure you can block them with firewall, it will save more system resource since firewall is the first entry for an email to enter your system.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee