Was trying to configure my linux box to send email. When I tried to telnet the port 25 for localhost I've got the error below:
[root@shizune installer]# telnet localhost 25
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
After issuing the netstat -nl command, I didn't see pot 25 listening to daemon at the localhost.
[root@shizune installer]# netstat -nl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 :::80 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 6453 @/com/ubuntu/upstart
unix 2 [ ACC ] STREAM LISTENING 18878 /var/lib/mysql/mysql.sock
unix 2 [ ACC ] STREAM LISTENING 7991 @/var/run/hald/dbus-Hvebo5KGlA
unix 2 [ ACC ] STREAM LISTENING 7908 /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 8418 /var/run/abrt/abrt.socket
unix 2 [ ACC ] STREAM LISTENING 7996 @/var/run/hald/dbus-9kHuL7iipY
To fix the problem you need to install the postfix into your server.
[root@shizune installer]# yum --enablerepo=remi install postfix
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos.ipserverone.com
* extras: centos.ipserverone.com
* remi: iut-info.univ-reims.fr
* updates: centosk3.centos.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package postfix.x86_64 2:2.6.6-2.2.el6_1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================================
Installing:
postfix x86_64 2:2.6.6-2.2.el6_1 base 2.0 M
Transaction Summary
==================================================================================================================================================================
Install 1 Package(s)
Total download size: 2.0 M
Installed size: 9.7 M
Is this ok [y/N]: y
Downloading Packages:
postfix-2.6.6-2.2.el6_1.x86_64.rpm | 2.0 MB 00:03
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 2:postfix-2.6.6-2.2.el6_1.x86_64 1/1
Installed:
postfix.x86_64 2:2.6.6-2.2.el6_1
Complete!
[root@shizune installer]# service postfix status
master is stopped
[root@shizune installer]# service postfix start
Starting postfix: [ OK ]
[root@shizune installer]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 shizune.localhost.org ESMTP Postfix
[root@shizune installer]# netstat -nl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 :::80 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 6453 @/com/ubuntu/upstart
unix 2 [ ACC ] STREAM LISTENING 18878 /var/lib/mysql/mysql.sock
unix 2 [ ACC ] STREAM LISTENING 7991 @/var/run/hald/dbus-Hvebo5KGlA
unix 2 [ ACC ] STREAM LISTENING 7908 /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 8418 /var/run/abrt/abrt.socket
unix 2 [ ACC ] STREAM LISTENING 7996 @/var/run/hald/dbus-9kHuL7iipY
unix 2 [ ACC ] STREAM LISTENING 28810 public/cleanup
unix 2 [ ACC ] STREAM LISTENING 28817 private/tlsmgr
unix 2 [ ACC ] STREAM LISTENING 28821 private/rewrite
unix 2 [ ACC ] STREAM LISTENING 28825 private/bounce
unix 2 [ ACC ] STREAM LISTENING 28829 private/defer
unix 2 [ ACC ] STREAM LISTENING 28833 private/trace
unix 2 [ ACC ] STREAM LISTENING 28837 private/verify
unix 2 [ ACC ] STREAM LISTENING 28841 public/flush
unix 2 [ ACC ] STREAM LISTENING 28845 private/proxymap
unix 2 [ ACC ] STREAM LISTENING 28849 private/proxywrite
unix 2 [ ACC ] STREAM LISTENING 28853 private/smtp
unix 2 [ ACC ] STREAM LISTENING 28857 private/relay
unix 2 [ ACC ] STREAM LISTENING 28861 public/showq
unix 2 [ ACC ] STREAM LISTENING 28865 private/error
unix 2 [ ACC ] STREAM LISTENING 28869 private/retry
unix 2 [ ACC ] STREAM LISTENING 28873 private/discard
unix 2 [ ACC ] STREAM LISTENING 28877 private/local
unix 2 [ ACC ] STREAM LISTENING 28881 private/virtual
unix 2 [ ACC ] STREAM LISTENING 28885 private/lmtp
unix 2 [ ACC ] STREAM LISTENING 28889 private/anvil
unix 2 [ ACC ] STREAM LISTENING 28893 private/scache
No comments:
Post a Comment