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

Add resolver option similar to mailauth resolver option #177

Open
titanism opened this issue May 20, 2022 · 1 comment
Open

Add resolver option similar to mailauth resolver option #177

titanism opened this issue May 20, 2022 · 1 comment

Comments

@titanism
Copy link
Contributor

Right now it's not possible to pass a custom resolver function to resolve hostname lookup.

dns.reverse(this.remoteAddress.toString(), (...args) => {

The package mailauth supports a resolver option, and it would be helpful to have this across the entire smtp-server stack for DNS queries.

Thanks!

@titanism
Copy link
Contributor Author

Also, you may want to catch the error code instead for dns.reverse errors thrown, e.g. https://github.com/omrilotan/reverse-dns-lookup/blob/main/index.js#L40.

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

No branches or pull requests

1 participant