Topic: How to allow certain IPs to connect to server?
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Ubuntu 16.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
Im relaying incoming message from another server to this server and i created a new port 5011 for it while closing port 25 since i wont be reveiving mail from another server.
So in /etc/default/iptables i did:
-A INPUT -p tcp --dport 25 -j DROP
-A INPUT -p tcp --dport 5011 -j ACCEPT
How do i make it so that i can restrict 5011 port to only ACCEPT from certain IPs?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.