Re: [vchkpw] courier IMAP server authentication failed

2008-03-10 Thread Michael Johnson

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/QuestionsAndAnswers is 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=[:::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=[:::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:47d4d001120502696417240!



Re: [vchkpw] courier IMAP server authentication failed

2008-03-10 Thread Quey

Hi,

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?
 


One I use is  http://qms.ausics.net/dovecot.php

Q





!DSPAM:47d4e361120501584287333!



Re: [vchkpw] courier IMAP server authentication failed

2008-03-09 Thread Quey


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=[:::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=[:::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:47d3ce2d120507419718734!



Re: [vchkpw] courier IMAP server authentication failed

2008-03-09 Thread Zhan Li
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] 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=[:::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=[:::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:47d4bb1e120501908493658!


Re: [vchkpw] courier IMAP server authentication failed

2008-03-09 Thread Michael Johnson

The info at http://wiki.dovecot.org/AuthDatabase/VPopMail is very much a
good start. The info at http://wiki.dovecot.org/QuestionsAndAnswers is 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] 
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=[:::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=[:::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:47d4c108120502870914827!



Re: [vchkpw] courier IMAP server authentication failed

2008-03-09 Thread Zhan Li
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] wrote:

 The info at http://wiki.dovecot.org/AuthDatabase/VPopMail is very much a
 good start. The info at http://wiki.dovecot.org/QuestionsAndAnswers is 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]
  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=[:::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=[:::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:47d4cdc4120508735114486!