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

Added sorting of found MX records by priority. #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dusnm
Copy link

@dusnm dusnm commented Sep 14, 2022

Signed-off-by: Dušan Mitrović [email protected]

I noticed that dns.resolveMx would sometimes return MX records unsorted by priority.
This pull request ensures that the MX record that gets chosen has the highest priority.
Unfortunately I have no way to test this as I don't have access to DKIM keys.
I doubt there will be problems since this is a simple change.

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

Successfully merging this pull request may close these issues.

1 participant