Hello,

I'd like to change somehow the config to let authenticated users only
use my OpenSMPTD as a relay. Authentication should be based on the
machine's local user and password table (/etc/passwd).

I tried "listen on ... auth ..." but it complained about the lack of
TLS/smtps.

That is because you can't use authentication without encryption. Best you start looking into Let’s Encrypt. Though you could start with a self-signed certificate. Like it is shown in man smtpd.conf


accept from any for ! domain 486.hu relay via
tls+auth://t-onl...@mail.t-online.hu auth <cred>

accept from local for any relay via \
        tls+auth://t-onl...@mail.t-online.hu auth <cred>


That should stop the visitors for now.

--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org

Reply via email to