One of our users has a daily cron job which runs for 24 hours. The output is emailed to the user in the usual way. Because the output is piped into sendmail (postfix) over 24 hours, it appears in the queue with a pre-qmgr delay of ~86400 seconds. Our monitoring system then flags an alert as it thinks there's a delivery issue.

Is there any way of preventing this behaviour? Is there any way of getting sendmail to "start the clock" once the inbound pipe from cron has finished?


If I understand that correctly, the better solution would probably be to send the output of the job to a text file and then cat the text file to mail, or send it as an attachment. Holding a postfix thread open probably isn't a problem but it's not elegant.

  • Yep, that would be better but re-educating users to write scripts properly instead of relying on the cron-output-gets-emailed-to-you functionality is a pain. It may be the only way to 'fix' the issue, though. – Gaspode Jul 3 '18 at 13:19
  • We used to call it a LART... – Simon Greenwood Jul 3 '18 at 13:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.