Operating System - HP-UX
1752765 Members
5339 Online
108789 Solutions
New Discussion юеВ

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 3
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 .