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:
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.
Data dir OK.
Attachment dir OK.
Plugins are not enabled in config.
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.