View Single Post
  #15  
Old 7th December 2006, 10:34
remstedt remstedt is offline
Member
 
Join Date: Sep 2005
Location: Sweden
Posts: 31
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko
OK! After comment out five lines "proxy:mysql" in /etc/postfix/mail.cf I can now telnet localhost 25. But when I'm try telnet localhost 110 with user glenn ...
[root@mail ~]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
+OK Hello there.
user glenn@remstedt.org
+OK Password required.
pass *****
-ERR chdir remstedt.org/glenn/ failed
Connection closed by foreign host.

Here my telnet localhost 25 ...

[root@mail ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 mail.remstedt.org ESMTP Postfix
mail from: glenn@remstedt.org
250 2.1.0 Ok
rcpt to: glenn@remstedt.org
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
subject:10:02
test #4
.
250 2.0.0 Ok: queued as 4165E36813E
quit
221 2.0.0 Bye
Connection closed by foreign host.

And here are the output of "mailq"

[root@mail ~]# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
4165E36813E 385 Thu Dec 7 10:01:51 glenn@remstedt.org
(host 127.0.0.1[127.0.0.1] said: 450 4.4.1 Can't connect to 127.0.0.1 port 10025, (Bad file descriptor) at (eval 41) line 145, <GEN6> line 29., MTA([127.0.0.1]:10025), id=02667-01 (in reply to end of DATA command))
glenn@remstedt.org

[root@mail ~]# lsof -i | grep LISTEN
portmap 1978 rpc 4u IPv4 5673 TCP *:sunrpc (LISTEN)
rpc.statd 2004 root 7u IPv4 5745 TCP *:914 (LISTEN)
sshd 2210 root 3u IPv4 6215 TCP *:ssh (LISTEN)
mysqld 2337 mysql 10u IPv4 6460 TCP *:mysql (LISTEN)
amavisd 2388 amavis 5u IPv4 6568 TCP localhost.localdomain:10024 (LISTEN)
couriertc 2400 root 3u IPv4 6604 TCP *:imap (LISTEN)
couriertc 2409 root 3u IPv4 6618 TCP *:imaps (LISTEN)
couriertc 2417 root 3u IPv4 6635 TCP *op3 (LISTEN)
couriertc 2425 root 3u IPv4 6655 TCP *op3s (LISTEN)
master 2486 root 11u IPv4 6837 TCP *:smtp (LISTEN)
master 2486 root 98u IPv4 6951 TCP localhost.localdomain:10025 (LISTEN)
httpd 2521 root 4u IPv4 7016 TCP *:http (LISTEN)
httpd 2521 root 6u IPv4 7018 TCP *:https (LISTEN)
httpd 2605 apache 4u IPv4 7016 TCP *:http (LISTEN)
httpd 2605 apache 6u IPv4 7018 TCP *:https (LISTEN)
httpd 2606 apache 4u IPv4 7016 TCP *:http (LISTEN)
httpd 2606 apache 6u IPv4 7018 TCP *:https (LISTEN)
httpd 2607 apache 4u IPv4 7016 TCP *:http (LISTEN)
httpd 2607 apache 6u IPv4 7018 TCP *:https (LISTEN)
httpd 2608 apache 4u IPv4 7016 TCP *:http (LISTEN)
httpd 2608 apache 6u IPv4 7018 TCP *:https (LISTEN)
httpd 2609 apache 4u IPv4 7016 TCP *:http (LISTEN)
httpd 2609 apache 6u IPv4 7018 TCP *:https (LISTEN)
httpd 2610 apache 4u IPv4 7016 TCP *:http (LISTEN)
httpd 2610 apache 6u IPv4 7018 TCP *:https (LISTEN)
httpd 2611 apache 4u IPv4 7016 TCP *:http (LISTEN)
httpd 2611 apache 6u IPv4 7018 TCP *:https (LISTEN)
httpd 2612 apache 4u IPv4 7016 TCP *:http (LISTEN)
httpd 2612 apache 6u IPv4 7018 TCP *:https (LISTEN)
amavisd 2667 amavis 5u IPv4 6568 TCP localhost.localdomain:10024 (LISTEN)
amavisd 2668 amavis 5u IPv4 6568 TCP localhost.localdomain:10024 (LISTEN)

[root@mail ~]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:imaps *:* LISTEN 2409/couriertcpd
tcp 0 0 *op3s *:* LISTEN 2425/couriertcpd
tcp 0 0 localhost.localdomain:10024 *:* LISTEN 2388/amavisd (maste
tcp 0 0 localhost.localdomain:10025 *:* LISTEN 2486/master
tcp 0 0 *:mysql *:* LISTEN 2337/mysqld
tcp 0 0 *op3 *:* LISTEN 2417/couriertcpd
tcp 0 0 *:imap *:* LISTEN 2400/couriertcpd
tcp 0 0 *:sunrpc *:* LISTEN 1978/portmap
tcp 0 0 *:http *:* LISTEN 2521/httpd
tcp 0 0 *:914 *:* LISTEN 2004/rpc.statd
tcp 0 0 *:ssh *:* LISTEN 2210/sshd
tcp 0 0 *:smtp *:* LISTEN 2486/master
tcp 0 0 *:https *:* LISTEN 2521/httpd
tcp 1 0 mail.remstedt.org:53041 fpserv.linux.duke.edu:http CLOSE_WAIT 2669/python
tcp 0 0 localhost.localdomain:36292 localhost.localdomain:mysql ESTABLISHED 2667/amavisd (ch2-a
tcp 0 0 localhost.localdomain:40406 localhost.localdomain:mysql ESTABLISHED 2668/amavisd (ch2-a
tcp 0 0 localhost.localdomain:mysql localhost.localdomain:36292 ESTABLISHED 2337/mysqld
tcp 0 0 localhost.localdomain:mysql localhost.localdomain:40406 ESTABLISHED 2337/mysqld


Thanks for any advice
Reply With Quote