1

Topic: iRedMail on semi permanent IP

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.3
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: Ubuntu 22.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
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
I have iRedMail installed on a server with a semi permanent IP - we do not have it permanently assigned to us but lease times are in excess of 24 months.
Unfortunately I cannot change PTR / reverse dns for this IP.

How can I work around this? - IP is XXX.YYY.200.183 and c200-183.ispname.com

I have my own external DNS / bind9 server hosted elsewhere and I can make any necessary changes.

Current MX records:

; A records for mail servers
domain.com.  IN      MX      10      mail

; Other A records
mail    IN      A       XXX.YYY.200.183

on server:

root@mail:/var/log# hostname
mail

root@mail:/var/log# cat /etc/hosts
127.0.0.1 mail.domain.com mail localhost
127.0.1.1 mail

Sending to Gmail works, but some other servers refuse to receive:

Jun 10 12:09:37 mail postfix/smtp[34518]: 4QdBnF4xMfz27fK: host mx01.gmx.net[212.227.17.4] refused to talk to me: 554-gmx.net (mxgmx107) Nemesis ESMTP Service not available 554-No SMTP service 554-Bad DNS PTR resource record. 554 For explanation visit https://www.gmx.net/mail/senderguidelin … amp;c=rdns

Jun 10 12:09:37 mail postfix/smtp[34518]: 4QdBnF4xMfz27fK: to=<ADDRESS@gmx.com>, relay=mx00.gmx.net[212.227.15.10]:25, delay=50848, delays=50848/0.06/0.25/0, dsn=4.0.0, status=deferred (host mx00.gmx.net[212.227.15.10] refused to talk to me: 554-gmx.net (mxgmx008) Nemesis ESMTP Service not available 554-No SMTP service 554-Bad DNS PTR resource record. 554 For explanation visit https://www.gmx.net/mail/senderguidelin … mp;c=rdns)

The link only gives a brief description that issue is caused by wrong reverse DNS.

Thank you!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iRedMail on semi permanent IP

Exactly, iredmail aswell refuses static mail servers, so there is no workaround for this.
You need a dedicated server with a static IP where you are able to set correct PTR, your solution won't work

3 (edited by andrzej 2023-06-11 01:55:53)

Re: iRedMail on semi permanent IP

How about if I change the hostname of iRedMail server to c200-183.ispname.com ?

I am ok with that as I have a revere proxy in front.

4

Re: iRedMail on semi permanent IP

that won't work, it is still recognized as dynamic ip

if you want to run a mailserver, do it on a dedicated VPS