Topic: How to prohibit connections from IP address?
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? Downloadable installer
- Linux/BSD distribution name and version: Debian 9.8.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi, in /var/log/mail.log I see attempts from IP's 37.49.230.118 and 37.49.230.131 to connect to our server:
postfix/submission/smtpd[23641]: connect from unknown [37.49.230.118]
postfix/submission/smtpd[23641]: disconnect from unknown[37.49.230.118] ehlo=1 auth=0/1 rset=0/1 quit=1 command=2/4
postfix/submission/smtpd[23641]: connect from unknown [37.49.230.131]
postfix/submission/smtpd[23641]: disconnect from unknown[37.49.230.131] ehlo=1 auth=0/1 rset=0/1 quit=1 command=2/4
postfix/submission/smtpd[23731]: connect from unknown [37.49.230.118]
postfix/submission/smtpd[23731]: disconnect from unknown[37.49.230.118] ehlo=1 auth=0/1 rset=0/1 quit=1 command=2/4
postfix/submission/smtpd[23731]: connect from unknown [37.49.230.131]
postfix/submission/smtpd[23731]: disconnect from unknown[37.49.230.131] ehlo=1 auth=0/1 rset=0/1 quit=1 command=2/4
postfix/submission/smtpd[23803]: connect from unknown [37.49.230.131]
postfix/submission/smtpd[23803]: disconnect from unknown[37.49.230.131] ehlo=1 auth=0/1 rset=0/1 quit=1 command=2/4
postfix/submission/smtpd[23803]: connect from unknown [37.49.230.118]
postfix/submission/smtpd[23803]: disconnect from unknown[37.49.230.118] ehlo=1 auth=0/1 rset=0/1 quit=1 command=2/4
postfix/submission/smtpd[23803]: connect from unknown [37.49.230.131]
postfix/submission/smtpd[23803]: disconnect from unknown[37.49.230.131] ehlo=1 auth=0/1 rset=0/1 quit=1 command=2/4
I added 37.49.230.118 and 37.49.230.131 to blacklist
python wblist_admin.py --add --blacklist 37.49.230.118
python wblist_admin.py --add --blacklist 37.49.230.131
Restart iRedAPD
service iredapd restart
But I still see how they trying to connect. Is there any way to prohibit connections from these IP's?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.