Re: options to notify login error

INGeSI di Alessandro Barisone <[email protected]>
Newsgroups gmane.mail.getmail.user
Message-ID <[email protected]>
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

Thank you

Alessandro


-- 
INGeSI di Barisone Ing. Alessandro
Piazza Unità Nazionale 26
18100 Imperia (IM)

www.ingesi.it - [email protected]

Tel. 0183-738038
Cell. 324-0907445
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.