LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Squirrelmail and Dovecot IMAP (https://www.linuxquestions.org/questions/linux-newbie-8/squirrelmail-and-dovecot-imap-491958/)

ryedunn 10-12-2006 10:00 PM

Squirrelmail and Dovecot IMAP
 
Just built a new email server Dovecot procmail postfix spamassasian the logs show Im getting mail and its making it all the way to my $HOME/Mailbox.

Now I want to view it using squirrelmail... installed it via yum, and can get to the login screen, but after entering my login and pass it hangs for approx 30 seconds then I get the error "ERROR: Connection dropped by IMAP server." The only possible thing which might be related in my log file is
Oct 12 20:31:39 servername dovecot: imap-login: Disconnected: Inactivity: rip=127.0.0.1, lip=127.0.0.1, TLS

I cant telnet to port 143 and see it connect. Im also using pam for authentication on FC5.

http://your-squirrelmail-location/src/configtest.php waits for about 1 min then
Checking PHP configuration...
PHP version 5.1.4 OK.
PHP extensions OK.
Checking paths...
Data dir OK.
Attachment dir OK.
Plugins OK.
Themes OK.
Default language OK.
Base URL detected as: https://mail.domain.com/src (location base autodetected)
Checking outgoing mail service....
SMTP server OK (220 domain ESMTP Postfix)
Checking IMAP service....

ERROR: Error connecting to IMAP server. Server error:

Im sure Im missing something simple, I hope someone here can point it out for me.
Thanks guys...
TheGNUbie

billymayday 10-13-2006 04:02 AM

Copied from another post I made a day or so ago

Quote:

To configure squirrlemail, under FC5, the relevant files are in

/usr/share/squirrelmail/config.

There should be a file called conf.pl. You run this by typing

#perl conf.pl

And follow the instructions
Note that for Dovecot you choose (if I remember correctly) Courier-IMAP as the server type

I'd guess you haven't configured squirrelmail


Rgds

ryedunn 10-13-2006 12:41 PM

Ive tried running that perl script a few times with those settings, same result.

kevkim55 10-13-2006 01:22 PM

Quote:

Note that for Dovecot you choose (if I remember correctly) Courier-IMAP as the server type
In the latest release of Squirrelmail, you can specify Dovecot as the imap_server_type.

Quote:

"ERROR: Connection dropped by IMAP server."
Check your dovecot settings which, shall be found under /etc/dovecot, though it might be elsewhere in your case.

Check your mail log which is normally found under /var/log. Post all the relevant lines, from the start of login to logout.

Have you configured your dovecot.conf file, set all the parameters right ?

billymayday 10-13-2006 03:26 PM

Can you read mail using any othe rmail clients; evolution, etc?

ryedunn 10-13-2006 04:14 PM

Quote:

## Dovecot configuration file

base_dir = /var/run/dovecot/

# Protocols we want to be serving:
protocols = imaps pop3s

# IP or host address where to listen in for connections. It's not currently
# possible to specify multiple addresses. "*" listens in all IPv4 interfaces.
# "[::]" listens in all IPv6 interfaces, but may also listen in all IPv4
# interfaces depending on the operating system.
#
# If you want to specify ports for each service, you will need to configure
# these settings inside the protocol imap/pop3 { ... } section, so you can
# specify different ports for IMAP/POP3. For example:
protocol imap {
# listen = *:10143
ssl_listen = *:143
}
# protocol pop3 {
# listen = *:10100
# }


# IP or host address where to listen in for SSL connections. Defaults
# to above if not specified.
#ssl_listen = *

# Disable SSL/TLS support.
ssl_disable = no
Installed via Yum the latest version of Squirrelmail version 1.4.8-1.fc5

only thin is log file is:
Quote:

Oct 13 15:46:23 server dovecot: imap-login: Disconnected: rip=127.0.0.1, lip=127.0.0.1, TLS
Oct 13 15:51:37 server dovecot: imap-login: Disconnected: rip=127.0.0.1, lip=127.0.0.1, TLS
Im going to try to install evolution now and let you know how it goes.

billymayday 10-13-2006 04:24 PM

I'd try to get it working without tls in the first instance, then you can add that in

billymayday 10-13-2006 04:26 PM

btw, do you have ssl key files specified, etc?

ryedunn 10-13-2006 07:38 PM

yes, both the private key and certificate files are specified.

Per the dovecot website...
SQUIRRELMAIL
"Configuration asks IMAP server name for some workarounds, I'm not aware of Dovecot requiring any so just select the "other" option. By default it uses INBOX-prefix, remove it."

also increased my logging and now see:
Oct 13 20:26:43 server dovecot: imap-login: SSL_accept() syscall failed: EOF [127.0.0.1]

I edited my dovecot.conf so much it was inevitable I would screw it up.. so I grabbed anoter from the web.. boom it works... go figure.


All times are GMT -5. The time now is 09:13 AM.