a few days ago a sendmail cronjob that is scheduled to run every 20 minutes started to fail each run with permission problems. It happened out of the blue - I didn’t install updates to neither ubuntu nor mailcow myself, but thinking about it, it might have been an unattended update of ubuntu though.
This is the message:
Subject: Cron <smmsp@mail> test -x /etc/init.d/sendmail && test -x /usr/share/sendmail/sendmail && test -x /usr/lib/sm.bin/sendmail && /usr/share/sendmail/sendmail cron-msp
Body: mkdir: cannot create directory ‘/var/run/sendmail’: Permission denied
What I did so far is:
- reboot the machine -> no luck
- install updates to ubuntu + reboot -> no luck
- for the sake of the experiment, set permissions to 777 or 666 for the directory and/or files -> each time another file was then the problem, I stopped doing that after 5-6 or so.
- then I checked google and found after a while a post that mentioned an update script that might have not been executed during an update of sendmail: /usr/share/sendmail/update_sendmail . That solved the problem but only for a few hours.
It’s been a while, but I think I installed sendmail/postfix on the host to be able to receive the cronjobs output as email and I guess it interferes now with mailcow somehow.
Does anybody have an idea how to investigate further?
I might just replace that with “ssmtp” as I really only need the forwarding part. Back then I didn’t know of “ssmtp”.
And thanks for this great and free product, fell in love on day one after maintaining my own mail setup manually for 10 years, I should have done the switch a lot earlier!
(btw. I’d suggest a tag for docker, too. 🙂 )