Getmail/fetchmail not running after cronjob execution
I've been trying to get the fetch mail function to work for quite a while now. Several occasions over the last few weeks.
It was only today I actually tried looking deeply into the issue. I can see that the crontab is issuing the command for the getmail user to run the run-getmail.sh file in /usr/local/bin However, I have reason to believe that it doesn't actually run because after I see in the logs that the command has run, nothing appears in the mailbox that is setup to receive the mail.
While checking around I have noticed that while the getmail user is the owner of the file, it isn't given the permission to execute the script, by default it only has read perms.
I've had to login to the getmail user and chmod +x the run-getmail.sh script and it now appears to be working.
Maybe this is something to look into?