Per https://serverfault.com/questions/1073807/how-to-prevent-unauthorized-ma...
saslpasswd2 root
and per https://serverfault.com/questions/1075116/how-to-prevent-sasl-username-r...
Additionally, consider setting
smtpd_sasl_auth_enable = noinmain.cfand removing the firstsmtpd_sasl_auth_enable=yesup in yourmaster.cf. Authentication is typically only desirable for services meant for submission (the line starting smtps inet and optionally submission inet), so it should be enabled only for one or two such services viamaster.cf. This would break clients that use port 25 to submit authenticated mail - but such clients configuration probably need review anyway if you are changing configuration.
- Log in to post comments