Re: [Dovecot] Dovecot cannot connect to PostgreSQL server
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@gmail.com
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@gmail.com
Should not. These are two different things.
participants (2)
-
Jiri Bourek
-
Joseph Tam