Unable to send mail through mailx

Hi,

I am using solaris 5.9 OS and I am facing an issues with mailx.

My SMTP port is configured to listen 6190 and not the default one which is 25. I can send mail to my inbox when i do it manually through the following steps

root@<dbname> # telnet 15.12.88.10 6190
Trying 15.12.88.10...
Connected to 15.12.88.10.
Escape character is '^]'.
220 <Domain name>.com Trend Micro InterScan Messaging Security Suite, Version: 5.7 ready at Wed, 18 Apr 2012 10:20:00 +0800
helo
250 <Domain name>.com Hello [15.12.88.201]
mail from : apsprd@domainname.com
250 apsprd@sshcorp.com: Sender Ok
rcpt to : srinath@domainname.com
250 srinath@ksenergy.com.sg: Recipient Ok
DATA
354 <Domain name>.com: Send data now.  Terminate with "."
Subject: Test mail
This is a test mail
Just ignore
.
250 <Domain name>.com: Message accepted for delivery
quit
221 <Domain name>.com closing connection. Goodbye!
Connection to 15.12.88.10 closed by foreign host.

But when i use mailx I am unable to receive the mail

root@sshldb # echo "this is the body" | mailx -v -s "Test mail" srinath@<domain name>.com
root@sshldb # srinath@<domain name>.com... Connecting to [127.0.0.1] via relay...
220 sshldb.sshcorp.com ESMTP Sendmail 8.13.8+Sun/8.13.8; Wed, 18 Apr 2012 10:43:51 +0800 (SGT)
>>> EHLO <domain name>.com
250-<domain name>.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From:<apsprd@<domain name>.com> SIZE=84
250 2.1.0 <apsprd@<domain name>.com>... Sender ok
>>> RCPT To:<srinath@<domain name>.com>
>>> DATA
250 2.1.5 <srinath@<domain name>.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
050 <srinath@<domain name>.com>... Connecting to 15.12.88.10 via relay...
050 220 sshcorp.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.4675 ready at  Wed, 18 Apr 2012 10:25:43 +0800
050 >>> EHLO <domain name>.com
050 250-<domain name>.com Hello [15.12.88.201]
050 250-AUTH=LOGIN
050 250-AUTH LOGIN
050 250-TURN
050 250-SIZE 31457280
050 250-ETRN
050 250-PIPELINING
050 250-DSN
050 250-ENHANCEDSTATUSCODES
050 250-8bitmime
050 250-BINARYMIME
050 250-CHUNKING
050 250-VRFY
050 250 OK
050 >>> MAIL From:<apsprd@<domain name>.com> SIZE=370
050 530 5.7.3 Client was not authenticated
050 <apsprd@<domain name>.com>... Connecting to local...
050 220 sshldb LMTP ready
050 >>> LHLO sshldb.sshcorp.com
050 250-sshldb
050 250-8BITMIME
050 250-ENHANCEDSTATUSCODES
050 250 PIPELINING
050 >>> MAIL From:<>
050 250 2.5.0 ok
050 >>> RCPT To:<apsprd>
050 >>> DATA
050 250 2.1.5 ok
050 354 go ahead
050 >>> .
050 250 2.1.5 apsprd OK
050 <apsprd@<domain name>.com>... Sent
250 2.0.0 q3I2hpF9019329 Message accepted for delivery
srinath@<domain name>.com... Sent (q3I2hpF9019329 Message accepted for delivery)
Closing connection to [127.0.0.1]

In one of the above lie i could notice the error

050 >>> MAIL From:<apsprd@<domain name>.com> SIZE=370
050 530 5.7.3 Client was not authenticated

This is because the smtp is tryiong to connect to port 25 and hence getting this error.

Can somebody help me on how to change the default port number for smtp. I also tried changing the below lines in sendmail.cf but that doesnt help

O DaemonPortOptions=Name=MTA-v4, Family=inet
O DaemonPortOptions=Name=MTA-v6, Family=inet6
O DaemonPortOptions=Port=6190, Name=MSA, M=E

where the port number was 587 initially