Import Mails

Issue #125 resolved
Crzaccount created an issue

Hi..

Please let me the procedure to import the Maildir mais to pilers.i used the below command. pilerimport -d /var/piler/Maildir/cur/ -r -q But while importing time it is giving the error like "failed to import:".In log file i got the below message.

Aug 17 11:38:24 mailarchiver pilerimport[3969]: 40000000520f13620e75976c00e3d768d108: cannot open: 40000000520f13620e75976c00e3d768d108.m Aug 17 11:38:24 mailarchiver pilerimport[3969]: 40000000520f13620e75976c00e3d768d108: error storing message: 40000000520f13620e75976c00e3d768d108.m

Please guide me for this.

Comments (4)

  1. Janos SUTO repo owner

    make sure the pilerimport is setuid to user piler, then cd /tmp, and try again. In other words go to a directory where user piler can create temp files.

  2. Crzaccount reporter

    Hi Thanks for your reply.

    Setudi set for pilerimport command.The out put is below. -rwsr-sr-x 1 piler piler 66784 Aug 2 17:38 /usr/local/bin/pilerimport .

    I tried the both,move the Mail dir to /tmp [pilerimport -d /tmp/Maildir/cur/ -r -q ] and piler tmp directory /var/piler/tmp [pilerimport -d /var/piler/tmp/Maildir/cur/ -r -q]. I am getting the same error no changes.

    Error:

    [root@mailarchiver ~]# pilerimport -d /var/piler/tmp/Maildir/cur/ -r -q processing: /var/piler/tmp/Maildir/cur//1374561257.M546060P29658.rainmail.ristestone.com,S=1860,W=1932:2,S duplicate: /var/piler/tmp/Maildir/cur//1374561257.M546060P29658.rainmail.ristestone.com,S=1860,W=1932:2,S (id: 4000000052119b7d1820818c00c24c5872f7) processing: /var/piler/tmp/Maildir/cur//1375861165.M585303P11336.mail.test.com,S=1455,W=1497:2, failed to import: /var/piler/tmp/Maildir/cur//1375861165.M585303P11336.mail.test.com,S=1455,W=1497:2, (id: 4000000052119b7d1a87485c0084ae2ea73e) error importing: '/var/piler/tmp/Maildir/cur//1375861165.M585303P11336.mail.test.com,S=1455,W=1497:2,'

    Mail log Error;

    Aug 19 09:43:39 mailarchiver pilerimport[2897]: 4000000052119b7d256b6dfc008d172be813: cannot open: 4000000052119b7d256b6dfc008d172be813.m Aug 19 09:43:39 mailarchiver pilerimport[2897]: 4000000052119b7d256b6dfc008d172be813: error storing message: 4000000052119b7d256b6dfc008d172be813.m

  3. Janos SUTO repo owner

    I think you misunderstood me. I hadn't said to move the emails under /tmp. No just leave them where they are right now.

    I said that you should go to /tmp (= cd /tmp), then start the import. In other words:

    cd /tmp
    pilerimport ....
    
  4. Log in to comment