Troubleshooting

A nightly cron job in a user's crontab sometimes fails and prints errors to stderr. The administrator wants these errors emailed to ops@example.com. Which TWO actions are required? (Choose two.)

Choose 2 answers

Show the answer

Correct answersC. Run a local MTA that can deliver or relay outgoing mailD. Set MAILTO=ops@example.com in the crontab

Cron mails a job's output to the address in MAILTO, but it hands the message to the local MTA, which must be running and able to relay it. cron.allow only controls who may use cron. Piping to logger sends output to syslog, not email.