mail issue

Hi Friends,

I wrote one shell script which will send some emails to the customers.
I am using the "mail" command on the script to send the mails.
As my hostname is "test.xxxx.com" and the username is "noreply", the sender address will become noreply@test.xxxx.com. As test.xxxx.com is not a registered fqdn some of the clients mail spam filter is blocking the mails. Is there any solution to resolve this issue?

Regards,
Arumon

add a line in your /etc/aliases as below and try.

noreplay: noreplay@xxx.com

Have you configured mail using your ~/.mailrc file?
You can add a line (or create a new file with this line) that sets your return address like this:

set from=noreply@xxxx.com

See man mail or man mailx for other things you can configure in ~/.mailrc.