View previous topic :: View next topic |
Author |
Message |
ChrissySon n00b
Joined: 07 Jul 2004 Posts: 27 Location: Texas
|
Posted: Tue Jul 25, 2006 2:07 am Post subject: Courier-imap: Am i missing something?! [Yes - SOLVED] |
|
|
I kept getting:
Code: | Error connecting to IMAP server: server.dnsalias.com.
111 : Connection refused |
from squirrelmail.
I've ssh'd into the server:
Code: | server chris # /etc/init.d/courier-imapd status
* status: started |
but port 143 doesn't show up as open when using nmap, nor can i telnet:
Code: | server chris # telnet localhost 143
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused |
/etc/courier-imap/imapd has "PORT=143"
as does
/etc/courier-imap/imapd.cnf (what is the one that is used?)
Any help very much appreciated
Last edited by ChrissySon on Tue Jul 25, 2006 3:01 pm; edited 1 time in total |
|
Back to top |
|
|
Cabec2 Retired Dev
Joined: 10 Jan 2003 Posts: 35 Location: France
|
Posted: Tue Jul 25, 2006 7:37 am Post subject: |
|
|
You should not believe rc status answer, as it is only based on /var/lib/init.d, which may contain errors
btw, what gives :
Code: | # ps aux | grep courier |
and
Code: | # netstat -utpa | grep LISTEN |
? |
|
Back to top |
|
|
ChrissySon n00b
Joined: 07 Jul 2004 Posts: 27 Location: Texas
|
Posted: Tue Jul 25, 2006 8:43 am Post subject: |
|
|
Code: | server chris # ps aux | grep courier
root 1453 0.0 0.0 1308 432 ? S 04:41 0:00 /usr/sbin/courierlogger -pid=/var/run/authdaemon.pid -start /usr/lib/courier/courier-authlib/authdaemond
root 1454 0.0 0.1 4524 1208 ? S 04:41 0:00 /usr/lib/courier/courier-authlib/authdaemond
root 1503 0.0 0.0 1416 504 ? S 04:41 0:00 /usr/lib/courier-imap/couriertcpd -address=192.168.16.2 -stderrlogger=/usr/lib/courier-imap/courierlogger -stderrloggername=imapd -maxprocs=40 -maxperip=40 -pid=/var/run/imapd.pid -nodnslookup -noidentlookup 143 /usr/sbin/imaplogin /usr/sbin/courier-imapd .maildir
root 1505 0.0 0.0 1312 412 ? S 04:41 0:00 /usr/lib/courier-imap/courierlogger imapd
root 1508 0.0 0.1 4524 1208 ? S 04:41 0:00 /usr/lib/courier/courier-authlib/authdaemond
root 1510 0.0 0.1 4524 1208 ? S 04:41 0:00 /usr/lib/courier/courier-authlib/authdaemond
root 1511 0.0 0.1 4672 1500 ? S 04:41 0:00 /usr/lib/courier/courier-authlib/authdaemond
root 1512 0.0 0.1 4672 1500 ? S 04:41 0:00 /usr/lib/courier/courier-authlib/authdaemond
root 1513 0.0 0.1 4672 1500 ? S 04:41 0:00 /usr/lib/courier/courier-authlib/authdaemond
root 3239 0.0 0.0 1396 500 pts/1 S+ 11:37 0:00 grep courier |
Code: | server chris # netstat -utpa | grep LISTEN
tcp 0 0 localhost:10024 *:* LISTEN 1218/amavisd (maste
tcp 0 0 localhost:783 *:* LISTEN 1703/spamd.pid -m 5
tcp 0 0 server.<domain>.local:imap *:* LISTEN 1503/couriertcpd
tcp 0 0 server.<domain>.local:domain *:* LISTEN 1408/dnscache
tcp 0 0 localhost:domain *:* LISTEN 1407/tcpserver
tcp 0 0 *:ssh *:* LISTEN 1337/sshd
tcp 0 0 server.<domain>.local:3128 *:* LISTEN 3114/(squid)
tcp 0 0 *:smtp *:* LISTEN 1757/master |
Thanks for the reply! |
|
Back to top |
|
|
ChrissySon n00b
Joined: 07 Jul 2004 Posts: 27 Location: Texas
|
Posted: Tue Jul 25, 2006 3:00 pm Post subject: |
|
|
Worked it out myself (feels so much better that way!).
In the /etc/courier-imap/imapd config file i had only enabled imap for it's internal address, and not the external one.
So users could connect on the inside but not the outside. Still quite confused about nmap localhost. Nmap-ing the local and external addresses shows up imap, but nmap-ing localhost still doesn't. Obviously something i don't quite understand
Cheers for your reply Cabec2 |
|
Back to top |
|
|
|