[vPostMaster] Can't authenticate w/ IMAP
Scott Kleihege
scott-dpkg at tummy.com
Tue Jun 24 19:53:08 MDT 2008
On Mon, Jun 23, 2008 at 02:35:45PM -0700, Sherman Boyd wrote:
>Thanks Scott. It's not a client side issue, I get the same problems
>with Thunderbird. I'm pretty sure my Dovecot install is a little
>broken, the restart script fails, and /etc/init.d/dovecot start and
>stop work, but silently with no output on the terminal.
On Hardy, your dovecot.conf should look something like the following, with
the additional lines for the SSL certificate:
-----------------------------------------------------------
# vPostMaster Configuration
protocol imap {
}
protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
}
auth default {
mechanisms = plain
passdb sql {
args = /etc/dovecot/dovecot-vpostmaster.conf
}
userdb sql {
args = /etc/dovecot/dovecot-vpostmaster.conf
}
user = root
}
default_mail_env = maildir:~/Maildir/
first_valid_uid = 100
protocols = imap imaps pop3 pop3s
-----------------------------------------------------------
and your dovecot-vpostmaster.conf should be something like the following,
with your system's password instead of "XXXXXXXX":
-----------------------------------------------------------
driver = pgsql
connect = host=localhost dbname=vpostmaster user=imapserver password=XXXXXXXX
default_pass_scheme = CRYPT
password_query = SELECT users.cryptedpasswd AS password FROM users WHERE users.name = '%n' AND users.domainsname = '%d' AND users.active = 't' AND (SELECT active FROM domains WHERE name = '%d') = 't'
user_query = SELECT userdir AS home, 1001 AS uid, 1001 AS gid FROM users WHERE users.name = '%n' AND users.domainsname = '%d' AND users.active = 't' AND (SELECT active FROM domains WHERE name = '%d') = 't'
-----------------------------------------------------------
--
Regards, tummy.com, ltd
Scott Kleihege Linux Consulting since 1995
http://www.tummy.com/
More information about the vPostMaster
mailing list