Query..

Issue #126 resolved
Crzaccount created an issue

Hi i have a doubt.After logging as user.I see the option "Bluk restore selected emails".May i know the purpose of this option.

Comments (24)

  1. Janos SUTO repo owner

    If you select some messages then you may restore them to your mailbox by clicking on the Bulk restore button.

  2. Crzaccount reporter

    That mean it restore the mail to actual mailserver???.If it is like mean how it is connect with actual mailserver [postfix or qmail.]

  3. Janos SUTO repo owner

    you define SMARTHOST in config-site.php, eg.

    $config['SMARTHOST'] = 'mail.yourdomain.com';

  4. Crzaccount reporter

    Hi No i didn't define anything like that.If it is require please let me know i will do it.

  5. Janos SUTO repo owner

    Edit config-site.php in the documenroot, and set the following:

    $config['SMARTHOST'] = 'mail.yourdomain.com';

    (replace mail.yourdomain.com with your smtp server)

  6. Crzaccount reporter

    Hi yes i changed the with my smtp server address.After i clicked the "Bulk restore selected mails" i couldnot find anything.Please tell me how to check this.After click "Bulk restore selected mails" option what will happen in my smtp server side.i like to tell one thing archive server running on separate host and my mail server running on separate host.This option how impact with smpt server.

  7. Janos SUTO repo owner

    before clicking the bulk restore button, please make sure that you selected some messages using the left side checkboxes.

    Running the archive and the mail server on separate hosts is fine, it's the recommended approach.

  8. Crzaccount reporter

    Yes Before click the bulk restore button,i selected some mails then only i click the "Bulk restore selected mails".After that it gave one pop up like "Restored".But really i don't know what operation happened.That is my doubt.Whether it restore the mail is to corresponding user's mailbox in smpt server.i don't know that.it is my question.

  9. Janos SUTO repo owner

    Please check the maillogs of your smarthost. It should have some entries telling that piler has connected to it, and sent a few emails. If you have exchange, then be sure to set $config['REWRITE_MESSAGE_ID'] = 1; in config-site.php

  10. Crzaccount reporter

    $config['SMARTHOST'] = '192.168.1.130'; This is my entry in config-site.php.My smarthost is running on qmail.i checked the entire logs in smart server.Even i didn't get any request from mailpiler server's ip.Is the any other entry need to put in config-site.php

  11. Janos SUTO repo owner

    Are you a regular user or auditor? If a regular user, then please (for testing) select a message, click on it. On the lower pane, click on the "restore message" link.

  12. Crzaccount reporter

    Hi I checked logging as regular user and select a message On the lower pane, click on the "restore message" link. I got the error "Failed to restore" and same time i checked the logs in my smarthost server.i didn't get any request for that.

  13. Crzaccount reporter

    Hi i disabled the IMAP Auth logging in config.php after i tried the same and checked in samrtserver end it got the request but message body is not coming.My doubt is the mail is not comes fully.Please let me know i could i do.

  14. Crzaccount reporter

    Hi The output of Piler -V command

    [root@mailarchiver ~]# piler -V piler 0.1.24-master-branch, build 825, Janos SUTO sj@acts.hu

    Build Date: Fri Aug 2 17:37:26 IST 2013 ldd version: ldd (GNU libc) 2.5 gcc version: gcc version 4.1.2 20080704 (Red Hat 4.1.2-54) Configure command: ./configure --localstatedir=/var --with-database=mysql

    [root@mailarchiver ~]#

  15. Janos SUTO repo owner

    OK, can you try the following? Install ngrep, and run the following:

    ngrep -X port 25 host 192.168.1.130

    then try restoring a (preferable short) email, and watch the ngrep output whether it has body as well. Also verify in the browser in the preview pane that the email has a valid body.

  16. Crzaccount reporter

    Hi i done the same and gave output of ngrep command.Befer restore the mail i verify the header details it is valid only.As per my obervation i checked log in samarthost server as per that log it is not passing the recipient and sender address detail.i past the same header detail and sent the mail through telnet from archive server that mail reached my smarthost server.in log i got the recipient and sender address detail.I think in mailpiler we have to some changes for this.

    ngrep -X host 192.168.1.130 interface: eth0 (192.168.1.0/255.255.255.0) filter: (ip or ip6) and ( host 192.168.1.130 )

    T 192.168.1.130:25 -> 192.168.1.68:59597 [AP] 220 ristestone.com ESMTP..

    T 192.168.1.68:59597 -> 192.168.1.130:25 [AP] HELO ristestone.com..

    T 192.168.1.130:25 -> 192.168.1.68:59597 [AP] 250 ristestone.com..

    T 192.168.1.68:59597 -> 192.168.1.130:25 [AP] MAIL FROM: noreply@ristestone.com..

    T 192.168.1.130:25 -> 192.168.1.68:59597 [AP] 250 ok..

    T 192.168.1.68:59597 -> 192.168.1.130:25 [AP] RCPT TO: vintest1@ristestone.com..

    T 192.168.1.130:25 -> 192.168.1.68:59597 [AP] 250 ok..

    T 192.168.1.68:59597 -> 192.168.1.130:25 [AP] DATA..

    T 192.168.1.130:25 -> 192.168.1.68:59597 [AP] 354 go ahead..

    T 192.168.1.68:59597 -> 192.168.1.130:25 [A] Received: by piler.X-piler-id: 3927.Received: (qmail 1078 invoked by uid 507); 24 Aug 2013 0 6:29:15 -0000..Received: from 127.0.0.1 by mail.ristestone.com (envelope-from <vintest@r istestone.com>, uid 501) with qmail-scanner-1.25 .. (fireav: ???. spamassassin: 3.3.1. .. C lear:RC:1(127.0.0.1):SA:0(-101.0/5.0):. .. Processed in 0.18778 secs); 24 Aug 2013 06:29:15 -0000..X-Spam-Status: No, hits=-101.0 required=5.0..Received: from localhost (HELO 192.168.1 .130) (127.0.0.1).. by localhost with SMTP; 24 Aug 2013 06:29:15 -0000..Received: from 192. 168.1.130 ([127.0.0.1] helo=192.168.1.130) by...ASSP.nospam; 24 Aug 2013 11:59:15 +0530..Mes sage-ID: 1377325755.521852bb35958@192.168.1.130..Date: Sat, 24 Aug 2013 11:59:15 +0530..Su bject: Re:Restore Test Mail.....From: "VINTEST, VINTEST" vintest@ristestone.com..To: VINTE ST1 VINTEST1 vintest1@ristestone.com..MIME-Version: 1.0..Content-Type: multipart/alternati ve;.. boundary="=_swift_v4_1377325755521852bb3a2a0="..X-MimeOLE: Produced by Group-Office 3.7.45..X-Mailer: Group-Office 3.7.45..X-Priority: 3 (Normal)......--=swift_v4_1377325755 521852bb3a2a0=..Content-Type: text/plain; charset=UTF-8..Content-Transfer-Encoding: quoted -printable............--=swift_v4_1377325755521852bb3a2a0=_..Content-Type: text/html; cha rset=utf-8..Content-Transfer-Encoding: quoted-printable....<html><head><style>.em-message p{ margin:0px}</style></head><body><div cl=..ass=3D"em-message"><font f

    T 192.168.1.68:59597 -> 192.168.1.130:25 [AP] ace=3D"arial"><br></font></div></body></html>..........--_=_swift_v4_1377325755521852bb3a2

    T 192.168.1.68:59597 -> 192.168.1.130:25 [AP] .....

    T 192.168.1.130:25 -> 192.168.1.68:59597 [AP] 451 See http://pobox.com/~djb/docs/smtplf.html...

    T 192.168.1.68:59597 -> 192.168.1.130:25 [AP] QUIT..

  17. Janos SUTO repo owner

    thanks for debugging. Would you run the same restore test by running ngrep -x host 192.168.1.130 (ie. with a small "x"). It will reveal where those bare LFs are, so I can fix them.

  18. Crzaccount reporter

    Hi i tried the same and given the output.

    [root@mailarchiver ~]# ngrep -x host 192.168.1.130 interface: eth0 (192.168.1.0/255.255.255.0) filter: (ip or ip6) and ( host 192.168.1.130 )

    T 192.168.1.130:25 -> 192.168.1.68:57180 [AP] 32 32 30 20 72 69 73 74 65 73 74 6f 6e 65 2e 63 220 ristestone.c 6f 6d 20 45 53 4d 54 50 0d 0a om ESMTP..

    T 192.168.1.68:57180 -> 192.168.1.130:25 [AP] 48 45 4c 4f 20 72 69 73 74 65 73 74 6f 6e 65 2e HELO ristestone. 63 6f 6d 0d 0a com..

    T 192.168.1.130:25 -> 192.168.1.68:57180 [AP] 32 35 30 20 72 69 73 74 65 73 74 6f 6e 65 2e 63 250 ristestone.c 6f 6d 0d 0a om..

    T 192.168.1.68:57180 -> 192.168.1.130:25 [AP] 4d 41 49 4c 20 46 52 4f 4d 3a 20 3c 6d 61 69 6c MAIL FROM: <mail 73 65 72 76 69 63 65 40 72 69 73 74 65 73 74 6f service@ristesto 6e 65 2e 63 6f 6d 3e 0d 0a ne.com>..

    T 192.168.1.130:25 -> 192.168.1.68:57180 [AP] 32 35 30 20 6f 6b 0d 0a 250 ok..

    T 192.168.1.68:57180 -> 192.168.1.130:25 [AP] 52 43 50 54 20 54 4f 3a 20 3c 76 69 6e 74 65 73 RCPT TO: <vintes 74 40 72 69 73 74 65 73 74 6f 6e 65 2e 63 6f 6d t@ristestone.com 3e 0d 0a >..

    T 192.168.1.130:25 -> 192.168.1.68:57180 [AP] 32 35 30 20 6f 6b 0d 0a 250 ok..

    T 192.168.1.68:57180 -> 192.168.1.130:25 [AP] 44 41 54 41 0d 0a DATA..

    T 192.168.1.130:25 -> 192.168.1.68:57180 [AP] 33 35 34 20 67 6f 20 61 68 65 61 64 0d 0a 354 go ahead..

    T 192.168.1.68:57180 -> 192.168.1.130:25 [A] 52 65 63 65 69 76 65 64 3a 20 62 79 20 70 69 6c Received: by pil 65 72 0a 58 2d 70 69 6c 65 72 2d 69 64 3a 20 34 er.X-piler-id: 4 36 33 34 0a 52 65 63 65 69 76 65 64 3a 20 28 71 634.Received: (q 6d 61 69 6c 20 35 33 39 34 20 69 6e 76 6f 6b 65 mail 5394 invoke 64 20 62 79 20 75 69 64 20 35 30 37 29 3b 20 32 d by uid 507); 2 34 20 41 75 67 20 32 30 31 33 20 30 36 3a 35 39 4 Aug 2013 06:59 3a 35 35 20 2d 30 30 30 30 0d 0a 52 65 63 65 69 :55 -0000..Recei 76 65 64 3a 20 66 72 6f 6d 20 31 32 37 2e 30 2e ved: from 127.0. 30 2e 31 20 62 79 20 6d 61 69 6c 2e 72 69 73 74 0.1 by mail.rist 65 73 74 6f 6e 65 2e 63 6f 6d 20 28 65 6e 76 65 estone.com (enve 6c 6f 70 65 2d 66 72 6f 6d 20 3c 74 65 73 74 40 lope-from <test@ 72 69 73 74 65 73 74 6f 6e 65 2e 63 6f 6d 3e 2c ristestone.com>, 20 75 69 64 20 35 30 31 29 20 77 69 74 68 20 71 uid 501) with q 6d 61 69 6c 2d 73 63 61 6e 6e 65 72 2d 31 2e 32 mail-scanner-1.2 35 20 0d 0a 20 28 66 69 72 65 61 76 3a 20 3f 3f 5 .. (fireav: ?? 3f 2e 20 73 70 61 6d 61 73 73 61 73 73 69 6e 3a ?. spamassassin: 20 33 2e 33 2e 31 2e 20 20 0d 0a 20 43 6c 65 61 3.3.1. .. Clea 72 3a 52 43 3a 31 28 31 32 37 2e 30 2e 30 2e 31 r:RC:1(127.0.0.1 29 3a 53 41 3a 30 28 2d 31 30 31 2e 30 2f 35 2e ):SA:0(-101.0/5. 30 29 3a 2e 20 0d 0a 20 50 72 6f 63 65 73 73 65 0):. .. Processe 64 20 69 6e 20 33 30 2e 38 30 38 34 34 33 20 73 d in 30.808443 s 65 63 73 29 3b 20 32 34 20 41 75 67 20 32 30 31 ecs); 24 Aug 201 33 20 30 36 3a 35 39 3a 35 35 20 2d 30 30 30 30 3 06:59:55 -0000 0d 0a 58 2d 53 70 61 6d 2d 53 74 61 74 75 73 3a ..X-Spam-Status: 20 4e 6f 2c 20 68 69 74 73 3d 2d 31 30 31 2e 30 No, hits=-101.0 20 72 65 71 75 69 72 65 64 3d 35 2e 30 0d 0a 52 required=5.0..R 65 63 65 69 76 65 64 3a 20 66 72 6f 6d 20 6c 6f eceived: from lo 63 61 6c 68 6f 73 74 20 28 31 32 37 2e 30 2e 30 calhost (127.0.0 2e 31 29 0d 0a 20 20 62 79 20 6c 6f 63 61 6c 68 .1).. by localh 6f 73 74 20 77 69 74 68 20 53 4d 54 50 3b 20 32 ost with SMTP; 2 34 20 41 75 67 20 32 30 31 33 20 30 36 3a 35 39 4 Aug 2013 06:59 3a 32 34 20 2d 30 30 30 30 0d 0a 52 65 63 65 69 :24 -0000..Recei 76 65 64 3a 20 66 72 6f 6d 20 3d 68 6f 73 74 20 ved: from =host 28 5b 31 39 32 2e 31 36 38 2e 31 2e 36 38 5d 20 ([192.168.1.68] 68 65 6c 6f 3d 29 20 62 79 20 41 53 53 50 2e 6e helo=) by ASSP.n 6f 73 70 61 6d 3b 20 32 34 20 41 75 67 20 32 30 ospam; 24 Aug 20 31 33 20 31 32 3a 32 39 3a 30 36 20 2b 30 35 33 13 12:29:06 +053 30 0d 0a 52 65 63 65 69 76 65 64 3a 20 28 71 6d 0..Received: (qm 61 69 6c 20 31 30 37 38 20 69 6e 76 6f 6b 65 64 ail 1078 invoked 20 62 79 20 75 69 64 20 35 30 37 29 3b 20 32 34 by uid 507); 24 20 41 75 67 20 32 30 31 33 20 30 36 3a 32 39 3a Aug 2013 06:29: 31 35 20 2d 30 30 30 30 0d 0a 52 65 63 65 69 76 15 -0000..Receiv 65 64 3a 20 66 72 6f 6d 20 31 32 37 2e 30 2e 30 ed: from 127.0.0 2e 31 20 62 79 20 72 61 69 6e 6d 61 69 6c 2e 72 .1 by mail.r 69 73 74 65 73 74 6f 6e 65 2e 63 6f 6d 20 28 65 istestone.com (e 6e 76 65 6c 6f 70 65 2d 66 72 6f 6d 20 3c 76 69 nvelope-from <vi 6e 74 65 73 74 40 72 69 73 74 65 73 74 6f 6e 65 ntest@ristestone 2e 63 6f 6d 3e 2c 20 75 69 64 20 35 30 31 29 20 .com>, uid 501) 77 69 74 68 20 71 6d 61 69 6c 2d 73 63 61 6e 6e with qmail-scann 65 72 2d 31 2e 32 35 20 0d 0a 20 28 66 69 72 65 er-1.25 .. (fire 61 76 3a 20 3f 3f 3f 2e 20 73 70 61 6d 61 73 73 av: ???. spamass 61 73 73 69 6e 3a 20 33 2e 33 2e 31 2e 20 20 0d assin: 3.3.1. . 0a 20 43 6c 65 61 72 3a 52 43 3a 31 28 31 32 37 . Clear:RC:1(127 2e 30 2e 30 2e 31 29 3a 53 41 3a 30 28 2d 31 30 .0.0.1):SA:0(-10 31 2e 30 2f 35 2e 30 29 3a 2e 20 0d 0a 20 50 72 1.0/5.0):. .. Pr 6f 63 65 73 73 65 64 20 69 6e 20 30 2e 31 38 37 ocessed in 0.187 37 38 20 73 65 63 73 29 3b 20 32 34 20 41 75 67 78 secs); 24 Aug 20 32 30 31 33 20 30 36 3a 32 39 3a 31 35 20 2d 2013 06:29:15 - 30 30 30 30 0d 0a 58 2d 51 6d 61 69 6c 2d 53 63 0000..X-Qmail-Sc 61 6e 6e 65 72 2d 4d 4f 56 45 44 2d 58 2d 53 70 anner-MOVED-X-Sp 61 6d 2d 53 74 61 74 75 73 3a 20 4e 6f 2c 20 68 am-Status: No, h 69 74 73 3d 2d 31 30 31 2e 30 20 72 65 71 75 69 its=-101.0 requi 72 65 64 3d 35 2e 30 0d 0a 52 65 63 65 69 76 65 red=5.0..Receive 64 3a 20 66 72 6f 6d 20 6c 6f 63 61 6c 68 6f 73 d: from localhos 74 20 28 48 45 4c 4f 20 31 39 32 2e 31 36 38 2e t (HELO 192.168. 31 2e 31 33 30 29 20 28 31 32 37 2e 30 2e 30 2e 1.130) (127.0.0. 31 29 0d 0a 20 20 62 79 20 6c 6f 63 61 6c 68 6f 1).. by localho 73 74 20 77 69 74 68 20 53 4d 54 50 3b 20 32 34 st with SMTP; 24 20 41 75 67 20 32 30 31 33 20 30 36 3a 32 39 3a Aug 2013 06:29: 31 35 20 2d 30 30 30 30 0d 0a 52 65 63 65 69 76 15 -0000..Receiv 65 64 3a 20 66 72 6f 6d 20 31 39 32 2e 31 36 38 ed: from 192.168 2e 31 2e 31 33 30 20 28 5b 31 32 37 2e 30 2e 30 .1.130 ([127.0.0 2e 31 5d 20 68 65 6c 6f 3d 31 39 32 2e 31 36 38 .1] helo=192.168 2e 31 2e 31 33 30 29 20 62 79 0d 0a 20 20 20 20 .1.130) by..
    20 20 20 20 41 53 53 50 2e 6e 6f 73 70 61 6d 3b ASSP.nospam; 20 32 34 20 41 75 67 20 32 30 31 33 20 31 31 3a 24 Aug 2013 11: 35 39 3a 31 35 20 2b 30 35 33 30 0d 0a 4d 65 73 59:15 +0530..Mes 73 61 67 65 2d 49 44 3a 20 3c 31 33 37 37 33 32 sage-ID: <137732 35 37 35 35 2e 35 32 31 38 35 32 62 62 33 35 39 5755.521852bb359 35 38 40 31 39 32 2e 31 36 38 2e 31 2e 31 33 30 58@192.168.1.130 3e 0d 0a 44 61 74 65 3a 20 53 61 74 2c 20 32 34 >..Date: Sat, 24 20 41 75 67 20 32 30 31 33 20 31 31 3a 35 39 3a Aug 2013 11:59: 31 35 20 2b 30 35 33 30 0d 0a 53 75 62 6a 65 63 15 +0530..Subjec 74 3a 20 52 65 3a 52 65 73 74 6f 72 65 20 54 65 t: Re:Restore Te 73 74 20 4d 61 69 6c 2e 2e 2e 0d 0a 46 72 6f 6d st Mail.....From 3a 20 22 56 49 4e 54 45 53 54 2c 20 56 49 4e 54 : "VINTEST, VINT 45 53 54 22 20 3c 76 69 6e 74 65 73 74 40 72 69 EST" <vintest@ri 73 74 65 73 74 6f 6e 65 2e 63 6f 6d 3e 0d 0a 54 stestone.com>..T 6f 3a 20 56 49 4e 54 45 53 54 31 20 56 49 4e 54 o: VINTEST1 VINT 45 53 54 31 20 3c 76 69 6e 74 65 73 74 31 40 72 EST1 <vintest1@r 69 73 74 65 73 74 6f 6e isteston

    T 192.168.1.68:57180 -> 192.168.1.130:25 [AP] 65 2e 63 6f 6d 3e 0d 0a 4d 49 4d 45 2d 56 65 72 e.com>..MIME-Ver 73 69 6f 6e 3a 20 31 2e 30 0d 0a 43 6f 6e 74 65 sion: 1.0..Conte 6e 74 2d 54 79 70 65 3a 20 6d 75 6c 74 69 70 61 nt-Type: multipa 72 74 2f 61 6c 74 65 72 6e 61 74 69 76 65 3b 0d rt/alternative;. 0a 20 62 6f 75 6e 64 61 72 79 3d 22 5f 3d 5f 73 . boundary="=_s 77 69 66 74 5f 76 34 5f 31 33 37 37 33 32 35 37 wift_v4_13773257 35 35 35 32 31 38 35 32 62 62 33 61 32 61 30 5f 55521852bb3a2a0 3d 5f 22 0d 0a 58 2d 4d 69 6d 65 4f 4c 45 3a 20 ="..X-MimeOLE: 50 72 6f 64 75 63 65 64 20 62 79 20 47 72 6f 75 Produced by Grou 70 2d 4f 66 66 69 63 65 20 33 2e 37 2e 34 35 0d p-Office 3.7.45. 0a 58 2d 4d 61 69 6c 65 72 3a 20 47 72 6f 75 70 .X-Mailer: Group 2d 4f 66 66 69 63 65 20 33 2e 37 2e 34 35 0d 0a -Office 3.7.45.. 58 2d 50 72 69 6f 72 69 74 79 3a 20 33 20 28 4e X-Priority: 3 (N 6f 72 6d 61 6c 29 0d 0a 0d 0a 71 75 69 74 0d 0a ormal)....quit.. 0d 0a 0d 0a 2d 2d 5f 3d 5f 73 77 69 66 74 5f 76 ....--=_swift_v 34 5f 31 33 37 37 33 32 35 37 35 35 35 32 31 38 4_13773257555218 35 32 62 62 33 61 32 52bb3a2

    T 192.168.1.68:57180 -> 192.168.1.130:25 [AP] 0d 0a 2e 0d 0a .....

    T 192.168.1.130:25 -> 192.168.1.68:57180 [AP] 34 35 31 20 53 65 65 20 68 74 74 70 3a 2f 2f 70 451 See http://p 6f 62 6f 78 2e 63 6f 6d 2f 7e 64 6a 62 2f 64 6f obox.com/~djb/do 63 73 2f 73 6d 74 70 6c 66 2e 68 74 6d 6c 2e 0d cs/smtplf.html.. 0a .

    T 192.168.1.68:57180 -> 192.168.1.130:25 [AP] 51 55 49 54 0d 0a QUIT..

  19. Janos SUTO repo owner

    Please try setting EOL to "\r\n", then let's try it again, and show me the ngrep results again. Please attach the result to the issue, because this way it's pretty difficult to read it.

  20. Crzaccount reporter

    Hi Thanks for your support.This EOL problem in have fixed in my smart server side.Now it is working...Thank you so much.

  21. Crzaccount reporter

    Hi Thanks for your support.This EOL problem i have fixed in my smart server side.Now it is working...Thank you so much.

  22. Log in to comment