Hi Michael, Add user dovecot resolve the problem.
Thanks a lot!!! Zhan On Mon, Mar 10, 2008 at 5:06 PM, Michael Johnson <[EMAIL PROTECTED]> wrote: > You need to create a user and group for Dovecot to run under. You could > use the vpopmail user, but it is best to be safe and have a unique user > for Dovecot. > > Depending on what you're running, this should be sufficient: > > # groupadd -g 202 dovecot > # useradd -d /dev/null -s /bin/false -u 202 -g 202 dovecot > > Make sure to confirm those IDs are open before running the commands. > > - Michael > > > Zhan Li wrote: > > Thanks Michael! > > > > I have change my conf file and run* devoct* on command line and get the > > following error: > > Error: Login user doesn't exist: dovecot > > Fatal: Invalid configuration in /usr/local/etc/dovecot.conf > > > > any suggestions? > > > > Thanks > > > > zhan > > > > > > > > > > On 3/10/08, *Michael Johnson* <[EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]>> wrote: > > > > The info at http://wiki.dovecot.org/AuthDatabase/VPopMail is very > much a > > good start. The info at http://wiki.dovecot.org/QuestionsAndAnswersis a > > bit old, but also helpful. > > > > The Dovecot example config has vpopmail listed (assuming it was > compiled > > in), so you can use that as well. Just comment the other passdb and > > userdb sections and uncomment the vpopmail ones. > > > > I'm actually working on replacing Courier with Dovecot, but ran into > an > > unrelated issue that needs to be resolved before I can deploy (bug > > concerning mtime updates in JFS in older Linux kernel 2.6 versions). > > > > > > For my config, this is what I'm using (output from dovecot -n): > > > > # 1.0.12: /etc/dovecot.conf > > login_dir: /var/run/dovecot/login > > login_executable: /usr/libexec/dovecot/imap-login > > first_valid_uid: 89 > > last_valid_uid: 89 > > first_valid_gid: 89 > > last_valid_gid: 89 > > mmap_disable: yes > > mail_plugins: quota imap_quota > > auth default: > > mechanisms: plain login > > user: vpopmail > > passdb: > > driver: vpopmail > > userdb: > > driver: vpopmail > > plugin: > > quota: maildir > > > > > > > > - Michael > > > > > > > > Zhan Li wrote: > > > Hi Quey, > > > I searched on internet and mailing list, could not found a sample > of > > > dovecot file for vpopmail. > > > > > > can you please give me a link for a sample conf file? > > > > > > Thanks > > > > > > Zhan > > > > > > > > > > > > On 3/9/08, *Quey* <[EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]>>> > > > wrote: > > > > > > > > > Top posting cause its more appropriate:) > > > > > > Dump courier and use dovecot, the archives show the best > > config many > > > people including myself have posted our configs > > > > > > Zhan Li wrote: > > > > Dear List, > > > > > > > > I have installed netqmail 1.06+latest version of > > > > vpopmail+couier-authlib+imap. > > > > > > > > All compile and installation looks good. I have created > > virtual > > > domain > > > > and email accout by vpopmail command, I have tested to > > send mail > > > to my > > > > virtual account , and my virtual accout recieved mail > without > > > problem. > > > > I just enabled authvchkpw module for authlib, and tested > > virtual > > > > account with authtest utility, and virtual accout is > > successfully > > > > authenticated. > > > > > > > > The pop3 server login is OK. but when I telnet localhost > > 143, ab > > > login > > > > userid passwd, authentication is faild and the error > > message is > > > listed > > > > below: > > > > > > > > Mar 9 19:58:36 mail authdaemond: stopping authdaemond > > children > > > > Mar 9 19:58:51 mail authdaemond: modules="authvchkpw", > > daemons=5 > > > > Mar 9 19:58:51 mail authdaemond: Installing libauthvchkpw > > > > Mar 9 19:58:51 mail authdaemond: Installation complete: > > authvchkpw > > > > Mar 9 20:01:10 mail imapd: Connection, > > ip=[::ffff:127.0.0.1 <http://127.0.0.1> > > > <http://127.0.0.1> > > > > <http://127.0.0.1>] > > > > Mar 9 20:01:15 mail imapd: authdaemon: s_connect() > failed: > > > Connection > > > > refused > > > > Mar 9 20:01:15 mail imapd: [Hint: perhaps authdaemond is > not > > > running?] > > > > Mar 9 20:01:15 mail imapd: LOGIN FAILED, user=xxx, > > > > ip=[::ffff:127.0.0.1 <http://127.0.0.1> <http://127.0.0.1> > > <http://127.0.0.1>] > > > > Mar 9 20:01:15 mail imapd: authentication error: > > Connection refused > > > > > > > > I am sure the authdaemond is started. > > > > > > > > Any suggestion? > > > > > > > > Thanks > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > !DSPAM:47d4f99f120502593835458!
