Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Courier-imap: Am i missing something?! [Yes - SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ChrissySon
n00b
n00b


Joined: 07 Jul 2004
Posts: 27
Location: Texas

PostPosted: Tue Jul 25, 2006 2:07 am    Post subject: Courier-imap: Am i missing something?! [Yes - SOLVED] Reply with quote

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 :D


Last edited by ChrissySon on Tue Jul 25, 2006 3:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
Cabec2
Retired Dev
Retired Dev


Joined: 10 Jan 2003
Posts: 35
Location: France

PostPosted: Tue Jul 25, 2006 7:37 am    Post subject: Reply with quote

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
View user's profile Send private message
ChrissySon
n00b
n00b


Joined: 07 Jul 2004
Posts: 27
Location: Texas

PostPosted: Tue Jul 25, 2006 8:43 am    Post subject: Reply with quote

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
View user's profile Send private message
ChrissySon
n00b
n00b


Joined: 07 Jul 2004
Posts: 27
Location: Texas

PostPosted: Tue Jul 25, 2006 3:00 pm    Post subject: Reply with quote

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 :D

Cheers for your reply Cabec2 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum