mo10
1
Hi,
in Vitalpbx v4.2 i get this error via email:
Cron <root@XXpbx> test -x /usr/sbin/anacron || { cd / && run-parts --report /etc/cron.daily; }
run-parts: /etc/cron.daily/vpbx_clean_old_logs exited with return code 123
Diagnostic-Code: smtp; 550 5.1.1 <[email protected]>: Recipient address rejected:
User unknown in virtual alias table
How can this be fixed?
Thanks a lot
miguel
2
That was handled in the latest update (v4.2.0 R6)
1 Like
ari
3
To fix it, you can edit the file /etc/cron.daily/vpbx_clean_old_logs and replace the last line with the one below.
find $path -name "log_*.log" -type f -mtime +7 | xargs -r rm >/dev/null 2>&1
mo10
4
Thanks, did the latest update not fix the issue for you?
mo10
5
@miguel
@ari is right: R6 does not fix it.
Same error email came again today.
miguel
6
Did you verify the vpbx_clean_old_logs file content?
mo10
7
Version is 4.2.0-6, so your fix should be included.
content of vpbx_clean_old_logs is:
#!/bin/bash
path="/var/log/vitalpbx/"
find $path -name "log_*.log" -type f -mtime +7 | xargs -r rm >/dev/null 2>&1
/usr/share/vitalpbx/scripts/clean_logs >/dev/null 2>&1
Today i used apt update and apt upgrade. Could that have fixed it?
Last time i used the WebGui for update.
mo10
8
Same email this morning again.