Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-23-2001, 04:40 PM
|
#1
|
LQ Newbie
Registered: Jun 2001
Location: NY, USA
Distribution: Mandrake 6.5 or 7.1
Posts: 5
Rep:
|
Can't connect sendmail from outside
.
Hi all,
I have a problem with sendmail to which i didn't find the answer for some time.
Problem :
My linux box is both on Internet and Internal network with 2 different NICs.
I can send mails from internal network but I can't from internet.
Configuration :
Let's say my internet @ is i.i.i.i and my private network is p.p.p.p
From the private network, i can telnet sendmail (port 25) on BOTH NICs. From outside, sendmail doesn't seem to be listenning at all (connection timeout).
Could it be some restrictions on port 25 for external connections ?
Thx,
JC
|
|
|
06-27-2001, 12:06 PM
|
#2
|
Member
Registered: Jun 2001
Location: Allen, Texas, USA
Distribution: Redhat
Posts: 82
Rep:
|
You are using sendmail, right?
Check /etc/sendmail.cf file and locate the line which says DaenonPortOptions, you might have it only allow local net, you should change it to listen to all connections (therefore from outside), it should read as:
O DaemonPortOptions=Port=smtp,Addr=0.0.0.0, Name=MTA
and
And if you have client machines outside your local net to use the SMTP server for outgoing emails (relay), then you must also modify the line in sendmail.cf, so it read like:
# SMTP client options
O ClientPortOptions=Address=0.0.0.0
Let me know what is your final result. regards.
|
|
|
06-27-2001, 04:51 PM
|
#3
|
Member
Registered: Feb 2001
Location: MI, USA
Distribution: Debian Linux 100% GNU
Posts: 210
Rep:
|
He must have used Redhat 7.1.
I know Redhat disabled Sendmail to listen on public IP in 7.1 version by design to strengthen security.
|
|
|
06-28-2001, 08:04 AM
|
#4
|
LQ Newbie
Registered: Jun 2001
Location: NY, USA
Distribution: Mandrake 6.5 or 7.1
Posts: 5
Original Poster
Rep:
|
.
Thanks for your replies.
I tried the commands you suggested in sendmail.cf
ClientPortOptions is not recognized by my 8.9.3 sendmail
The "DaemonPortOptions" was regognized though, but i'm still unable to open port 25 from external addresses.
I am running mandrake 6.5 (Linux version 2.2.13-7mdk)
Investigating that problem, I figured out sendmail was not using regular TCP wrapper as other services do. Should I try to include it in inetd scope ? ( As other services don't have restrictions on calling addresses, I would expect the same availability for sendmail)
|
|
|
06-28-2001, 05:26 PM
|
#5
|
Member
Registered: Jun 2001
Location: Allen, Texas, USA
Distribution: Redhat
Posts: 82
Rep:
|
Do you get any errors, such as connection refused etc?
Do you get a ping rely from the linux machine or traceroute to to it from the external ip?
I ask this because I cannot tell whether you have connectivity problem or you have configuration problem.
|
|
|
06-29-2001, 05:58 AM
|
#6
|
LQ Newbie
Registered: Jun 2001
Location: NY, USA
Distribution: Mandrake 6.5 or 7.1
Posts: 5
Original Poster
Rep:
|
This is not a connection problem.
This machine IS accessible from outside (this is my mail server !)
I can open any other services from internet (telnet, httpd, mysqld, ...) it's just that I can't open a connection on port 25 from outside !
|
|
|
06-29-2001, 10:36 AM
|
#7
|
Member
Registered: Jun 2001
Location: Allen, Texas, USA
Distribution: Redhat
Posts: 82
Rep:
|
I would suggest you to test by initiating a telnet to port 25 to the Linux box, and try to use netstat or tcpdump and observe what is going on with the Linux box. Perhaps from there, you'll be able to ping point where the problem is. Good luck.
|
|
|
06-29-2001, 10:39 AM
|
#8
|
Member
Registered: Jun 2001
Location: Allen, Texas, USA
Distribution: Redhat
Posts: 82
Rep:
|
Of course you do the telnet test from external network.
|
|
|
06-29-2001, 04:00 PM
|
#9
|
LQ Newbie
Registered: Jun 2001
Location: NY, USA
Distribution: Mandrake 6.5 or 7.1
Posts: 5
Original Poster
Rep:
|
.
Of course 
|
|
|
All times are GMT -5. The time now is 01:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|