Unable to enable smtp login authentication mechanism

Hello, I need to enable SMTP login authentication mechanism, however when I try adding it to the following file, nothing happens and login authentication mechanism does not get enabled. the only method enabled is plain. tried restarting dovecot and rebooting the server after changing it

/etc/dovecot/conf.d/10-auth.conf
auth_mechanisms = plain login

by default smtp is enabled what issue you are facing while connecting?

SMTP is enabled and working, however only the plain authentication mechanism is enabled by default. I am needing the login authentication mechanism

Solved it.

Added the following line:

auth_mechanisms = plain login

to the file

/etc/dovecot/dovecot.conf

restarted the dovecot service, and now my Synology NAS can send email notifications