In case you want to setup sendmail on SUA and use your MS Exchange to actually receive the mail and process it further; these steps will be handy.

Downloaded and installed SUA on Windows 2003 R2 system.

Configured sendmail.ch with SMARTHOST entry

Note: A sample entry will look like:

#Smart "relay hosty"

DS<ExchangeServer_HostName>

We need to set the setUID for the sendmail binary explicitly

$ cd /usr/sbin chmod 775 sendmail chmod 4775 sendmail

$ chmod 775 sendmail

$ chmod 4775 sendmail

Note: Unless these steps are performed; we will get “Operation not permitted” error.

Error message: "/bin/ksh: /usr/sbin/sendmail: Operation not permitted"

Then send the mail using sendmail

$ mailx -v -s "test" abhisek@<domainname.com>

Hello from SUA

.

EOT

abhisek@< domainname.com >... Connecting to xxx. domainname.com. via relay

...

220 xxx. domainname.com Microsoft ESMTP MAIL Service ready at Mon, 7 Fe

b 2011 21:18:30 +0530

>>> EHLO ABHI21811229.DOM218030.Local

250-xxx. domainname.com Hello [x.x.x.x]

250-SIZE

250-PIPELINING

250-DSN

250-ENHANCEDSTATUSCODES

250-STARTTLS

250-X-ANONYMOUSTLS

250-AUTH NTLM

250-X-EXPS GSSAPI NTLM

250-8BITMIME

250-BINARYMIME

250-CHUNKING

250-XEXCH50

250-XRDST

250 XSHADOW

>>> MAIL From:<domainname+Administrator@xxx. domainname.com > SIZE=48

250 2.1.0 Sender OK

>>> RCPT To:<abhisek@ domainname.com >

>>> DATA

250 2.1.5 Recipient OK

354 Start mail input; end with <CRLF>.<CRLF>

>>> .

250 2.6.0 <201102071548.p17FmSNI000841@xxx. domainname.com > [InternalId

=6] Queued mail for delivery

abhisek@ domainname.com... Sent (<201102071548.p17FmSNI000841@ domainname.com >

[InternalId=6] Queued mail for delivery)

Closing connection to xxx. domainname.com.

>>> QUIT

221 2.0.0 Service closing transmission channel

$