On 23 February 2017 at 07:01, Poliman - Serwis <ser...@poliman.pl> wrote: > ... > All worked fine. Then I added in dovecot.conf file: > auth_mechanisms = plain login cram-md5 #added cram-md5 > > passdb { > #args = /etc/dovecot/dovecot-sql.conf > #driver = sql > driver = passwd-file > args = scheme=cram-md5 /etc/dovecot/cram-md5.pwd > } > > In passdb block commented out default lines and add two (I can put whole > dovecot config). All things still worked fine. Then - in dovecot.conf file I > changed back setting to default. After this I can't send emails. In log I > have: > Feb 23 06:46:49 vps301 postfix/smtps/smtpd[24919]: fatal: no SASL > authentication mechanisms > Feb 23 06:47:50 vps301 postfix/smtps/smtpd[24942]: fatal: no SASL > authentication mechanisms
I suspect it is not permitted to have # comments in dovecot conf files except on a line of their own, though I admit I can't find this documented. Try removing '#added cram-md5' or putting it on a line of its own.