Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't telnet into courier service

Status
Not open for further replies.

bluethundr

Technical User
Jan 4, 2009
31
US
I can't telnet into the courier MTA 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/[URL unfurl="true"]www/html/webmail[/URL] --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.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Apollo: “I will not serve under a man who questions my integrity.”

Adama: “And I won’t have an officer under my command who doesn’t have any.”


This is my public RSA key: 5A4873A9
Key fingerprint = 0C0F 1769 83C3 8318 7424 73B1 55C5 4B3E 5A48 73A9
GPG me!!!
 
NoWay.. thank you for ALL of your incredible help!

Here is the happy result of all of OUR work!!!


Everything works great.. I can even send to and receive from yahoo, gmail even MS live. TLS/SSL Certs are working and I've never build a better mail serve!

Thanks again!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Apollo: “I will not serve under a man who questions my integrity.”

Adama: “And I won’t have an officer under my command who doesn’t have any.”


This is my public RSA key: 5A4873A9
Key fingerprint = 0C0F 1769 83C3 8318 7424 73B1 55C5 4B3E 5A48 73A9
GPG me!!!
 
I am glad that it worked out for you. When I saw the syntax error, I had to smile. Yes, the simpler the error, the more sever the symptom. Every time. If nothing else, you undoubtedly learned a lot out of the process, which is almost as gratifying as having something finally work.

By the way,I don't know if this is what you intended or not, but the URL for Jiffycloud.com takes you to a Zimbra login page.

 
Hey NoWay!


Yes thank you again for all the effort you put into getting me past these hurdles and it paid off beautifully! I am very happy/satisfied with my mail server and enjoy using it.

And yes, JiffyCloud points to the zimbra server only. It's only a hobby project for my zimbra / postfix adventures.

Maybe someday it will become something more, but for now that is all it is.

All the best and thank you again!
tim

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Apollo: “I will not serve under a man who questions my integrity.”

Adama: “And I won’t have an officer under my command who doesn’t have any.”


This is my public RSA key: 5A4873A9
Key fingerprint = 0C0F 1769 83C3 8318 7424 73B1 55C5 4B3E 5A48 73A9
GPG me!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top