Satish,
If the mail doesn't wokr with the above mail command then it is definitely a problem with the communication between your Spectroserver and exchange . I suggest to check with your exchange admin on this.
I believe when you are trying to send email from cli using mail command on the Spectroserver , you get a error"failed to connect": right?
ex:
- Type the mail command like the below
mail -h RCI-HAS-CAS01.hastinapur.res -m hastinapur.res -u caspectrum
2.From the command prompt now type
i)mail -s "test" <domain address>
ii) hit enter you will get
Using SMTP host notessmtp
Using return address "WAN" <wanload@nexweb.org>
Type a . (period) hit enter an then you get the mail message
Get this output for me.