Re: [Dovecot] Authentication problem - or is it?

2007-08-09 Thread Timo Sirainen
On Wed, 2007-08-08 at 19:45 +0100, Anne Wilson wrote:
>   userdb /etc/passwd {
>   }

userdb passwd {
}



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Authentication problem - or is it?

2007-08-09 Thread Anne Wilson
On Wednesday 08 Aug 2007, you wrote:
> On Wednesday 08 Aug 2007, you wrote:
> > On Wed, 2007-08-08 at 21:19 +0100, Anne Wilson wrote:
> > > On Wednesday 08 Aug 2007, you wrote:
> > > > On Wed, 2007-08-08 at 19:45 +0100, Anne Wilson wrote:
> > > > > dovecot: Aug 08 18:50:11 Error: IMAP(anne): Ambiguous mail location
> > > > > setting, don't know what to do with it: /home/anne/Maildir (try
> > > > > prefixing it with mbox: or maildir:)
> > > >
> > > > ..
> > > >
> > > > > I tried adding maildir:, but it made no difference.
> > > >
> > > > That should fix it. Did you forget to restart Dovecot? Or did you
> > > > check if the error message had changed?
> > >
> > > You're right, of course - I had forgotten to restart.  However, now I
> > > have
> > >
> > > telnet localhost 143
> > > Trying 127.0.0.1...
> > > telnet: connect to address 127.0.0.1: Connection refused
> > > telnet: Unable to connect to remote host: Connection refused
> >
> > That means Dovecot didn't start. It most likely wrote an error message
> > to logs.
>
> [EMAIL PROTECTED] program]# service dovecot status
> dovecot dead but subsys locked
>
> Hmm -
>
> dovecot: Aug 08 21:15:47 Warning: Killed with signal 15
> dovecot: Aug 08 21:15:51 Error: Auth process died too early - shutting down
> dovecot: Aug 08 21:15:51 Error: auth(default): Unknown userdb
> driver '/etc/passwd' (typo, or Dovecot was built without support for it?
> Check with dovecot --build-options)
> dovecot: Aug 08 21:15:51 Error: child 30279 (auth) returned error 89
>
> It's 10pm here, and I've wrestled with this most of the day.  I'll be back
> to it in the morning, but I'm really tired now, and the brain is seizing
> up. :-) Any help you can give, I'll follow it up and report back.  Thanks
>
OK - I did the check, which returned

dovecot --build-options
Build options: ioloop=poll notify=inotify ipv6 openssl
SQL drivers: mysql
Passdb: checkpassword pam passwd passwd-file shadow sql
Userdb: checkpassword passwd prefetch passwd-file sql static

so it has to be my config file.  I'll try again to read up on this, but I'll 
be glad of any help available.

Anne


pgpPTrikbt8kD.pgp
Description: PGP signature


Re: [Dovecot] Authentication problem - or is it?

2007-08-09 Thread Anne Wilson
On Wednesday 08 Aug 2007, you wrote:
> On Wed, 2007-08-08 at 21:19 +0100, Anne Wilson wrote:
> > On Wednesday 08 Aug 2007, you wrote:
> > > On Wed, 2007-08-08 at 19:45 +0100, Anne Wilson wrote:
> > > > dovecot: Aug 08 18:50:11 Error: IMAP(anne): Ambiguous mail location
> > > > setting, don't know what to do with it: /home/anne/Maildir (try
> > > > prefixing it with mbox: or maildir:)
> > >
> > > ..
> > >
> > > > I tried adding maildir:, but it made no difference.
> > >
> > > That should fix it. Did you forget to restart Dovecot? Or did you check
> > > if the error message had changed?
> >
> > You're right, of course - I had forgotten to restart.  However, now I
> > have
> >
> > telnet localhost 143
> > Trying 127.0.0.1...
> > telnet: connect to address 127.0.0.1: Connection refused
> > telnet: Unable to connect to remote host: Connection refused
>
> That means Dovecot didn't start. It most likely wrote an error message
> to logs.

[EMAIL PROTECTED] program]# service dovecot status
dovecot dead but subsys locked

Hmm -

dovecot: Aug 08 21:15:47 Warning: Killed with signal 15
dovecot: Aug 08 21:15:51 Error: Auth process died too early - shutting down
dovecot: Aug 08 21:15:51 Error: auth(default): Unknown userdb 
driver '/etc/passwd' (typo, or Dovecot was built without support for it? 
Check with dovecot --build-options)
dovecot: Aug 08 21:15:51 Error: child 30279 (auth) returned error 89

It's 10pm here, and I've wrestled with this most of the day.  I'll be back to 
it in the morning, but I'm really tired now, and the brain is seizing up. :-)
 Any help you can give, I'll follow it up and report back.  Thanks

Anne



pgpdGb1F6y2Bu.pgp
Description: PGP signature


Re: [Dovecot] Authentication problem - or is it?

2007-08-08 Thread Timo Sirainen
On Wed, 2007-08-08 at 19:45 +0100, Anne Wilson wrote:
> dovecot: Aug 08 18:50:11 Error: IMAP(anne): Ambiguous mail location setting, 
> don't know what to do with it: /home/anne/Maildir (try prefixing it with 
> mbox: or maildir:)
..
> I tried adding maildir:, but it made no difference.

That should fix it. Did you forget to restart Dovecot? Or did you check
if the error message had changed?



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Authentication problem - or is it?

2007-08-08 Thread Anne Wilson
On Wednesday 08 Aug 2007, Charles Marcus wrote:
> Hi Anne,
>
> Doubt if you're going to get much help with what little info you
> provided...
>
I didn't want to send reams that may be irrelevant, as I'm unsure where to 
start looking.  If it's not authentication, I haven't a clue.

> Exact version?
>
dovecot-1.0.rc26-1.1mdv2007.1

> Dovecot -n output?
>
dovecot -n
# /etc/dovecot.conf
base_dir: /var/run/dovecot/
log_path: /var/log/mail/mail
info_log_path: /var/log/mail/mail.info
protocols: imap
ssl_disable: yes
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
mail_extra_groups: mail
mail_location: ~/Maildir/
maildir_copy_with_hardlinks: yes
auth default:
  passdb:
driver: pam
  userdb:
driver: /etc/passwd

> Pertinent logs?

dovecot: Aug 08 18:50:11 Error: IMAP(anne): Ambiguous mail location setting, 
don't know what to do with it: /home/anne/Maildir (try prefixing it with 
mbox: or maildir:)
dovecot: Aug 08 18:50:11 Error: IMAP(anne): Failed to create storage with 
data: /home/anne/Maildir
dovecot: Aug 08 18:50:11 Error: child 25910 (imap) returned error 89

I tried adding maildir:, but it made no difference.  Here is my dovecot.conf 
with all the comment lines stripped out:

base_dir = /var/run/dovecot/
protocols = imap
disable_plaintext_auth = no
log_path = /var/log/mail/mail
info_log_path = /var/log/mail/mail.info
ssl_disable = yes
login_dir = /var/run/dovecot/login
login_user = dovecot
mail_location = maildir:~/Maildir/
mail_extra_groups = mail
maildir_copy_with_hardlinks = yes
protocol imap {
  login_executable = /usr/lib/dovecot/imap-login
}
protocol pop3 {
}
protocol lda {
  postmaster_address = [EMAIL PROTECTED]
}
auth_executable = /usr/lib/dovecot/dovecot-auth
auth default {
  mechanisms = plain
  passdb pam {
  }
  userdb /etc/passwd {
  }

Anne


pgpGp32DghNfY.pgp
Description: PGP signature


Re: [Dovecot] Authentication problem - or is it?

2007-08-08 Thread Charles Marcus

Hi Anne,

Doubt if you're going to get much help with what little info you provided...

Exact version?

Dovecot -n output?

Pertinent logs?

--

Best regards,

Charles


[Dovecot] Authentication problem - or is it?

2007-08-08 Thread Anne Wilson
My old server ran v.0.99, and this is the first time I've tried to get v.1 
running.  When I try to test it with telnet I see

telnet localhost 143
Trying 127.0.0.1...
Connected to david.lydgate.lan (127.0.0.1).
Escape character is '^]'.
* OK Dovecot ready.
x login anne xx
x OK Logged in.
Connection closed by foreign host.

I assumed it was an authentication problem (I want to use /etc/passwd as the 
authentication file) but it does say that I managed to log in.  If so, what 
could be causing it to close immediately?

Anne


pgpujs46BSLZX.pgp
Description: PGP signature