mhale / smtpd

An SMTP server package written in Go, in the style of the built-in HTTP server.
The Unlicense
397 stars 92 forks source link

Make reverse DNS lookups configurable #41

Closed axllent closed 5 months ago

axllent commented 6 months ago

This PR adds the configuration option to disable reverse DNS lookups (rDNS) as discussed in #40 and axllent/mailpit.

There were two options when writing the message header, one was to leave the hostname blank (some SMTP servers seem to do this), and the other was to use "unknown" as most seem to do - I went with the hardcoded "unknown". You may or may not agree with the option name (DisableReverseDNS), so if you need any changes then please just let me know.

Thanks!

mhale commented 5 months ago

This is merged. Thanks for the PR!