HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Adding sender E-mail ID in mailx

 
SOLVED
Go to solution
gsingh
Advisor

Adding sender E-mail ID in mailx

HI,

We are running HP-UX 11.23 and monitoring the file system usage through a script. The script sends an E-mail when any FS crosses it threshold value. the E-mail is sent by mailx command.
Now the issue is all systems are sending E-mail from their hostname. I need suggestion is it possible that I can define a common sender E-mail ID on all systems? If yes what option i need to use. below is the command which is sending E-mail currently :

mailx -s "Mountpoint over Threshhold for RED" abc@xyz.com < /tmp/FS-Status.txt
3 REPLIES
Hakki Aydin Ucar
Honored Contributor
Solution

Re: Adding sender E-mail ID in mailx

mailx -r address . . .

check man page of mailx for more .

gsingh
Advisor

Re: Adding sender E-mail ID in mailx

Thanks.
Hakki Aydin Ucar
Honored Contributor

Re: Adding sender E-mail ID in mailx

better way to thank people is assign points to them, you know .