Restore to multiple accounts not working

Issue #323 resolved
Sachin Acharya created an issue

Hi,

when i try to restore any mail to multiple users (sender and receiver) together, I get the following error in /var/log/mail.log:

Jun 16 14:23:50 mail postfix/smtpd[28178]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 554 5.7.1 xxx@aaa.com%20yyy@aaa.com: Relay access denied; from=no-reply@mail.aaa.com to=xxx@aaa.com%20yyy@aaa.com proto=SMTP helo=<mail.aaa.com>

Comments (14)

  1. Sachin Acharya reporter

    I upgraded my piler. piler -V is

    piler 0.1.25-rc2, build 871, Janos SUTO <sj@acts.hu>
    
    Build Date: Tue Jun 17 15:19:05 IST 2014
    ldd version: ldd (Debian EGLIBC 2.13-38+deb7u1) 2.13
    gcc version: gcc version 4.7.2 (Debian 4.7.2-5) 
    Configure command: ./configure --localstatedir=/var --with-database=mysql --enable-starttls --enable-tcpwrappers
    

    Even then the problem is persisting. It now gives me an error saying that Recipient address rejected: User unknown in virtual mailbox table;

    Please help solve this issue.

  2. Sachin Acharya reporter

    Yes thats right. I'm unable to understand how that is happening. What I did was, I logged in as the auditor and selected one mail to be restored. I clicked on "Restore message to mailbox" and checked both the address and then clicked on Restore. Only upon doing this I am getting that address. This is the same if I had 3 addresses, I would get "xxx@aaa.com%20yyy@aaa.com%20zzz@aaa.com"

  3. Janos SUTO repo owner

    Please check the settings page for this user, and verify that he's got the proper email addresses. And I recommend you to update the gui as well, not the binaries only.

  4. Sachin Acharya reporter

    I checked the email address, they are correct. Its working properly when I restore mail for one email id alone.

    I updated the binaries and to update the gui, I replaced the old webui with the new webui folder from piler-0.1.25-rc2 to /var/www/piler and made necessary changed. I hope I have done it correctly.

  5. Janos SUTO repo owner

    To update the gui just simply overwrite everything with the contents of the webui directory.

  6. Sachin Acharya reporter

    Ok. Done that. the webui directory is overwritten by the contents of the new webui directory, but I do not see any change in the address in the error message. It's still the same.

  7. Janos SUTO repo owner

    Finally I managed to nail it down, it's a bug. Please edit controller/message/restore.php, and insert the following line:

    $this->request->post['rcpt'] = urldecode($this->request->post['rcpt']);

    BEFORE this line:

    $rcpt = preg_split("/\s/", $this->request->post['rcpt']);

  8. Sachin Acharya reporter

    This is the edit that has been made in controller/message/restore.php

     if(Registry::get('auditor_user') == 1) {
             $this->data['id'] = @$this->request->post['id'];
             $this->request->post['rcpt'] = urldecode($this->request->post['rcpt']);
             $rcpt = preg_split("/\s/", $this->request->post['rcpt']);
          }
    
  9. Sachin Acharya reporter

    Oh my mistake. I edited the webui/controller/message/restore.php instead of controller/message/restore.php

    Its working properly now. Thanks a lot!

  10. Log in to comment