By the way I did some test. I removed cram-md5 from auth_mechanisms line
and I uncommented default lines in passdb block and also left uncommented
two lines added by me like below:
auth_mechanisms = plain login

passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
   driver = passwd-file
   args = scheme=cram-md5 /etc/dovecot/cram-md5.pwd
}

I can send emails but I have no idea which setting is used - these two
lines:
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql

or these
   driver = passwd-file
   args = scheme=cram-md5 /etc/dovecot/cram-md5.pwd

2017-02-23 8:17 GMT+01:00 Dominic Raferd <domi...@timedicer.co.uk>:

> 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.
>



-- 

*Pozdrawiam / Best Regards*
*Piotr Bracha*




*tel. 534 555 877*

*ser...@poliman.pl <ser...@poliman.pl>*

Reply via email to