In my case it did not work due to greylisting by recipient MX server.
A mail transfer agent (MTA) using greylisting will "temporarily reject" any email from a sender it does not recognize. If the mail is legitimate, the originating server will try again after a delay, and if sufficient time has elapsed, the email will be accepted.
So it is better to test that outgoing mail reaches your notification address before expecting apticron
to work.
I used mail
command as described in this answer.
NOTE: it might be a good idea to use some test service like mail-tester.com first in a hope to not get your dedicated IP instantly flagged by real e-mail provider like Google or the one that serves your recipient. It is just a thought though, I have no idea if such test services actually work that way, but it would be a logical assumption.
By reading auto-reply from mail
I saw that my e-mail was not delivered with a mention of
Sorry, the service is currently unavailable. Please come back later
If you simply remove --cron
parameter apticron
will execute every hour instead of once per day. Which probably results in bypassing greylisting protection but does not fix real issues. E.g. my test e-mails ended up in spam.