LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-13-2010, 01:46 PM   #1
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 144

Rep: Reputation: 15
Question can't telnet into courier service


I installed courier-0.64.2.20100320 onto a CentOS 5.4 instance on an AWS cloud instance with these configuration options:

Code:
./configure --sysconfdir=/etc/courier/ --without-ipv6 --with-db=gdbm --with-shellpath=/bin:/usr/bin:/usr/local/bin --with-ispell=/usr/bin/ispell --enable-imageurl=/var/www/html/webmail --enable-https=auto --enable-hardtimeout=7200  --disable-autorenamesent --with-calendarpurge=60 --with-cacheowner
Everything seems to install ok and `make && make install && make install-configure` goes smoothly.

Then I seem able to start the service

Code:
 
[root@cloud1 ~]  service courierd start &
 
[1] 18626
Courier shows up in /var/log/mail.log

Code:
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Loading STATIC transport module libraries.
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Courier 0.64.2.20100320 Copyright 1999-2008 Double Precision, Inc.
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Installing [0/0]
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Installing uucp
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Installed: module.uucp - Courier 0.64.2.20100320 Copyright 1999-2008 Double Precision, Inc.
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Installing local
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Installed: module.local - Courier 0.64.2.20100320 Copyright 1999-2008 Double Precision, Inc.
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Installing fax
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Installed: module.fax - Courier 0.64.2.20100320 Copyright 1999-2008 Double Precision, Inc.
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Installing esmtp
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Installed: module.esmtp - Courier 0.64.2.20100320 Copyright 1999-2008 Double Precision, Inc.
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Installing dsn
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Installed: module.dsn - Courier 0.64.2.20100320 Copyright 1999-2008 Double Precision, Inc.
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Initializing uucp
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Initializing local
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Initializing fax
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Initializing esmtp
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Initializing dsn
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Started ./courieruucp, pid=18621, maxdels=4, maxhost=4, maxrcpt=16
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Started ./courierlocal, pid=18622, maxdels=10, maxhost=4, maxrcpt=1
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Started ./courierfax, pid=18623, maxdels=1, maxhost=1, maxrcpt=1
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Started ./courieresmtp, pid=18624, maxdels=40, maxhost=4, maxrcpt=100
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Started ./courierdsn, pid=18625, maxdels=4, maxhost=1, maxrcpt=1
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: queuelo=200, queuehi=400
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Purging /usr/lib/courier/var/msgq
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Purging /usr/lib/courier/var/msgs
 
Apr 13 13:38:19 domU-12-34-56-78-A1-A2 courierd: Waiting.  shutdown time=Tue Apr 13 14:38:19 2010, wakeup time=Tue Apr 13 14:38:19 2010, queuedelivering=0, inprogress=0
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Loading STATIC transport module libraries.
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Courier 0.64.2.20100320 Copyright 1999-2008 Double Precision, Inc.
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Installing [0/0]
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Installing uucp
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Installed: module.uucp - Courier 0.64.2.20100320 Copyright 1999-2008 Double Precision, Inc.
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Installing local
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Installed: module.local - Courier 0.64.2.20100320 Copyright 1999-2008 Double Precision, Inc.
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Installing fax
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Installed: module.fax - Courier 0.64.2.20100320 Copyright 1999-2008 Double Precision, Inc.
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Installing esmtp
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Installed: module.esmtp - Courier 0.64.2.20100320 Copyright 1999-2008 Double Precision, Inc.
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Installing dsn
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Installed: module.dsn - Courier 0.64.2.20100320 Copyright 1999-2008 Double Precision, Inc.
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Initializing uucp
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Initializing local
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Initializing fax
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Initializing esmtp
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Initializing dsn
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Started ./courieruucp, pid=18633, maxdels=4, maxhost=4, maxrcpt=16
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Started ./courierlocal, pid=18634, maxdels=10, maxhost=4, maxrcpt=1
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Started ./courierfax, pid=18635, maxdels=1, maxhost=1, maxrcpt=1
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Started ./courieresmtp, pid=18636, maxdels=40, maxhost=4, maxrcpt=100
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Started ./courierdsn, pid=18637, maxdels=4, maxhost=1, maxrcpt=1
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: queuelo=200, queuehi=400
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Purging /usr/lib/courier/var/msgq
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Purging /usr/lib/courier/var/msgs
 
Apr 13 13:38:25 domU-12-34-56-78-A1-A2 courierd: Waiting.  shutdown time=Tue Apr 13 14:38:25 2010, wakeup time=Tue Apr 13 14:38:25 2010, queuedelivering=0, inprogress=0
The local firewall (shorewall) is turned off, yet I cannot telnet into the courierd service

Code:
[root@cloud1 init.d]# telnet cloud1 10024
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
The ps command also reveals that courierd is running:

Code:
[root@cloud1 init.d]# ps -ef | grep courierd
root     18626 18592  0 13:38 pts/7    00:00:00 /bin/sh /sbin/service courierd start
root     18631 18626  0 13:38 pts/7    00:00:00 /etc/init.d/courierd start
mail     18632 18631  0 13:38 pts/7    00:00:00 /etc/init.d/courierd start
mail     18637 18632  0 13:38 pts/7    00:00:00 ./courierdsn
root     18731 18674  0 14:40 pts/9    00:00:00 grep courierd
Also I cannot seem to find the courier service with netstat:

Code:
[root@cloud1 ~]# netstat -na
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State      
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      
tcp        0      0 :::80                       :::*                        LISTEN      
tcp        0      0 :::22                       :::*                        LISTEN      
tcp        0      0 ::1:631                     :::*                        LISTEN      
tcp        0      0 ::ffff:10.248.194.47:22     ::ffff:65.46.72.90:3364     ESTABLISHED 
tcp        0      0 ::ffff:10.248.194.47:22     ::ffff:96.240.10.146:26479  ESTABLISHED 
tcp        0      0 ::ffff:10.248.194.47:22     ::ffff:65.46.72.90:25205    ESTABLISHED 
tcp        0      0 ::ffff:10.248.194.47:22     ::ffff:96.240.10.146:59157  ESTABLISHED 
tcp        0      0 ::ffff:10.248.194.47:22     ::ffff:65.46.72.90:30113    ESTABLISHED 
tcp        0      0 ::ffff:10.248.194.47:22     ::ffff:65.46.72.90:13246    ESTABLISHED 
tcp        0      0 ::ffff:10.248.194.47:22     ::ffff:65.46.72.90:27032    ESTABLISHED 
tcp        0      0 ::ffff:10.248.194.47:22     ::ffff:65.46.72.90:32742    ESTABLISHED 
tcp        0   1296 ::ffff:10.248.194.47:22     ::ffff:65.46.72.90:4338     ESTABLISHED 
tcp        0      0 ::ffff:10.248.194.47:22     ::ffff:96.240.10.146:65437  ESTABLISHED 
udp        0      0 0.0.0.0:32771               0.0.0.0:*                               
udp        0      0 0.0.0.0:68                  0.0.0.0:*                               
udp        0      0 0.0.0.0:5353                0.0.0.0:*                               
udp        0      0 0.0.0.0:631                 0.0.0.0:*                               
udp        0      0 :::32772                    :::*                                    
udp        0      0 :::5353                     :::*                                    
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node Path
unix  2      [ ACC ]     STREAM     LISTENING     3127   /tmp/.font-unix/fs7100
unix  2      [ ACC ]     STREAM     LISTENING     106252 /var/lib/mysql/mysql.sock
unix  2      [ ACC ]     STREAM     LISTENING     2846   /var/run/cups/cups.sock
unix  2      [ ]         DGRAM                    797    @/org/kernel/udev/udevd
unix  2      [ ACC ]     STREAM     LISTENING     3236   @/var/run/hald/dbus-JSYDcn0Nli
unix  2      [ ]         DGRAM                    3245   @/org/freedesktop/hal/udev_event
unix  2      [ ACC ]     STREAM     LISTENING     3237   @/var/run/hald/dbus-RkVCbTfzpI
unix  2      [ ACC ]     STREAM     LISTENING     2757   /dev/log
unix  2      [ ACC ]     STREAM     LISTENING     2541   /var/run/audispd_events
unix  2      [ ACC ]     STREAM     LISTENING     2655   /var/run/dbus/system_bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     3207   /var/run/avahi-daemon/socket
unix  3      [ ]         STREAM     CONNECTED     137272 /dev/log
unix  3      [ ]         STREAM     CONNECTED     137267 
unix  3      [ ]         STREAM     CONNECTED     137044 /dev/log
unix  3      [ ]         STREAM     CONNECTED     137043 
unix  3      [ ]         STREAM     CONNECTED     137035 /dev/log
unix  3      [ ]         STREAM     CONNECTED     137034 
unix  3      [ ]         STREAM     CONNECTED     137027 /dev/log
unix  3      [ ]         STREAM     CONNECTED     137026 
unix  3      [ ]         STREAM     CONNECTED     137019 /dev/log
unix  3      [ ]         STREAM     CONNECTED     137018 
unix  3      [ ]         STREAM     CONNECTED     137011 /dev/log
unix  3      [ ]         STREAM     CONNECTED     137010 
unix  3      [ ]         STREAM     CONNECTED     137007 /dev/log
unix  3      [ ]         STREAM     CONNECTED     136999 
unix  3      [ ]         STREAM     CONNECTED     136889 /dev/log
unix  3      [ ]         STREAM     CONNECTED     136884 
unix  3      [ ]         STREAM     CONNECTED     136739 /dev/log
unix  3      [ ]         STREAM     CONNECTED     136733 
unix  3      [ ]         STREAM     CONNECTED     133626 /dev/log
unix  3      [ ]         STREAM     CONNECTED     133618 
unix  3      [ ]         STREAM     CONNECTED     113125 /dev/log
unix  3      [ ]         STREAM     CONNECTED     113120 
unix  3      [ ]         STREAM     CONNECTED     106952 /dev/log
unix  3      [ ]         STREAM     CONNECTED     106944 
unix  3      [ ]         STREAM     CONNECTED     106872 /dev/log
unix  3      [ ]         STREAM     CONNECTED     106867 
unix  3      [ ]         STREAM     CONNECTED     106062 /dev/log
unix  3      [ ]         STREAM     CONNECTED     106057 
unix  3      [ ]         STREAM     CONNECTED     105965 /dev/log
unix  3      [ ]         STREAM     CONNECTED     105960 
unix  3      [ ]         STREAM     CONNECTED     105866 /dev/log
unix  3      [ ]         STREAM     CONNECTED     105861 
unix  3      [ ]         STREAM     CONNECTED     105692 /dev/log
unix  3      [ ]         STREAM     CONNECTED     105687 
unix  3      [ ]         STREAM     CONNECTED     104142 /dev/log
unix  3      [ ]         STREAM     CONNECTED     104141 
unix  3      [ ]         STREAM     CONNECTED     88576  /dev/log
unix  3      [ ]         STREAM     CONNECTED     88568  
unix  3      [ ]         STREAM     CONNECTED     29582  /dev/log
unix  3      [ ]         STREAM     CONNECTED     29574  
unix  3      [ ]         STREAM     CONNECTED     26712  /dev/log
unix  3      [ ]         STREAM     CONNECTED     26711  
unix  3      [ ]         STREAM     CONNECTED     5380   /dev/log
unix  3      [ ]         STREAM     CONNECTED     5379   
unix  3      [ ]         STREAM     CONNECTED     4688   /dev/log
unix  3      [ ]         STREAM     CONNECTED     4687   
unix  3      [ ]         STREAM     CONNECTED     3514   /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     3513   
unix  3      [ ]         STREAM     CONNECTED     3240   @/var/run/hald/dbus-RkVCbTfzpI
unix  3      [ ]         STREAM     CONNECTED     3239   
unix  3      [ ]         STREAM     CONNECTED     3210   /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     3209   
unix  3      [ ]         STREAM     CONNECTED     3204   
unix  3      [ ]         STREAM     CONNECTED     3203   
unix  3      [ ]         STREAM     CONNECTED     3200   /dev/log
unix  3      [ ]         STREAM     CONNECTED     3199   
unix  3      [ ]         STREAM     CONNECTED     3056   /dev/log
unix  3      [ ]         STREAM     CONNECTED     3055   
unix  3      [ ]         STREAM     CONNECTED     2974   /dev/log
unix  3      [ ]         STREAM     CONNECTED     2973   
unix  3      [ ]         STREAM     CONNECTED     2934   /dev/log
unix  3      [ ]         STREAM     CONNECTED     2933   
unix  3      [ ]         STREAM     CONNECTED     2659   
unix  3      [ ]         STREAM     CONNECTED     2658   
unix  3      [ ]         STREAM     CONNECTED     2525   
unix  3      [ ]         STREAM     CONNECTED     2524
My /etc/courier/authdaemonrc file simply says this:


Code:
authmodulelist="authmysql"
DEBUG_LOGIN=2
These are the contents of /etc/courier/authmysqlrc

Code:
MYSQL_SERVER cloud1
MYSQL_USERNAME mail
MYSQL_PASSWORD ******
MYSQL_PORT 0
MYSQL_OPT 0
MYSQL_DATABASE maildb
MYSQL_USER_TABLE users
MYSQL_CRYPT_PWFIELD crypt
# MYSQL_CLEAR_PWFIELD clear
MYSQL_MAILDIR_FIELD concat(home,'/',maildir)
MYSQL_WHERE_CLAUSE enabled=1
I am attempting to use the 'flurdy' postfix tutorial.

So in short, what is puzzling me at the moment is why I am unable to telnet into the courier service.

Also, in a related note the only 'courier related services' I find in /etc/init.d are the following:

Code:
[root@cloud1 init.d]# ls -l *courier*
-r-xr-x--- 1 root root 2379324 Apr 12 14:45 courierd
-r-xr-xr-x 1 root root  111712 Apr 12 14:46 courierpop3d
I don't see a courier-imap service even tho the install of courier-0.64.2.20100320 seemed to go just fine. This last part is kind of a side-issue.

Any tips to help me get this working will be appreciated.
 
Old 04-13-2010, 02:48 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
In my experience your ps looks pretty wrong, there is something up with your courier setup and it's not listening on any ports (per netstat -an) so its not surprising its not connectible. Doesnt look like its finishing initialization.
 
Old 04-13-2010, 07:00 PM   #3
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 144

Original Poster
Rep: Reputation: 15
Thumbs down started courierd -- no win

hello,

I've managed to start courierd by locating the daemon at

Code:
/usr/lib/courier/libexec/courier/courierd
and copying it to /etc/init.d/ and issuing the command
Code:
service courierd start
Now my ps output looks a little more reasonable. ;-)

Code:
[root@cloud1 courier]# pwd
/usr/lib/courier/libexec/courier
[root@cloud1 courier]# ps -ef | grep courier
root      2376  1465  0 Apr12 pts/0    00:00:00 su courier
courier   2377  2376  0 Apr12 pts/0    00:00:00 bash
root      4625  1486  0 Apr12 pts/0    00:00:00 su - courier
courier   4626  4625  0 Apr12 pts/0    00:00:00 -bash
root      8922  8899  0 13:11 pts/5    00:00:00 su - courier
courier   8923  8922  0 13:11 pts/5    00:00:00 -bash
root     18626 18592  0 13:38 pts/7    00:00:00 /bin/sh /sbin/service courierd start
root     18631 18626  0 13:38 pts/7    00:00:00 /etc/init.d/courierd start
root     18818 18795  0 16:07 pts/8    00:00:00 su - courier
courier  18819 18818  0 16:07 pts/8    00:00:00 -bash
root     27541     1  0 16:18 ?        00:00:00 /usr/local/sbin/courierlogger -pid=/var/run/imapd.pid -start -name=imapd /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=40 -maxperip=4 -nodnslookup -noidentlookup 143 /usr/lib/courier-imap/sbin/imaplogin /usr/lib/courier-imap/bin/imapd Maildir
root     27542 27541  0 16:18 ?        00:00:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=40 -maxperip=4 -nodnslookup -noidentlookup 143 /usr/lib/courier-imap/sbin/imaplogin /usr/lib/courier-imap/bin/imapd Maildir
root     27608 24831  0 16:24 pts/8    00:00:00 su courier
courier  27609 27608  0 16:24 pts/8    00:00:00 bash
mail     30606 18631  0 19:43 pts/7    00:00:00 /etc/init.d/courierd start
uucp     30607 30606  0 19:43 pts/7    00:00:00 ./courieruucp
root     30608 30606  0 19:43 pts/7    00:00:00 ./courierlocal
root     30609 30606  0 19:43 pts/7    00:00:00 ./courierfax
mail     30610 30606  0 19:43 pts/7    00:00:00 ./courieresmtp
mail     30611 30606  0 19:43 pts/7    00:00:00 ./courierdsn
root     30617 30576  0 19:52 pts/10   00:00:00 vim courierd.dist
root     30652 30620  0 19:56 pts/11   00:00:00 grep courier
However, I get the same result:

Code:
[root@cloud1 courier]# telnet cloud1 10024
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
Attached Files
File Type: txt courierd.txt (12.5 KB, 10 views)
 
  


Reply



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
Starting Service via Telnet WilliamsIT Linux - General 3 10-11-2006 03:26 PM
telnet to Courier-IMAP cadkins Slackware 2 10-29-2004 04:46 PM
Telnet Service Not Available big_mustard Linux - Security 10 07-21-2004 02:26 AM
telnet service zaman Linux - Security 3 10-21-2003 04:24 PM
Telnet Service zjustin Linux - General 0 01-19-2003 07:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:57 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration