1820263 Members
2856 Online
109622 Solutions
New Discussion юеВ

Re: email from cron

 
bill_allen
Frequent Advisor

email from cron

I have a HP-UX server running 11.11. A previous administrator had emails from cron going to his email address. I have fixed /etc/mail/aliases and ran newaliases, but root cron job outputs are still going to the old admins account. Where else do I need to look to see why this is happening. I need to change it so that root cron outputs are emailed to a different email account. Any help would be appreciated.
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor

Re: email from cron

Hi,

Check the /etc/aliases file.

Regards,
Robert-Jan
Pete Randall
Outstanding Contributor

Re: email from cron

Check the cron job itself to see if the addressee is explicitly stated within it.


Pete

Pete
Jeff Schussele
Honored Contributor

Re: email from cron

Hi Bill,

Check to see if the cron job itself has a specific email address in it.
Also make sure root's home directory doesn't have a .forward file in it that's routing the mail.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Steven E. Protter
Exalted Contributor

Re: email from cron

Shalom,

crontab -l can have job output routed to mailx -s "subject" email address

As already noted the same logic or other send methodology can be in the jorbs themselves.

Your choice of your email address as an ITRC ID is likely to attract spam. I recommend you change it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
bill_allen
Frequent Advisor

Re: email from cron

Thanks for the help guys. What had happened is that I had done all the things you all suggested, but still a problem. What I did not mention in my querry was that two system configured with NIS were involved. All the changes were applied to one system, but the changes did not get applied to all the systems involved until I did a /var/yp/ypmake, the output of which indicated that the aliases changes are also pushed to the other systems in this way. I did not realize that. Anyway, the deed is done, problem solved.