•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the *nix Software section within the Tech Talk category of DaniWeb, a massive community of 456,589 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,593 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our *nix Software advertiser: Lunarpages Linux Web Hosting
Views: 4379 | Replies: 6
![]() |
•
•
Join Date: Aug 2003
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
Wow this is a bit weird. Well I'm not an expert in Linux. But I know that iptables responsible for the system firewall. So i went in to /etc/sysconfig and vim the iptables and i see that port 25 and 110 is accept. How come when I telnet the port 25 and 110, it is show that the connection is refuse. I did open up my router firewall also for the port 25 and 110. So I'm stuck at this point. Don't know why these two ports is not open. I need these two ports for my sendmail to be able to send and receive email to the outside source. Please lighten up me with your solution, anyone? 
I'm really appreciated if you can, and I also really appreciated if you try. Thanks guy...

I'm really appreciated if you can, and I also really appreciated if you try. Thanks guy...
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,020
Reputation:
Rep Power: 33
Solved Threads: 117
I'm a bit confused when you say you are trying to telnet into ports 25 and 110. Do you mean you're trying to ping your server? You'll need to do a portscan to see if those ports are open or not.
Telnet is the daemon that lets you run a shell remotely, and is usually done via port 23.
Telnet is the daemon that lets you run a shell remotely, and is usually done via port 23.
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
•
•
Join Date: Aug 2003
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
I did try to do nmap -sS for localhost and etc.. 25 and 110 is in the state closed. But my router configuration is open for it.. and iptables' port 25 and 110 is accepting. When i do telnet.. (usually you telnet a port is to see if the port is accept the connection or not.. so you'll know it's open or closed).. for 25 and 110, it say connection refuse, but i telnet port 22.. and port 22 is open for a connection.
So any suggestion?
Thanks for replying to me so fast
...
So any suggestion?
Thanks for replying to me so fast
... •
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,020
Reputation:
Rep Power: 33
Solved Threads: 117
This isn't exactly my field of expertise. However, does it make sense that perhaps despite the ports being open through your firewall, sendmail is not configured properly, and therefore there is no daemon listening to those open ports, to respond to you when you try to telnet to them?
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
•
•
Join Date: Aug 2003
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
Yes, it sort of make sense. But I did run a check on my sendmail status, and it's up and running. About sendmail configuration is default from beginning, I didn't change anything, but only two line of codes. What I did was comment out the following line:
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
That is, place a dnl in front so it looks like the following:
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
Then I remake sendmail.cf file by moving into the /etc/mail directory and typing in make -C /etc/mail
Then I restart sendmail. (/etc/init.d/sendmail/restart)
I think this is the right way to configure the sendmail so far. If you know what I did wrong, please let me know thanks.
So far, I'm clueless because my sendmail is not working the way it suppose to work, and the port 25 and 110 look like it was closed when I do the nmap, but I did check the iptables and see it was open, and my router also open those 2 ports.
.. Thanks for trying to help.
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
That is, place a dnl in front so it looks like the following:
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
Then I remake sendmail.cf file by moving into the /etc/mail directory and typing in make -C /etc/mail
Then I restart sendmail. (/etc/init.d/sendmail/restart)
I think this is the right way to configure the sendmail so far. If you know what I did wrong, please let me know thanks.
So far, I'm clueless because my sendmail is not working the way it suppose to work, and the port 25 and 110 look like it was closed when I do the nmap, but I did check the iptables and see it was open, and my router also open those 2 ports.
.. Thanks for trying to help. •
•
Join Date: Aug 2006
Location: South Africa, Durban
Posts: 112
Reputation:
Rep Power: 3
Solved Threads: 8
There are other setting to consider. I've not used sendmail, but with postfix, there are a few things in the config file (/etc/postfix/main.cf in Fedora) that need to be unblocked:
mydomain = cs.ukzn.ac.za
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain
This is of course a late reply (years late!) but I was searching for stuff on iptables and maybe this postfix info could help someone one day
Often if one thing doesn't work, something else is worth a shot
mydomain = cs.ukzn.ac.za
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain
This is of course a late reply (years late!) but I was searching for stuff on iptables and maybe this postfix info could help someone one day

Often if one thing doesn't work, something else is worth a shot
•
•
•
•
There are other setting to consider. I've not used sendmail, but with postfix, there are a few things in the config file (/etc/postfix/main.cf in Fedora) that need to be unblocked:
mydomain = cs.ukzn.ac.za
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain
This is of course a late reply (years late!) but I was searching for stuff on iptables and maybe this postfix info could help someone one day
Often if one thing doesn't work, something else is worth a shot
You do realize that you're reviving a thread that is FOUR YEARS old, yes?
tuxation.com - Linux articles, tutorials, and discussions
![]() |
•
•
•
•
•
•
•
•
DaniWeb *nix Software Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
ajax asp blog browsing bt business business software developer development devices download erp systems experiment firefox india internet it japan malware mcafee media microsoft mmorpg mobile applications msdn news office online open-source programming project management publishing python rss search security software software selection software solutions spyware sql super technology evaluation tips vista vulnerability disclosure web wiki windows
- IPTables blocks all incoming traffic from other networks (*nix Software)
- iptables (Getting Started and Choosing a Distro)
- IPtables masquerade (*nix Software)
- iptables on knoppix 3.7 (*nix Software)
Other Threads in the *nix Software Forum
- Previous Thread: Debian on a server
- Next Thread: installing frontpage for linux



Linear Mode