Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mailx 1

Status
Not open for further replies.

llevon

MIS
Jul 8, 2005
71
EU
Hi

I have a sun solaris server (OS 5.8) which sends mail via an exchange 2003 server. The Sun server is allowed to relay. However when our alerting message are sent the from address is servername@domain.local As a result some external spam guards block the message as it isnt a valid domain.

I need to alter the from address to be servername@capita.com

The script that sends the alerts at present has the line:

mailx -s "subject_name" recipient_address < file_attachment

Can anyone help or tell me a better way to send email alerts with a valid from address. Go easy on me Unix is not my thing.

Cheers,

Llev
 
I believe the [tt]-r[/tt] option will let you specify a "Return" address, which appears as the from address. Example...
Code:
mailx -s "subject" -r valid@email.com recipient_address < file_attachment
Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top