Closed gnh1201 closed 1 year ago
smtprelay is designed as a outgoing SMTP relay but you seem to run it with a public reachable IP address. This is definitely not recommended and will not work properly in most cases!
Don't know what you mean exactly with two-way relay.
Since you authenticate at the upstream SMTP server you risk to get your account blocked because of spam if your smtprelay configuration is not strict enough.
Description
I think that smtprelay is designed for one-way relay. However, when attempting to use it as a two-way relay, the result was receiving a significant amount of spam attacks from attackers. Therefore, I would like to address and improve this issue when using it as a two-way relay.
Suggestion
In my opinion, there is a need to make the following changes to the routines of
conenctionChecker
andrecipientChecker
. It is necessary to validate the recipients first before validating the peer.https://github.com/gnh1201/smtprelay/commit/b4bf72a2ead72cb948e4f9ffcb3b37627774aa0a