"Restore to Mailbox" is not working

Issue #1215 closed
Dennis created an issue

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)

  1. Janos SUTO repo owner

    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.

  2. Dennis 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"
    

  3. Janos SUTO 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.

  4. Dennis 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

  5. Janos SUTO repo owner

    Well, then try debugging /var/piler/www/controller/message/restore.php There must be an error somewhere.

  6. Janos SUTO 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.

  7. Robert Lanzke

    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.

  8. Log in to comment