Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th September 2008, 03:12
adobe adobe is offline
Member
 
Join Date: Sep 2008
Posts: 39
Thanks: 0
Thanked 1 Time in 1 Post
Default Dovecot and SquirrelMail Install/Config Trouble

Hello,

I followed this nice tutorial here http://www.debian-administration.org/articles/275 and installed Dovecot without any error.

Then, I followed this tutorial here http://www.debian-administration.org/articles/200 and installed the SquirrelMail.

I am at the stage where you run a configtest to see if everything checks out. Sadly, my configtest is failing like this:

Quote:
SquirrelMail version: 1.4.9a
Config file version: 1.4.0
Config file last modified: 14 September 2008 23:55:13
Checking PHP configuration...
PHP version 5.2.0-8+etch11 OK.
PHP extensions OK.
Checking paths...
Data dir OK.
Attachment dir OK.
Plugins are not enabled in config.
Themes OK.
Default language OK.
Base URL detected as: http://webmail.domain.com/src (location base autodetected)
Checking outgoing mail service....

Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:25 (Connection refused) in /usr/share/squirrelmail/src/configtest.php on line 229

ERROR: Error connecting to SMTP server "localhost:25".Server error: (111) Connection refused
I had already opened the port 25 on my iptables firewall like this:

# iptables -A INPUT -p tcp --dport 25 -j ACCEPT

So, I ran the following command to see if dovecot imap server was running...

# netstat -tap

and this is what i saw:

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:imaps *:* LISTEN 24173/dovecot

While other server/programs on my server are running on a specific port (e.g. webserver on *:80), dovecot is running on *:imaps

Is this correct? Is this what's causing my configtest to fail with SquirrelMail? First time playing with mail server + mail client. Please advice.
Reply With Quote
Sponsored Links
  #2  
Old 15th September 2008, 03:23
adobe adobe is offline
Member
 
Join Date: Sep 2008
Posts: 39
Thanks: 0
Thanked 1 Time in 1 Post
Default

After some digging into the documentation file, i realised there was a setting called "listen" and "ssl_listen" on the /etc/dovecot/dovecot.conf config file, so I set it up like this ...

listen *:25
ssl_listen *:143

had it saved and restarted the dovecot like this ...

# /etc/init.d/dovecot stop
# /etc/init.d/dovecot start

When I ran the configtest again, this is what it shows now ...

Quote:
SquirrelMail configtest

This script will try to check some aspects of your SquirrelMail configuration and point you to errors whereever it can find them. You need to go run conf.pl in the config/ directory first before you run this script.

SquirrelMail version: 1.4.9a
Config file version: 1.4.0
Config file last modified: 14 September 2008 23:55:13
Checking PHP configuration...
PHP version 5.2.0-8+etch11 OK.
PHP extensions OK.
Checking paths...
Data dir OK.
Attachment dir OK.
Plugins are not enabled in config.
Themes OK.
Default language OK.
Base URL detected as: http://webmail.domain.com/src (location base autodetected)
Checking outgoing mail service....
SMTP server OK (* OK Dovecot ready.)
Checking IMAP service....

ERROR: Error connecting to IMAP server. Server error:
This is my netstat log ...

# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:smtp *:* LISTEN 26380/dovecot
tcp 0 0 *:imap2 *:* LISTEN 26380/dovecot

Do I need to install Postfix also? or dovecot alone is enough for all my mail server needs?

Last edited by adobe; 15th September 2008 at 03:40.
Reply With Quote
  #3  
Old 15th September 2008, 12:04
Nareau Nareau is offline
Junior Member
 
Join Date: Aug 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You should install Postfix unless if another MTA is already installed on your server.
Reply With Quote
  #4  
Old 15th September 2008, 19:06
adobe adobe is offline
Member
 
Join Date: Sep 2008
Posts: 39
Thanks: 0
Thanked 1 Time in 1 Post
Default

MTA = main transfer agent?

So far, I only installed dovecot and SquirrelMail. I was under the impression dovecot had everything.

So, how do you install Postfix and configure it to work with this setup i have so far?
________
buy vapor tower
________
Ford Mustang SSP specifications

Last edited by adobe; 9th February 2011 at 05:42.
Reply With Quote
  #5  
Old 16th September 2008, 12:36
Nareau Nareau is offline
Junior Member
 
Join Date: Aug 2008
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Try this howto

http://www.debianadmin.com/debian-ma...rrel-mail.html
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 17:59
Dovecot + TLS + Squirrelmail c4rdinal Installation/Configuration 2 4th July 2008 09:29
squirrelmail dovecot config cotthemh Installation/Configuration 7 22nd May 2007 03:59
Squirrelmail login issue (ISPConfig, dovecot, full username) ./w Installation/Configuration 5 19th May 2007 12:00
Squirrelmail, dovecot IMAP and sendmail - how to make it work? webcho Server Operation 3 29th June 2006 17:14


All times are GMT +2. The time now is 18:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.