[Dovecot] Dovecot cannot connect to PostgreSQL server

Joseph Tam jtam.home at gmail.com
Sun Apr 27 23:07:29 UTC 2014


Chris Vaas writes:

>> psql -U mailreader mail
>>
>> I provided all necessary information to dovecot via this configuration
>> snippet:
>>
>> driver = pgsql
>> connect = host=localhost dbname=mail user=mailreader password=secret
>> default_pass_scheme = SHA512

...

> I set the host to 127.0.0.1 now. And my pg_hba.conf looks like that:
>
> # TYPE  DATABASE        USER            ADDRESS                 METHOD
> # Mail stuff
> host    mail            mailreader      127.0.0.1/32            md5

Shouldn't the last column here match your "default_pass_scheme" above?
Maybe change "default_pass_scheme" to "md5-crypt" or "md5"?

Joseph Tam <jtam.home at gmail.com>


More information about the dovecot mailing list