Using SENDMAIL with Exchange Server

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Nov 2, 2010
8
0
#1
Hi, I'm trying to use the SENDMAIL command to relay off my exchange server. The same BAT file of commands works OK when given an internet email account, so my code is OK, but I can't get the Exchange system to accept the authentication.

The server running the BAT files is an approved relay host on the Exchange server.

Has anyone got this to work?

Here's the code I'm using

OPTION //MailAddress="hugh.foster@servisair.com"
OPTION //Mailpassword="notmypassword"
OPTION //Mailuser="Hugh Foster"
OPTION //Mailserver="xx.xx.xx.xx"
SENDMAIL hugh.foster@servisair.com "PINGU21 Objects Down Report" @PRESULTS.TXT

some details changed to protect the guilty :)
 
Oct 29, 2008
83
0
#2
Hi, I'm trying to use the SENDMAIL command to relay off my exchange server. The same BAT file of commands works OK when given an internet email account, so my code is OK, but I can't get the Exchange system to accept the authentication.

The server running the BAT files is an approved relay host on the Exchange server.

Has anyone got this to work?
Works here, but without the authentication (user/pass blank) on Exchange 2003.