LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-16-2023, 10:32 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,584

Rep: Reputation: 179Reputation: 179
telnet to port 25 Not route to host


I'm trying to send an email to host, but it's not going. I've tried 'telent host 25' and also port 587, but I get connection refused. 'telnet localhost 25' works. From a remote host I can telnet to various other ports on that host without problem. I've stopped the firewall and sendmail is running. /etc/mail/access is empty. According to netstat, sendmail is listening on both ports:
Code:
netstat -nlpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      21010/sendmail: acc 
tcp        0      0 0.0.0.0:587             0.0.0.0:*               LISTEN      21010/sendmail: acc
How can it be that sendmail is listening on 25/587, no firewall is running, and yet remote hosts can't connect to these ports?

Last edited by mfoley; 11-17-2023 at 06:01 AM.
 
Old 11-18-2023, 10:54 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,345

Rep: Reputation: Disabled
Perhaps an ISP router is blocking the port(s), returning an ICMP "unreachable" error?

Running tcpdump (at the client end) should be sufficient to confirm whether this is the case or not.
 
Old 11-19-2023, 09:32 PM   #3
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,162

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Quote:
, but I get connection refused
refused would mean IP is block, or not allowed

have you tried asking whether remote party is doing IP Whitelisting?

If yes, then asked them to whitelist your IP. And check again.
 
Old 11-21-2023, 06:12 AM   #4
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
Is your host name listed in /etc/mail/local-host-names ?

Is your host name listed in /etc/hosts (xxx.xxx.xx.xxx somedomain1.com somedomain1)?

If DNS is involved, have you verified the MX entry points to your domain / IP ?

Last edited by bitfuzzy; 11-21-2023 at 06:16 AM.
 
  


Reply

Tags
access, sendmail



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Packet going out of wrong interface due to OS adding cache route - OS trying to route through default route msr1981 Linux - Networking 2 10-11-2017 02:58 PM
Packet going out of wrong interface due to OS adding cache route - OS trying to route through default route msr1981 Red Hat 1 10-09-2017 05:45 AM
telnet: Unable to connect to remote host: No route to host grob115 Linux - Networking 3 07-30-2010 10:18 AM
telnet works but 'telnet host 25' gives 'no route to host' karlmdv Linux - Networking 2 07-25-2006 06:28 AM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration