Skip to content
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

Sometimes postal sent email to A record insted of MX #2833

Closed
aledavidgueva opened this issue Mar 1, 2024 · 1 comment · Fixed by #2840
Closed

Sometimes postal sent email to A record insted of MX #2833

aledavidgueva opened this issue Mar 1, 2024 · 1 comment · Fixed by #2840
Labels

Comments

@aledavidgueva
Copy link

Describe the bug

Sometimes postal sent email to A record insted of MX. This behavior is random.

For example:

To: moranieva@sanvicenteescobar.edu.ar
Error Permanent SMTP delivery error when sending to sanvicenteescobar.edu.ar (44.198.246.147). The IP isn't the mail server, is the IP of domain.
image

The MX records are:
image

Then, if i try redeliver manually, works
image

Expected behaviour

If DNS query fail for MX records, mark as soft fail and retry later.

Environment details

  • OS: Debian
  • Postal version: 2.3.0
@adamcooke
Copy link
Contributor

Thanks for the bug report. I can see how this might happen if looking up the MX records is slower than the configured DNS timeout. When it times out, we assume there are no MX records and move on to looking up based on the A record instead.

I will have a think about how this can be resolved.

@adamcooke adamcooke added the bug label Mar 1, 2024
adamcooke added a commit that referenced this issue Mar 1, 2024
This avoids potentially sending mail to the A record when an MX query times out.

closes #2833
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants