Exim queue folder symlink

pachiko

Active Member
Nov 11, 2013
30
0
6
cPanel Access Level
Root Administrator
Hello,

The folder's /var/spool/exim/input seize increases , and saturates the root partition ( / ).

can I create a symlink to this folder from another partition? is that affect Exim performance or it keep working?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

While I have seen servers where a symbolic link was created from /var/spool to another partition, it's better to simply ensure your /var partition has enough free space available. One option is to increase the size of the /var partition, however this often involves reinstalling your operating system. The other option is to investigate and see why your email queue is so large. You may want to review the messages in the queue to see why they are not delivering.

Thank you.
 

pachiko

Active Member
Nov 11, 2013
30
0
6
cPanel Access Level
Root Administrator
Hello,
I dont want to reinstall my operating system, i want to move /var/spool to /home/var/spool where i have more space.

Can i do that without reinstalling my operating system?

Thank you.
 

cPanelPeter

Technical Analyst III
Staff member
Sep 23, 2013
575
21
143
cPanel Access Level
Root Administrator
Twitter
Hello,

Yes this can be accomplished. It is strongly recommended that you get your system administrator to do this for you. cPanel/WHM can not support this for you as it is a system administration task. I can provide you with the basic steps, but please understand that Exim must be shutdown while you do this, and depending on how many messages there are, that can take quite some time.

As cPanelMichael already stated, it would be better to determine why the queue is that large. Moving data to another partition is a bandaid fix and will not solve the real problem.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Have you checked to see why your mail queue is so large as of yet? You should do this before adding a symbolic link.

Thank you.
 

pachiko

Active Member
Nov 11, 2013
30
0
6
cPanel Access Level
Root Administrator
Hello,
Yes, there is a client that send handred of mail every day, with others , the mail queue become so large, I cant prevent client from sending mails, so I have to find a solution for this issue.
Another question, when all mails are delivred, the /var/spool/mqueue seize is big ( more than 200m with fiew mail in queue)
is that normal?

Waiting your help.

Best regards
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
In addition to emails, the mail queue also includes certain logging details. Assuming you decided to create the symbolic link, the steps to take would be:

Code:
service exim stop
mv /var/spool /home/
ln -s /home/spool /var/spool
service exim start
However, keep in mind that this is not supported, and it's not something we recommend.

Thank you.