Web Hosting Talk







View Full Version : mail problem ???


matt2kjones
12-29-2002, 11:49 AM
ok, i have one pc and one server

pc : windows 2k, with internal ip 192.168.0.2

server : redhat 7.3, internal ip of 192.168.0.1 and external ip of 81.97.225.82

this is the problem :

http://www.thedigitaldream.co.uk/error.jpg

thats what i get trying to send mail from the pc that is on a network with my linux server.

here is my network setup on the win2k pc :

http://www.thedigitaldream.co.uk/network.jpg

also, this problem only arised when i networked the pc's.

when the server and the pc had their own internet connections, outlook sent mail fine.

does anyone know what is wrong.

i can also paste my dns settings as well if u like

Thanx

lotuslnd
12-29-2002, 12:25 PM
Try adding the domain you're sending from to /etc/mail/relay-domains on the RedHat box.

MBC
12-29-2002, 12:25 PM
Have you tried using your ISP DNS servers on the win2k machine rather than the router?

xerophyte
12-29-2002, 03:01 PM
You need to use your ISP DNS IP, router ip address is just gateway address, i am not sure if router can act as DNS server, but its good to use the ISP DNS server ip address

i guess this is what happening

Outlook experess trying to resolve your smtp.server FDQN into ip address its fails ..

first change the win2k DNS into ISP DNS then try to ping the smtp server ...

see if you are outlook express try to send the email .. if not .. some time outlook express accout get corrupted so delete the accoutn and recreate the indentiy

matt2kjones
12-29-2002, 06:34 PM
this is the result of a ping of my mail server :

http://www.thedigitaldream.co.uk/ping.jpg

thats when using my server ip as the dns server

so its pinging the server fine

if u look at the error that it gives.

it says it cant look up the ip address 192.168.0.2, well thats because its an internal ip.

so im having the feeling that its the network thats setup wrong, as it shouldn't be trying to use 192.168.0.2 as the pc's ip, it should use the external ip shouldn't it???

any help would be appriciated.

Noldar
12-29-2002, 07:15 PM
What MTA are you using? You need to add your PC's IP address to whatever file controls which hosts are allowed to relay through your mailserver.

Richard

Mdot
12-29-2002, 07:44 PM
/etc/mail/relay-hosts
for sendmail

matt2kjones
12-30-2002, 09:32 AM
Thanx for that.

so all internal ip addresses of pc's connected to the server have to be setup to be able to relay???

can i a domain, instead of adding all the ip addresses of all the machines connected?

Thanx for your help

Matt

Noldar
12-30-2002, 10:29 AM
I've never done this, but I *think* you can just put 192.168.0 and that should cover all your internal IP addresses (192.168.0.1 thru 192.168.0.254).

Richard

matt2kjones
12-30-2002, 10:35 AM
ahhh so u can add a network which will cover from your first internal ip to the last

for example, from 192.168.0.1 to 192.168.0.255 by adding 192.168.0

thats great

thanx :)