verification FAILED while export

Issue #839 closed
polar10 created an issue

Hi,

I am using piler 1.1.1 ,and getting the verification FAILED error for all the mail when i am using pilerexport , but at the same time i am able to download the mails using GUI.

The user piler is having full permission in the folder where i am trying to export the mails .

The pilerexport command i have executed with piler user.

drwxr-xr-x 2 piler piler 331776 Aug 25 15:42 restored_mails

Error output

sh-4.1$ pilerexport -a 2017.06.01 -b 2017.06.02
verification FAILED. 1627069.eml
verification FAILED. 1627073.eml
verification FAILED. 1627077.eml
verification FAILED. 1627129.eml
verification FAILED. 1627130.eml
verification FAILED. 1627135.eml
verification FAILED. 1627180.eml
verification FAILED. 1627184.eml
verification FAILED. 1627194.eml
verification FAILED. 1627203.eml
[root@archive ~]# piler -V
piler 1.1.1, build 904, Janos SUTO <sj@acts.hu>

Build Date: Tue Apr 12 00:05:33 IST 2016
ldd version: ldd (GNU libc) 2.12
gcc version: gcc version 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC)
Configure command: ./configure --localstatedir=/var --with-database=mysql --enable-starttls

Comments (4)

  1. Janos SUTO repo owner

    Check the exported files if they look correct. Also check if pilerexport is setuid to piler user and group.

  2. polar10 reporter

    Thanks for reponse Janos,

    I imported the eml files after piler export .

    able to see the mails but many of the mails of exported list are of 0kb in size. i am not able to restore these mails.

    I checked the permission of pilerexport it is ponting to piler user.

    -rwsr-sr-x 1 piler piler 78247 Apr 12  2016 /usr/local/bin/pilerexport
    

    i excecuted pilertest for one of the mails with 0kb in size

    # pilertest 999999.eml
    locale: en_US.UTF-8
    build: 904
    parsing...
    post parsing...
    message-id: null / 74234e98afe7498fb5daf1f36ac2d78acc339464f950703b8c016752f982b90b
    from: * ()*
    to: * ()*
    reference: **
    subject: **
    body: **
    sent: 0, delivered-date: 0
    hdr len: 0
    body digest: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
    rules check: (null)
    retention period: 1725528831
    attachments:
    direction: 0
    spam: 0
    NOT IN mydomains
    

    what to do to restore the mails which are 0kb in size.

  3. Janos SUTO repo owner

    Check if the files under /var/piler/store/00/ look ok. They are encrypted files with a non zero length. Then get the piler id of the last email archived (see mail log for that, it's something like 40000000....12637), and run pilerget 40000000....12637 (replace the correct id).

  4. Log in to comment