In Windows there is an nbmail.cmd script which has an option to set who to send the email as, I would bet somewhere in the email script you use there is an option to set sender address, I know sendmail has an option to send mail as someone else.
From: veritas-bu-bounces AT mailman.eng.auburn DOT edu [mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of Lightner, Jeff
Sent: Tuesday, August 09, 2011 8:33 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Email from NetBackup 7.1
Has anyone seen an issue wherein notification emails from NetBackup are coming from their real user account rather than their effective user (root) account? If so is there a fix?
DETAILS:
Yesterday I needed to restart NetBackup on my RHEL6 master.
Overnight I saw it sending notification emails about completed backups using my ID on that host as the sender rather than root’s ID as it normally does.
I had recently created myself a login account on the server and had done “sudo su –“ to become root yesterday to do the restart of NetBackup. It appears the notifications were somehow generated based on my real login rather than the effective ID (root) I had when I switched users to root. Looking at processes today I verified they all are running as root and there are none running under my real login. Has anyone seen this issue with email?
When I logged into the GUI I did it as the root user so that doesn’t play into this.
Please don’t tell me to test by stopping and restarting NetBackup after doing a direct login as root as opposed to su. I’m smart enough to figure out that would likely work. I’m more interested in why it would be using my real ID rather than effective ID in the first place. On our 6.5 master I never saw this issue and I always did the su to root there.