Does anybody know how to backup exim mail queue?

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
31
473
Go on, have a guess
You're not wrong ;) Of that, only /var/spool/exim/input is of particular importance. If you run MailScanner you would also need to secure /var/spool/exim_incoming/input too.
 

lloyd_tennison

Well-Known Member
Mar 12, 2004
697
1
168
Exim will throw a tizzy fit if you try to restore the exim queue without the msglog directory, though.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
31
473
Go on, have a guess
Nope. Exim doesn't need the msglog at all (well, it might complain if the directory isn't there but it certainly does not need any of the files within it). I'd always recommend people to disable it as it only wastes space and affects exim performance:

no_message_logs

To quote the exim docs:
While Exim is working on a message, it writes information about each delivery attempt to the main log file. This includes successful, unsuccessful, and delayed deliveries for each recipient (see chapter 44). The log lines are also written to a separate message log file for each message. These logs are solely for the benefit of the administrator, and are normally deleted along with the spool files when processing of a message is complete. The use of individual message logs can be disabled by setting no_message_logs; this might give an improvement in performance on very busy systems.
 

lloyd_tennison

Well-Known Member
Mar 12, 2004
697
1
168
I will have to try that. I do know that if you restore without msglog you get an error in exim_mainlog for every single message it sends as exim states it cannot find or delete (some phrase like that) the log file.