Check if domain exists #2092
sinnbeck
started this conversation in
Feature suggestions
Replies: 2 comments 1 reply
-
The same problem occurs on domains that exists but does not have an MX record. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can see how this is handled here postal/lib/postal/smtp_sender.rb Line 158 in 2e7aaab I imagine it would be difficult to tell the difference between "this domain does not exist" and "this domain is having a temporary DNS failure" without adding extra code so if you are unable to trust your users to enter correct domain details then you should probably include some extra validation in your system. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Unsure if this is already built in and I simply am unaware. Let's say a user sends to a non-existent domain. I would assume this would give an instant permanent fail. Instead it just gives a soft-fail and tries to send again several times. And when it finally fails, it will just report that it tried to many times. A "550 Domain not found" error would in this instance be better
I tested sending to [email protected] which i am certain does not exist :)
If I send to this address using gmail or similar mail providers, it will give an instant permanent fail due to the domain not existing.
Beta Was this translation helpful? Give feedback.
All reactions