Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hi, I just installed the CentOS4.0, (redhat Entreprise based) .
I installed the smail server postfix, configured,
when I test telnet 25, the remote machine doesn't reply ( access refused ) ???
I tried manually the /usr/libexec/postfix/smtpd -D, it failed ,with message , not running by hand
There is no /usr/sbin/smtpd ( maybe it has another name or in another place ???) as in mandrake for example ?
the port 110 ran correcly
telnet server 110 gives the login
please someone can help me, pointing me what are the required soft to run correctly the postfix server
I hope I understood the quetion correctly. Are u telneting to the mail server from the remote box and if yes then u have to enable that port 25 on the FW where the mail server is installed. The easiest way to test this before configuring iptables disable it first then test the telnet connection. To disable FW type service iptables stop. If u not familiar with iptables use redhat-config-securitylevel and configure port 25 to be accessed
thanks,
but I flushed the iptables and after that I stopped it .
the problem is that sometimes it works and sometimes not, so there is probably a daemon who stops the access
For example I noticed in mandrake 9.0 ( i think, don't really remember the release) /usr/sbin/smtpd with permission only for root, and I fixed the problem by running by hand the smtpd as daemon with -D option.
here there is no smtpd at all !!!!
A default install of Postfix (or Sendmail) on CentOS 4.0 or RHEL will only be listening on the loopback interface. I think this is a precautionary measure to keep folks from exploiting you as a spam relay or whatever. The fewer open ports, the better.
You can check which interfaces are listening with the following command
# lsof -ni
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
sshd 3420 root 3u IPv6 7408 TCP *:ssh (LISTEN)
sendmail 3450 root 4u IPv4 7498 TCP 127.0.0.1:smtp (LISTEN)
in the above example, ssh is listening on all interfaces & sendmail is only listening on the loopback interface.
You can also use the "netstat -l" command to see similar output.
At any rate, you need to edit the Postfix config file to tell it to listen on an interface besides the loopback.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.