- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Receiving Mail on Linux Redhat
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2002 04:49 AM
тАО07-26-2002 04:49 AM
If I stay on the the box and email between users it works fine. If I email between Linux boxes on the same network it works fine.
If I email from the internet the mail is refused and returned.
I have a Web site on this box that can be seen from the internet.
I can get mail from this box from other PCs on the local network.
I can send email from the box to the Internet.
Summary:
The the box send/receives email local and sends to the Internet. Will not receive email from the Internet.
It host a web site that works fine.
I'm missing something??????????
Can you help?
Marty
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2002 07:09 AM
тАО07-26-2002 07:09 AM
Re: Receiving Mail on Linux Redhat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2002 07:23 AM
тАО07-26-2002 07:23 AM
SolutionWhat is the log you have ??
When you say it's refused , what is the exact message.
The best way to diagnose the problem is to connect to internet trough a dial up connection.
Then you telnet from this work station to your public ip address on the port 25.
Syntax :
telnet
You should have at this time the sendmail greeting message.
To send a message from there :
#helo hp.com
#mail from:fred@hp.com
#rcpt to:
this is your message
.
"The dot alone is important to finish the message"
You should have at this time message delivered...
Hope this helps.
Benoit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2002 09:58 AM
тАО07-26-2002 09:58 AM
Re: Receiving Mail on Linux Redhat
ipchains
and it will list the rules. If not then ipchains with an option should list them such as --list. I use iptables so I can't say for certain.
Also are you sending to a normal user or root or who?
The MX record would be my first guess though, then the firewall.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2002 11:41 AM
тАО07-26-2002 11:41 AM
Re: Receiving Mail on Linux Redhat
I can telnet to the IP address. and login.
So it lookst to me that the Linux box is not listening for port 25.
What did I miss that will disallow port 25?
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2002 12:53 PM
тАО07-26-2002 12:53 PM
Re: Receiving Mail on Linux Redhat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2002 01:13 PM
тАО07-26-2002 01:13 PM
Re: Receiving Mail on Linux Redhat
I can not connect to port 25.
Telnet return a "conection refuesed" message.
I can telnet to the box and log in.
I verigied that I was not blocking port 25 on the router. It is open.
I also tried to telnet to port 25 while on the local box itseld and it also refused the connection.
Meaning that port 25 is blocked or not listening?
How do I check that?
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2002 01:30 PM
тАО07-26-2002 01:30 PM
Re: Receiving Mail on Linux Redhat
ipchains returns input, output and forward (policy ACCEPT)
Sendmail is running.
I checked in /etc/services and port 25 is in there for smtp 25/tcp and 25/upd.
Where do I set it up to allow or disallow ports on the box itself.
While on the box I can not telnet to port 25.
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2002 03:55 PM
тАО07-26-2002 03:55 PM
Re: Receiving Mail on Linux Redhat
pursuing the possible firewall angle:
1) check for instances of port 25 in your /var/log/messages log.
# grep -i "dport=25" /var/log/messages
2) verify that sendmail is accepting connections:
# ps -ef |grep sendmail
# root 3540 1 0 Date ? 00:00:00 sendmail: accepting connections
3) check /var/log/maillog for clues.
From your inability to
# telnet localhost 25
though, it would look more like a (linux) firewall issue than anything else.
hth
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2002 01:29 AM
тАО07-29-2002 01:29 AM
Re: Receiving Mail on Linux Redhat
I really don't understand how you can send mail trough boxes on the same network, if you cannot telnet
Mark gave good way to solve you trouble,
I will give you another one, can you do on your redhat server :
netstat -a | grep smtp,
you should see as output :
*.smtp LISTEN,
If it's not the case, then sendmail is not runnig properly, nor listening on another port ??
May be you are using uucp on your network to send email each other ?
Can you check sendmail.cf to see the DaemonPort line (it should be commented),
Can you check also access file in etc/mail (check accesses !!).
Which sendmail version are you using ?
Many questions and not really an answer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2002 04:02 AM
тАО07-29-2002 04:02 AM
Re: Receiving Mail on Linux Redhat
In /etc/sendmail.cf is an option thar was only letting smtp(Port 25) to be used on the localhost.
It was this line:
--------------
# SMTP daemon options
#O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
---------------------
After remarking it out the who thing started to work.
Thanks for all for your help.
Marty
Marty@doerofthings.com (and it works)