views:

23

answers:

2

Hi

I have two network cards in my server, and both of them are connected, one is connected local and other one internet,

I have created a SMTP service, the problem is that the smtp only tries sending emails from the local network card.

I want it to try send emails from the internet network card, how can this be solved?

A: 

SMTP does not know about network interface cards. The decisions is made by the operation system. What does your routing table look like, e.g. the output of "netstat -rn" on a Unix-like OS, and what is the IP address of the destination that your SMTP service tries to connect to?

ShiDoiSi
A: 

Please excuse the non-answer, I can't comment yet.

If this is a code problem, not a system config problem, can you post the code you use to connect to the remote SMTP server?

Lee Reeves