"Restore to Mailbox" is not working
Hi,
when i select an email to restore to the designated mailbox and cklick on the button “Restore to Mailbox” i get the Feddback “Restored”, but the email will not appear in the slected mailbox.
I checked the mail.log and syslog for some information (on the piler-VM and the mailserver), but there are no entries
What can i do to restore the mails?
Regards
Dennis
Comments (10)
-
repo owner -
reporter Hey,
checked the logs and looked on the wire with ngrep, but nothing happened.
The only output i got was in nginx/access.log:172.20.0.181 - - [01/Dec/2021:13:36:32 +0000] "POST /message.php HTTP/2.0" 200 1809 "https://192.168.143.212/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" 172.20.0.181 - - [01/Dec/2021:13:36:32 +0000] "GET /tmp/i.1089607 HTTP/2.0" 200 11476 "https://192.168.143.212/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" 172.20.0.181 - - [01/Dec/2021:13:36:32 +0000] "GET /tmp/i.1089608 HTTP/2.0" 200 11476 "https://192.168.143.212/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" 172.20.0.181 - - [01/Dec/2021:13:36:35 +0000] "GET /view/theme/default/assets/ico/favicon.png HTTP/2.0" 200 879 "https://192.168.143.212/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36" 172.20.0.181 - - [01/Dec/2021:13:36:39 +0000] "POST /index.php?route=message/restore HTTP/2.0" 200 260 "https://192.168.143.212/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36"
-
repo owner OK. What’s the value of the SMARTHOST in config-site.php? Make sure it points to your mail server. Also check the mail log as well. The restore process should syslog its actions.
-
reporter hm… the SMARTHOST-Value is set to the mailserver. But again, no action in mail.log (checked on piler and mailserver).
Do you have any other suggestions?Beside of the restore everything works fine
-
repo owner Well, then try debugging /var/piler/www/controller/message/restore.php There must be an error somewhere.
-
reporter Can you give me some hints for the debug process?
How should i begin?
Thank you -
repo owner Edit the php file, and add lines like below to various points until you find the troubling point.
syslog(LOG_INFO, “step1”);
Then when you try a restore these lines will be logged to the mail log.
-
Sorry if this is a stupid comment: Are you sure the mail is not in your inbox? It took me a minute to figure out the mail will be restored at the original date so it will not show up on top if you have your inbox ordered by date and the mail is very old.
-
repo owner Indeed, it’s a valid comment
-
repo owner - changed status to closed
No news is good news.
- Log in to comment
Check the nginx error logs, and run ngrep -X -d eth0 port 25 when you restore an email, and see what’s happening on the wire.