PDA

View Full Version : Dovecot several problems



baggs1981
06-30-2007, 06:36 AM
Hi all..
I have a couple of DA servers.
On a brand new install I took the plunge and tried to convert to dovecot:


71 cd /usr/local/directadmin/customapache
72 ./build update
73 ./build update_dovecot
74 ./build dovecot
75 /sbin/service dovecot restart


I had a problem where it wouldn't load but resolved that via /etc/xinetd.d/imap and changing line to say disabled.

but now, even though it loads and is in pstree (now /var/log/maillog is completely empty even if ~I restart dovecot)

I can log in as admin which was there before converting and can send emails but can not receive them.

Created a new account after test@ and this can't even log in to webmail etc, just gives login error.

Please help as I understand there is no way back other then starting again and really don't want to have to do that as dovecot appears to give benefits (when it works:))

baggs1981
06-30-2007, 08:30 AM
Ok, getting somewhere I think, rebooted server and now in the log file when I try webmail (either squirell or uebimiau) I can't get authenticated:


Jun 30 16:22:50 serv01 dovecot[6707]: auth(default): passwd-file /etc/virtual/batteryserver.net/passwd: User test is missing userdb info
Jun 30 16:22:50 serv01 dovecot[6707]: Logins with UID 0 not permitted (user test@batteryserver.net)
Jun 30 16:22:50 serv01 dovecot[6707]: imap-login: Internal login failure: user=<test@batteryserver.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

gona try a few different tests and will let you know

nobaloney
07-05-2007, 02:26 PM
How did you create user test?

Jeff

baggs1981
07-06-2007, 01:28 PM
Via directadmin control panel

baggs1981
07-06-2007, 02:13 PM
BTW I am also now getting


Logins with UID 0 not permitted

errors for all users that already had accounts on the server, this is via any webmail and outlook.

skruf
07-06-2007, 02:31 PM
Hey,

Try restarting DirectAdmin.... If I remember right, I believe you get that error if DA did not pick up the change to Dovecot.

David

baggs1981
07-06-2007, 02:40 PM
Thanks, but sorry I tried that, saw it on another thread and added the below to directadmin.conf


dovecot=1

DirectAdmin Support
07-06-2007, 03:07 PM
Hello,

the UID 0 is stored in the /etc/virtual/domain.com/passwd file.
Check that file. The UID/GID will be the 3rd and 4th columns, colon separated.

If it's 0, that's bad... check your /etc/passwd to check the UID/GID (same format) of the DA user you've created. If it's zero, then he has root access, which isn't allowed for most applications.

John

baggs1981
07-07-2007, 01:23 AM
Nope, in /etc/passwd all users created before and after changing to dovecot have uid's over 100 as expected. and in the domian passwd files again none have 0 as the uid.

Whats next?

baggs1981
07-07-2007, 01:25 AM
Hold on, exmple:


richard:$1$isAGWeHE$iTNdMHmut5Em9S7kun3EI0


I think this is wrong as can't see a uid in the line? this is taken from a passwd file from a domain directory (not /etc/).

Why would this occur?

kke
07-07-2007, 09:32 AM
you missing ./build todovecot

baggs1981
08-21-2007, 01:45 AM
Thanks that worked, I wonder why that is not a step on the dovecot howto install.

Only problem is that it seems I have to keep doing this for email to get delivered?

nobaloney
08-21-2007, 07:24 PM
It should only need to be done once as part of the conversion process. After that DirectAdmi should manage all new accounts.

Jeff