-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ESERVFAIL crash on timeout NS #90
Conversation
Pull Request Test Coverage Report for Build 9362569134Details
💛 - Coveralls |
This doesn't fix the issue. The two DNS errors that are "non-fatal" essentially mean, "try again but do an A query instead of MX", which will may resolve to an implicit MX. In the case of a SERVFAIL, that's almost certainly going to fail as well (which it does): ❯ drill kamenoprumysl.cz MX
;; ->>HEADER<<- opcode: QUERY, rcode: SERVFAIL, id: 60612
;; flags: qr rd ra ; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;; kamenoprumysl.cz. IN MX
;; ANSWER SECTION:
;; AUTHORITY SECTION:
;; ADDITIONAL SECTION:
;; Query time: 1858 msec
;; WHEN: Tue Jun 4 09:14:51 2024
;; MSG SIZE rcvd: 34 and then... ❯ drill kamenoprumysl.cz A
;; ->>HEADER<<- opcode: QUERY, rcode: SERVFAIL, id: 32247
;; flags: qr rd ra ; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;; kamenoprumysl.cz. IN A
;; ANSWER SECTION:
;; AUTHORITY SECTION:
;; ADDITIONAL SECTION:
;; Query time: 4315 msec
;; WHEN: Tue Jun 4 09:14:58 2024
;; MSG SIZE rcvd: 34 |
I don't really understand why, but it doesn't crash anymore, even a bounce with the message "Error: Nowhere to deliver mail to for domain: kamenoprumysl.cz" is generated :) So there must be a place where err leaks and backtrace does not help. Hmm |
I expect it's because your DNS server has cached the MX lookup failure, so the subsequent A query fails faster.
I'm assuming that you don't have any get_mx hook returning for |
Could be the reason that error handling should not use the class's functions, e.g. logging?
Sometimes I really don't like javascript, it makes me feel like I'm not intelligent enough. |
closing in favour of haraka/Haraka#3376 |
I know that feeling. But it's mostly that older/legacy JS has an abundance of rough edges. I find writing newer JS to be less onerous. |
No description provided.