LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-22-2015, 04:44 AM   #1
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Rep: Reputation: Disabled
port 25 can send/recieve outside but cant telnet from outside


hi all,

got a wierd problem, which i cant figure out

i CAN send and recieve emails from roundcube webmail to my gmail and vica versa, its on a vm which consists of postfix (SMTP)/dovecot (IMAP) and roundcube (webmail)

my postfix uses port 25 and i have enabled this through my pfsense firewall so it port forwards to my postfix server

so obviously it works as i can send recieve email from rouncube to my gmail and my friends hotmail, outlook accounts

but when i try to telnet to my postfix server ie telnet robina.ddns.net 25, it says connecting but it doesnt responed

can only one please help me on this

cheers,

rob
 
Old 10-22-2015, 04:50 AM   #2
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,689
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
where you are telnetting FROM may have port 25 blocked. try telnetting to port 22 and see what happens. if you see "SSH" then just press return/enter.
 
Old 10-22-2015, 04:56 AM   #3
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
From your telnet client machine, does robina.ddns.net resolve to your local server IP or your external IP?
If the latter, you won't be able to connect unless your router specifically supports NAT loopback.
You should use the hosts file or a local DNS server to provide correct local resolution or just telnet to the local name or IP.

Last edited by descendant_command; 10-22-2015 at 04:57 AM.
 
Old 10-22-2015, 05:24 AM   #4
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
mmm... but its wierd

if i change my postfix server to use port 587 and change my pfsense firewall NAT rule to the postfix server to use port 587 from my work pc i can telnet in to my postfix server at my home no problem

also this is the case if i change to use port 465 aswell

i will get the logs tonight when i get home

but it still doesnt explain why i can send/recieve from port 25 but cannot telnet into it

if i telnet port 25 it works internal but not external

Last edited by robertkwild; 10-22-2015 at 05:28 AM.
 
Old 10-22-2015, 05:36 AM   #5
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Originally Posted by Skaperen View Post
where you are telnetting FROM may have port 25 blocked.
this
 
Old 10-22-2015, 06:47 AM   #6
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
damn, they may block 25 out, i will check this out on my friends computer (as his router should allow all outbound) and get back to you guys
 
Old 10-22-2015, 07:14 AM   #7
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
http://www.canyouseeme.org/
 
Old 10-22-2015, 07:18 AM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
nmap 86.3.95.34 -p 25

Starting Nmap 6.40 ( http://nmap.org ) at 2015-10-22 08:18 EDT
Nmap scan report for cpc6-epso5-2-0-cust801.6-3.cable.virginm.net (86.3.95.34)
Host is up.
PORT   STATE    SERVICE VERSION
25/tcp filtered smtp
 
Old 10-24-2015, 11:49 AM   #9
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
You were right, our companys firewall was blocking it so i downloaded a telent app for my mobile used 3g data and i could telent to my smtp server no probs
 
  


Reply



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
bash script to recieve and send data for serial port ffonseca Linux - Software 6 12-15-2014 01:09 PM
Can send but not recieve namit Linux - Software 7 11-16-2005 05:28 PM
FC2 - cannot telnet out to port 25, so cant send email jaymer Linux - Networking 3 06-23-2005 03:28 PM
Can't recieve emails but can send them mosherben Linux - Software 12 08-10-2004 11:22 AM
recieve and send IP packets! Farhang Linux - Networking 1 07-25-2004 02:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:26 PM.

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