Zentyal Forum, Linux Small Business Server

Zentyal Server => Email and Groupware => Topic started by: mscfw on March 23, 2021, 10:47:02 am

Title: archivemail in Zentyal 7 / Ubuntu 20
Post by: mscfw on March 23, 2021, 10:47:02 am
Hi all,
upgraded my server a few days ago. I noticed the daily mail clean up job is generating an error:

Code: [Select]
xargs: archivemail: No such file or directory
xargs: archivemail: No such file or directory
run-parts: /etc/cron.daily/archivemail exited with return code 127

First I though this is linked to xargs, but I was wrong - archivemail is the name of the cron job and the name of an program to clean up the mail directories.

Searching a bit it looks like archivemail was avaliable up to Ubuntu 18, in Ubuntu 20 it tagged as "Deleted". => https://launchpad.net/ubuntu/focal/amd64/archivemail/0.9.0-1.1

How do you deal with this? Are there alternatives?

Thanks for any input,
bye

Markus
Title: Re: archivemail in Zentyal 7 / Ubuntu 20
Post by: caguiar on April 09, 2021, 10:12:38 am
Got the same issue.
@mscfw, have you got a solution yet?
Title: Re: archivemail in Zentyal 7 / Ubuntu 20
Post by: mscfw on April 09, 2021, 01:39:26 pm
@caguiar: Unfortunately not yet ...
Title: Re: archivemail in Zentyal 7 / Ubuntu 20
Post by: turalyon on April 09, 2021, 02:41:49 pm
Hi,

Dovecot has a command called 'doveadm' that helps to maintain and debug issues. For this particular case, I think that you could use the command 'doveadm expunge' to clean up the emails.
Title: Re: archivemail in Zentyal 7 / Ubuntu 20
Post by: turalyon on April 16, 2021, 04:05:15 pm
Did you test it?
Title: Re: archivemail in Zentyal 7 / Ubuntu 20
Post by: caguiar on April 16, 2021, 05:19:11 pm
I used the autoexpunge=15d configuration in dovecot.conf.mas stub, and it works.
For an example of this feature see: https://notes.sagredo.eu/en/qmail-notes-185/expunging-expired-junk-and-trash-emails-with-dovecot-124.html