linux:dovecot-sql.conf

driver = pgsql

connect = host=localhost port=5433 dbname=authdb user=poczta password=poczta1

default_pass_scheme = PLAIN

password_query = select password from account where username = '%u'

user_query = select 109 as uid, 110 as gid, maildir as home from account where username = '%u'