mailx -s is not working

Hello,

I have two unix boxes..

One of the unix box version is

Linux iduxlys 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

I have shell script which has the below script.

cat xyz.log|mailx -s "export is  Successful" \ xyz.xyz@xyz

The above script works well and it sends every email to my outlook.

I have another unix,

Linux ulixyue 2.6.18-92.1.13.el5 #1 SMP Thu Sep 4 03:51:21 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

The below code is not working. It is not failing either.. But it is not sending any message to outlook.

What could be the reason? Is there any setup needs to be done in the above server?

Check if the second box is allowing mailing outside of the internal mailhandlers.
Since they're virtualy the same, chances are the first one allows routing to the outside, where teh second one has no idear how to do that.

Exchange is pretty picky on wrong From: headers, and just skips the mail if it does not like it, and gives you no error message in return. Try to set your correct From: address in your MTA like Postfix or Sendmail.

You can also try the "-r" option to set a From: address to see if that works.

Thanks!!!