Author Topic: archivemail in Zentyal 7 / Ubuntu 20  (Read 4613 times)

mscfw

  • Zen Apprentice
  • *
  • Posts: 14
  • Karma: +4/-0
    • View Profile
archivemail in Zentyal 7 / Ubuntu 20
« 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

caguiar

  • Zen Apprentice
  • *
  • Posts: 20
  • Karma: +2/-0
    • View Profile
Re: archivemail in Zentyal 7 / Ubuntu 20
« Reply #1 on: April 09, 2021, 10:12:38 am »
Got the same issue.
@mscfw, have you got a solution yet?

mscfw

  • Zen Apprentice
  • *
  • Posts: 14
  • Karma: +4/-0
    • View Profile
Re: archivemail in Zentyal 7 / Ubuntu 20
« Reply #2 on: April 09, 2021, 01:39:26 pm »
@caguiar: Unfortunately not yet ...

turalyon

  • Zen Warrior
  • ***
  • Posts: 204
  • Karma: +15/-0
    • View Profile
Re: archivemail in Zentyal 7 / Ubuntu 20
« Reply #3 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.

turalyon

  • Zen Warrior
  • ***
  • Posts: 204
  • Karma: +15/-0
    • View Profile
Re: archivemail in Zentyal 7 / Ubuntu 20
« Reply #4 on: April 16, 2021, 04:05:15 pm »
Did you test it?

caguiar

  • Zen Apprentice
  • *
  • Posts: 20
  • Karma: +2/-0
    • View Profile
Re: archivemail in Zentyal 7 / Ubuntu 20
« Reply #5 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