Re: options to notify login error
Celejar <[email protected]>
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 27 Aug 2020 15:43:15 +0200 INGeSI di Alessandro Barisone <[email protected]> wrote: > On 27/08/20 11:40, Martin Gregorie wrote: > > > I run getmail from a cron job which executes every 10 minutes to fetch > > mail from a single source, split the incoming mail into two streams: one > > is delivered locally while the other is passed to Postfix for delivery. > > > > If getmail is unable to contact to the source, the cron script returns > > an error and crond reports this error to root via an email. This is > > default error handling for crond. I have my email system configured to > > redirect all mail for root to myself. > > > > So, since I assume that you'll also be using crond to periodically > > execute getmail, all you need to do is to configure the cron script to > > make crond send any getmail failure messages directly to yourself. > > > > Martin > > > > Thank you for your hint, it was useful and works fine. > > I'd like to add a suggestion: to have a better management of mail > notifications from cron I found this on google: > > https://habilis.net/cronic/ > > So I'll receive a more detailed email only in case of errors That looks neat - thanks! I'll have to look into using it (or one of the alternatives mentioned there) for my cron jobs. Celejar