Help - Search - Members - Calendar
Full Version: Firewall Problem (rh 9)
Linuxhelp > Support > Technical Support
cagey cretin
Std distro of RH 9, lokkit and iptables. I can telnet to localhost 25 but not *ip-address-of-eth0*. Connection always refused. I've tried setting lokkit to no firewall, and connection still refused. I've uninstalled iptables and lokkit. Connection still refused (yeah, that makes sense).

Postfix is running. I can send mail telnetting to localhost 25.

TIA
DS2K3
In that case, Postfix probably isnt listening tongue.gif

Have a look in the postfix config (normally /etc/postfix/amin.cf) and tell it to listen on the IP of eth0 (it is pretty well commecnted you shouldnt have any probs)

D
cagey cretin
Thanks for the reply Richard. I have a book published by SAMS (Blum's "Postfix") and on page 168, 'it is written' that by default postfix listens on all interfaces. Nice new fresh reinstall, and I looked at the main.cf. Infact, inet_interfaces = local host was the uncommented item (contrary to the book). I changed it to "all", restarted the daemon, the network service, and the system itself for good measure. No good. Matter of fact, I get the exact same message...

Thanks again for the reply.

Joe
cagey cretin
Well now. Seems the joke is on me.

Evidently, I must remove sendmail before using postfix. I have spent the better part of 2 days trying to get to the bottom of this. Finally, RedHat's HowTo states that sendmail must be removed. I've been through most of this book, and I find no mention of Sendmail removal.

Now that sendmail is gone, I can telnet using the ip of the ethernet card.

Maybe this will help someone else...

Joe
DS2K3
A lot of distributors change the default settings for security reasons. Just ebcasue the official postfix releases have a certain option set to something by default, doesnt mean the versions that chip with the various distributions do too.

Yeh, generally having two MTAs isnt a good idea - That's why I like Gentoo/Portage - It takes care of stuff like that for you.

Glad its working now

D
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.