SMTPMAIL.P update for new exchange servers

vdennis

Member
We have been using smtpmail for over a year now in our UNIX system with no problems. But as we are up-grading our exchange servers to 2010, a problem showed up where we would get an 'invalid domain' error message. The problem, in short, has to do with the LocalHost value. This is set in the gethostname.p program. The line of code for UNIX as we got it was :
<CODE>
INPUT {&SC} THROUGH VALUE("hostname -f"). /* if this doesn't work on your
platform, try uname -n */

To correct the problem, we simply remove the '-f' and that took care of the problem.

Hopes this saves you some time, as it took us 1.5 days to figure this out.
-Dennis-
 

Stefan

Well-Known Member
As replied in the other post, this has nothing to do with Exchange, this has to do with your Linux / Unix not understanding hostname -f - so you will need to use something which your OS does support, in your case (and also on AIX 4.3 for that matter) this is apparently hostname.

On CentOS 5.5 hostname will also return the hostname and hostname -f will (according to the man page) return the long host name.
 
Top