SMTP Server using wrong IP for outgoing connection

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

SMTP Server using wrong IP for outgoing connection

Postby kgoodknecht » Apr 30 05 11:24 am

Since I upgraded to v6.04 (Build 1025) the SMTP service has been ignoring the assigned IP for outbound connections. Intstead, it is using the first IP on the NIC which is not the IP for my MX record.
This is Win2k server SP4 with a 3COM 3C905C-TX NIC.
Best regards,

Kevin Goodknecht [Microsoft MVP]
See me in the Microsoft Public DNS newsgroups
kgoodknecht
Senior Member
 
Posts: 161
Joined: Nov 24 03 1:31 pm
Location: Wichita Falls, TX

Postby Pascal » Apr 30 05 11:26 am

Are you using the "Gateways" feature to control which IP should be used? (Think this will turn out to be one for Genie, as this is most likely driver related, but should try and get as many details as possible)
Pascal

Qbik New Zealand
pascalv@qbik.com
http://www.qbik.com
Pascal
Qbik Staff
 
Posts: 2623
Joined: Sep 08 03 8:19 pm
Location: Auckland, New Zealand

Postby kgoodknecht » Apr 30 05 11:34 am

Pascal wrote:Are you using the "Gateways" feature to control which IP should be used? (Think this will turn out to be one for Genie, as this is most likely driver related, but should try and get as many details as possible)


Thanks for the quick reply Pascal. Yes, I am using the Gateways feature to control. If there is any other details you need, do not hesitate asking. I didn't know what else beyond the OS, SP Level, and NIC model. Oh maybe one more thing the NIC driver version, 5.0.2195.6601
Best regards,

Kevin Goodknecht [Microsoft MVP]
See me in the Microsoft Public DNS newsgroups
kgoodknecht
Senior Member
 
Posts: 161
Joined: Nov 24 03 1:31 pm
Location: Wichita Falls, TX

Postby genie » Apr 30 05 4:31 pm

If gateway feature is used, then the driver will assign first NIC IP as a source address - I'll check the driver if there is simple way around this problem.
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby kgoodknecht » Apr 30 05 4:54 pm

genie wrote:If gateway feature is used, then the driver will assign first NIC IP as a source address - I'll check the driver if there is simple way around this problem.


I have any gateway, and have specified the IP address. It has always worked, but I noticed this past week after I upgraded that it was sending on the first IP instead of the specified IP.
Best regards,

Kevin Goodknecht [Microsoft MVP]
See me in the Microsoft Public DNS newsgroups
kgoodknecht
Senior Member
 
Posts: 161
Joined: Nov 24 03 1:31 pm
Location: Wichita Falls, TX

Postby genie » Apr 30 05 6:30 pm

How many IP addresses do you have for your gateway? Also, can you email your routing table to me, please?
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby kgoodknecht » May 01 05 3:23 am

genie wrote:How many IP addresses do you have for your gateway? Also, can you email your routing table to me, please?


Email sent.
Best regards,

Kevin Goodknecht [Microsoft MVP]
See me in the Microsoft Public DNS newsgroups
kgoodknecht
Senior Member
 
Posts: 161
Joined: Nov 24 03 1:31 pm
Location: Wichita Falls, TX

Postby eugenez » May 20 05 6:32 pm

can you tell me how do you assign the outbound smtp to an assigned ip?
eugenez
 
Posts: 2
Joined: May 19 05 9:32 pm

Postby genie » May 20 05 6:33 pm

It is done using gateway selection feature in the service properties.
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby eugenez » May 20 05 6:50 pm

I got a problem here actually. i have 2 isp connection and both isp cannot pop/smtp the isp mail server from the other side. So i would like to assign each of the isp to use their own mail server.
eugenez
 
Posts: 2
Joined: May 19 05 9:32 pm

Postby adrien » May 27 05 10:38 am

Actually part of assigning the gateway is to assign the interface to also bind to. So if you have say multiple external IPs on the same NIC, then you should be able to select which one WinGate binds to.

then the engine calls the "bind" socket API to associate the source IP with the one you have chosen. That's the way it should work anyway. I don't think we changed anything there, I'll have a look.

The Gateway selection part of it uses the driver, but that is independent of the IP address that is bound to, it only sets the next-hop MAC address so that the packets will go out the gateway you specify.

To set the source IP, you can select from the list, or even manually specify any arbitrary address you like.... if the address doesn't exist, then the call to bind will fail, but you aren't prevented from entering it.

Adrien
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland


Return to WinGate

Who is online

Users browsing this forum: No registered users and 4 guests