Exim failing every morning?

Jordz2203

Verified User
Joined
Sep 8, 2022
Messages
75
Hi everyone,
We were running out CloudLinux/DA server fine until now. Exim worked well and everything is good. Three days ago I installed Spam Assassing using the command specified in the docs since our users were getting spam. Since then, every morning Exim seems to stop working correctly and when we try send mails on our server we get the following error emailed back instantly "exim: getting initial cwd failed: No such file or directory", this is easily fixed by restarting exim and dovecot in service monitor. Im not sure why its happening? I currently have the following tmpwatch cron job but Im not sure why it would only be giving a problem now?

0 4 * * * * /usr/sbin/tmpwatch -am 12 /tmp

Im not sure why this is happening?
 
I looked through that thread and didnt find a real solution?
Then you missed it. This was the solution for his issue:
I found the problem, i was nightly emptying the temp dir...

So if you do not have a cronjob which empty's the temp dir (shouldn't be needed anymore anyway), then this might not be the fix for you.
 
0 4 * * * * /usr/sbin/tmpwatch -am 12 /tmp
Oh I've overseen this. If this is clearing the /tmp then this is causing your issue most likely.
Try to disable it and see what's happening.

You don't need it anymore, Centos 7 is taking care of that automatically and can be adjusted in another place.
 
Oh I've overseen this. If this is clearing the /tmp then this is causing your issue most likely.
Try to disable it and see what's happening.

You don't need it anymore, Centos 7 is taking care of that automatically and can be adjusted in another place.
Im using CloudLinux, and I set it up a few weeks after launching the server because the temp dir got full
 
Back
Top