From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97743146511157.tru64-unix-managers.marc@archive.invalid> From: "Thomas, Douglas L." Date: Thu, 21 Dec 2000 20:28:49 +0000 To: tru64-unix-managers Subject: SUMMARY: Cron's email responses? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97743146511157 A special thanks to those who responded: William J Bochnik Steve Butcher Bill Melvin David L. Smith Shiva Ludek Babor Alex Harkema Chewy John Venier Thomas M. Payerle Ann Buck Respondents suggested: 1) Implement .forward in the users' home directory which will forward mail to a specified address. This did not work because the email was never making it to the user because it was being send through the Exchange server, who knows nothing of the "orabatch" user. So it gets bounced back to glcustap's POSTMASTER (root), which is set up in /var/adm/sendmail/aliases. 2) Create an alias in /var/adm/sendmail/aliases of orabatch:orabatch@glcustap.glgt.com and run newaliases. When I ran newaliases, it complained that the aliases could only be local names. 3) Edit sendmail.cf to make sendmail work the way I wanted it to. I was also warned not to make changes to this file unless I know what I'm doing. I don't, so I didn't. Noting what else is in the /var/adm/sendmail directory, I did a little research on the local.users file. I found that since I am set up as a mail client to the Exchange server, I am sending all mail to Exchange to resolve the destination address. By adding orabatch to local.users and bouncing sendmail (/sbin/init.d/sendmail restart) all mail destined to orabatch will be handled internal to the server. My original post: > I have a 4100 (glcustap) and an ES40 (dgux01), both running 4.0E, that have > an account (orabatch) strictly for running CRON jobs. Also, of probable > importance, is that I have set the systems up as Mail Clients due to some > flakiness with Exchange. > > The annoyance that I'm experiencing is that the output of the cron jobs, > since it is not redirected, is being emailed to orabatch. Since Exchange > cannot resolve this name it gets kicked back to root's mailbox as a send > failure with an unknown addressee. This appears to be normal and I don't > think this is an error. > > Now, I can send email to orabatch@glcustap.glgt.com successfully, but not > orabatch or orabatch@localhost. > > How can I tell cron to send emails to fully qualified email addresses? > > I understand that I can redirect the output on the crontab command line, but > I'd really like to know how cron does this. Douglas L. Thomas Senior Network Support Specialist - Unix Administrator Great Lakes Gas Transmission Company * Phone: 248-205-7509 * Fax: 248-205-7640 * eMail: dlthomas@glgt.com