LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-12-2006, 10:00 PM   #1
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 458

Rep: Reputation: 30
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
 
Old 10-13-2006, 04:02 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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
 
Old 10-13-2006, 12:41 PM   #3
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 458

Original Poster
Rep: Reputation: 30
Ive tried running that perl script a few times with those settings, same result.
 
Old 10-13-2006, 01:22 PM   #4
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
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 ?
 
Old 10-13-2006, 03:26 PM   #5
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Can you read mail using any othe rmail clients; evolution, etc?
 
Old 10-13-2006, 04:14 PM   #6
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 458

Original Poster
Rep: Reputation: 30
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.
 
Old 10-13-2006, 04:24 PM   #7
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I'd try to get it working without tls in the first instance, then you can add that in
 
Old 10-13-2006, 04:26 PM   #8
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
btw, do you have ssl key files specified, etc?
 
Old 10-13-2006, 07:38 PM   #9
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 458

Original Poster
Rep: Reputation: 30
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.

Last edited by ryedunn; 10-13-2006 at 10:33 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maildir in dovecot-IMAP!!! subhankar Linux - Networking 1 05-29-2006 02:43 PM
Need help with Squirrelmail with Dovecot & Sendmail cojo Linux - Software 17 05-18-2006 06:15 AM
Postfix, Dovecot, SquirrelMail Troubles?! simonsez711 Linux - Software 14 07-22-2005 02:32 PM
access denied on squirrelmail / dovecot / SE Linux policy rioguia Linux - Security 2 07-06-2005 11:25 PM
IMAP to dovecot GuitsBoy Linux - Software 0 11-22-2004 11:10 AM


All times are GMT -5. The time now is 01:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration