Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail Relay problem

Status
Not open for further replies.
Oct 3, 2001
11
US
I am trying to send mail from my UNIX server to a SMTP server on the WAN. I had it set up so that it was sending through my Exchange Server on the LAN. I was having a mail relay problem on the Exchange Server and had to restrict mail relay, I tried to put the LAN IP address of the UNIX server in the exceptions list of Exchange but that would not work. I just want to use the SMTP server of my ISP but it will not work. I checked the fire wall and there is no rule stopping traffic from the LAN to the WAN, but I can not ping the WAN from the UNIX server. I can ping the UNIX server from anywhere on the LAN and I can ping the UNIX server from it self but I can not ping any other IP address' with in the LAN or on the WAN. I can send mail through the Exchange server but I can not ping it from the UNIX server. PLEASE HELP!
 
What is the ping error that you get?
have you tried "ping -n xx.xx.xx.xx" where xx is the ip of the host you are trying to reach.

if you can use the -n option then the problem is in your name resolution. check that /etc/resolv.conf is pointing to your dns server (if you have one) else check /etc/hosts for entries that you are trying to ping.

stan
 
I'm a little confused by your post.

You are trying to get to wan by addresses or names? Do you have a default route set? Do you have name resolution ( /etc/resolv.conf) ?

Does the router have a route BACK to the LAN the SCO box is on?


Tony Lawrence
SCO Unix/Linux Resources tony@pcunix.com
 
I pinged with the -n and was able to ping anything in the LAN but not the WAN, I get a "no route to host" error when I try to ping the WAN. I am trying to get to the WAN by IP address. I do not know if I have a default route set, how would I check that? We do have name resolution the /etc/resolv.conf file reads our DNS servers on the WAN. The last line of it I did not understand, "hostserver local bind" The router has no sending limitations for this UNIX server it allows anything out. We do not need to receive mail back in to this server, return mail is sent to our Exchange server. I have not set up any kind of special rules to allow anything back into the LAN that the SCO box is on.
 
How do I find what the gateway is currently set to?

when I use netstat -nr

Destination Gateway Flags Refs Use Interface
10 10.0.0.7 UL 1 0 net1
10 10.0.0.7 UL 0 0 net1
10.0.0.7 127.0.0.1 UGHS 1 31 lo0
127.0.0.1 127.0.0.1 UH 3 21 lo0
224 10.0.0.7 UCS 0 0 net1

I do not understand what this means, this machine is 10.0.0.7 but I do not have a 127.0.0.1 on my network, I have seen close to this configuration in other posts so I'm inclined to think that this is correct or close, there is no mention of our gateway or DNS in this.

 
You have no default gateway at the moment.

It would have shown as 0.0.0.0 or (if you just did netstat -r) as "default".


*Everybody* has a 127 network. Everybody (on SCO osr5) has a 224 network too.

You might want to read
You should probably read too..




Tony Lawrence
SCO Unix/Linux Resources tony@pcunix.com
 
So I have to set a default gateway in order to get to any machine that is not in the same segment of my network. There is plenty of information on this site as to how to do that. THANKS!

Last question:

Why did I have to use the -n on my ping command in order to ping internally?
 
If you had to use ping -n that would be because you have no way to resolve host names. You can put them in /etc/hosts or set up /etc/resolv.conf ; faq58-1426 tells you how to do that.



Tony Lawrence
SCO Unix/Linux Resources tony@pcunix.com
 
They are already set up in /etc/reslv.conf as our DNS servers, but those are on the WAN, is it possible that this is not working because without a default gateway the computer can not get to those DNS servers on the WAN?
 
exactly.

you need to set up a default route.
route add default xx.xx.xx.xx
where x's are the ip of firewall or router.

stan
 
Except that won't survive a reboot.

Earlier in the thread he's already been told how to set it.

Tony Lawrence
SCO Unix/Linux Resources tony@pcunix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top