1

Topic: check MX

======== Required information ====
- iRedMail version (check /etc/iredmail-release):  0.9.5-1
- Linux/BSD distribution name and version:  centos 7
- 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:


We have issues with local delivery. Let’s say that we have customer that has domain in our mail system. When this user change MX records or transfer domain using registrar panel this domain remains in our system. When another client tries to email message to that user  - message is delivered locally instead of remote transport. Does iRedMail have any protection against that? Maybe there is some way to query DNS for correct MX? Could you please suggest any solution/workaround for this issue?

----

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

2

Re: check MX

Postfix will check whether recipient domain is hosted on localhost, if yes, it will deliver the email locally.
if you already switched the mail domain to another server, why not remove this domain on your server?

3

Re: check MX

ZhangHuangbin wrote:

Postfix will check whether recipient domain is hosted on localhost, if yes, it will deliver the email locally.
if you already switched the mail domain to another server, why not remove this domain on your server?

Yes, but client can change this without notifying us. Actually many of them are moving their domains away using their registrar panels so the domain remains on the server. This is why we need some kind of additional verification mechanism.

4

Re: check MX

Updating MX without updating mail server, i have no idea how to make it work. In this case, seems you're always falling behind. You must tell your client that they cannot do it this way.

5

Re: check MX

Maybe something like cron to re-check domain and change active=1 to 0

6

Re: check MX

fisher006 wrote:

Maybe something like cron to re-check domain and change active=1 to 0

Not a good idea. You must tell your client that they cannot do it this way.

7

Re: check MX

Yes but in my opinion this is hole in the system - client Can add domain gmail.com and other people have problem because postfix want delivery gmail messages localy

8

Re: check MX

This is not a problem on iredmail, same thing happens with any mail server if you just change mx settings without deleting domain or at least relay it to current server. It's domain owners responsibility to take care of these things.