PDA

View Full Version : Squirrelmail / Imap problem



crawl
02-22-2004, 12:33 AM
Hi,

I just installed my first copy of DA on a FreeBSD 5.1 machine, and everything is working great except imap. When I try to login using squirrelmail I recieve a failed login screen, and the following is in /var/log/maillog:

Feb 22 02:28:59 srv4 imapd[1022]: Command stream end of file, while reading line user=webmaster@xxxxxxxx.com host=localhost [127.0.0.1]

Things I've tried:

/usr/local/directadmin/scripts/imapd.sh (didn't seem to do anything)

/usr/local/directadmin/scripts/squirrelmail.sh

Doublechecked squirrelmails config for localhost, port 143, and imap server = uw

deinstalled and installed imap-uw from ports, using make WITH_SSL_AND_PLAINTEXT=true install clean

made sure inetd was running by adding inetd_enable="YES" to rc.conf

made sure imap4 line was in inetd.conf

added an imapd file in /etc/pam.d with the following:

imap auth required pam_unix.so
imap account required pam_unix.so

When I attempt to login using squirremail I can see imapd loads, so I know it's up and running. I just can't figure out why it's refusing the login.

UebiMiau works fine, so I know it's an imap problem of some sort.

I'm stumped at this point!

Thanks

existenz
02-22-2004, 08:38 AM
This should probably be in the FreeBSD 5.x forum...

Just make sure you are using user@domain.tdl as the username. If you don't get any other error messages, I would do the following:

Try going to /var/www/html and removing squirrelmail and squirrelmail-1.4.2.

Then going to:

/usr/local/directadmin/scripts/ and run squirrelmail.sh

crawl
02-22-2004, 10:46 AM
Ok, I tried that with the same results using the default server software setting in squirrelmail of other and changing it to uw.

I can log in using the system account (no @domain.com), but the virtual accounts aren't working.

Thanks

existenz
02-22-2004, 12:18 PM
Have you been able to use a email client software to make sure that accounts works in IMAP?

Sorry I said to reinstall I forgot that the UebiMiau webmail client uses POP. If you can pop it would sound like IMAP is not working properly.

DirectAdmin Support
02-22-2004, 11:04 PM
Hello,

If you had another /usr/sbin/imapd binary, DA wouldn't have copied it's own.. so just delete that file, then run the imapd.sh script again. (Only ours supports virtual email addresses)

Be sure to check the /var/log/maillog to see what it's up to.

John

crawl
02-23-2004, 02:19 AM
I got it working by really going thru the system and manually removing the bits and pieces left from the other imap servers I had installed from ports, and then running the DA script. I can't say exactly what fixed it because I did so much, but it's working great now.

Thanks for trying to help me out :D

brundle
06-17-2004, 08:50 AM
Any ideas what else might cause this or a similar problem?

I am on FBSD 4.10 and inetd/imap are running. I can telnet to IMAP on 143.

The errors I get in the maillog are: Jun 17 08:52:41 uhost01-opus imapd[81667]: Command stream end of file, while reading line user=joeuser@testme2.com host=localhost.opusnet.com [127.0.0.1]

I removed the imapd and re-ran imapd.sh but there was no change. I compare the filesize to a working instance on a different server and they were the same.

I tested with the firewall disabled.

I can log into the users mailbox with POP so I know the password is correct.

I can also log into the account in the admin domain - without the @domain after the username.

Is there some way imap just isn't working right or seeing the virtual domains?

DirectAdmin Support
06-17-2004, 10:08 AM
Hello,

What happens when you run "imapd" from your command prompt?

John

brundle
06-17-2004, 12:30 PM
If I run /usr/sbin/imapd I get

* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS AUTH=LOGIN] uhost01-opus.opusnet.com IMAP4rev1 2003.339 at Thu, 17 Jun 2004 12:31:21 -0700 (PDT)

It then sits in imap till I ctrl-c to escape.

DirectAdmin Support
06-20-2004, 12:48 PM
Hello,

Not too sure.. it's loading correctly.. perhaps check the /var/log/messages, or the /var/log/maillog for possible clues.

Try squirrelmail if you haven't already.

John

nobaloney
08-09-2005, 04:13 PM
We had a similar problem, on one client's server, same error:

Command stream end of file

when trying to download attachments.

Searched and searched.

Finally reinstalled and restarted the imap daemon from the DA imapd.sh script after first removing the old daemon file per John's instructions.

Now it works.

So I'd say at least restarting the daemon should be everyone's first step, and if that doesn't fix it, try reinstalling and restarting.

My client's problem was on RHEL, so it's NOT a FreeBSD thing.

Jeff