Infos:
- Used Zammad version: 5.2.x
- Used Zammad installation type: Sources
- Operating system: CentOS 7
- Browser + version: Firefox 102.0.1, MS Edge Version 101.0.1210.32 (Official build) (64-bit)
Expected behavior:
- When submitting a form, any valid email address is allowed.
Actual behavior:
- Only public service email addresses work (gmail.com, outlook.com, etc…). When using my own web-hosting services email address it will fail the email validation due to an MX check which can’t be properly performed in this scenario. This makes it so my clients can’t start a new ticket when they are using an email address hosted by our web-host-server. It’s worth noting that this worked without any issues on Zammad 5.1.x
Steps to reproduce the behavior:
- Scenario:
-
-
- Web-Host-server is behind NAT (Provides:email, dns, web-site hosting services)
-
-
-
- Zammad 5.2.x Server is behind NAT and also reverse proxied to by the web-host-server
-
-
-
- MX specified by domain in DNS is the Public IP of the system (NOT the local IP of the Web-Host-Server).
-
Create a form in Zammad 5.2.x and host it at a domain on web-host-server. When filling out the form from the domain by using that domain’s email (also hosted on the same server) and clicking submit button the form will place a red box around the email field.
When checking the Console of the browser under “network” you can see in the response header that Zammad 5.2.x has deemed the email address as invalid. After checking on some code I found, this is is due to a recent change in email address validation for Zammad using MX as part of it’s validation.
I really need to know how to disable the MX part of the validation only. I’m not interested in validating MX records for a form anyway. This approach can cause too many issues down the road when changing MX records or with DNS poisoning. Instead it would make more sense to do this check against Zammad’s database of known domains according what’s in it’s Organizations lists.
Anyway, I need to disable this MX check Only so that form tickets can flow again. As of now, no one can submit any tickets and I have been forced to revert back to an older version of Zammad.