Retrieve from Archive

Glenn Steen glenn.steen at gmail.com
Sun Nov 15 11:29:50 GMT 2009


As mentioned before, there is an excellent article in the wiki on how
to release queue files from the quarantine. To adapt this to releasing
from the archive, one has to put the copy of the file into the hold
directory, then make it owned by the postfix user and chmod 0700. This
is so that it'll pass through MS once more.
Be aware that some mailstores will have problems with the same message
ID being used...
Think I mentioned this all before;-)
Cheers

2009/11/15, Ralph Bornefeld-Ettmann <ilikeuce at bornefeld-ettmann.de>:
> Monis Monther schrieb:
>> Hi , I tried the postcat command and I managed to send the message but
>> it is recieved as shown below, I only posted part of a the message , as
>> you can see it contains an attachment and it is sent as it is not
>> encoded , how can I receive the message normally??
>>
>>
>> I also did another experiment , I resent a message that was held in the
>> spam folder which is an RFC 822 message (made sure by using the file
>> command)
>>
>> cat 79FA76E0392.B1D73 | sendmail.postfix someone at somedomain
>>
>> And it reached the mailbox as a normal email with no problems.
>>
>>
>> So now I think what we want to do is convert the message in the archive
>> from whatever it is to a RFC 822 message, I dont think the postcat
>> command did  the trick.
>>
>>
>> P.S: I highly appreciate all the posts and help in this forum, thank you
>> everyone
>>
>>
>>
>>
>> *** ENVELOPE RECORDS 8ACBB6E03A4.763AF ***
>>
>> message_size:           20071             542
>> 1               0
>>
>> message_arrival_time: Sun Nov 15 12:28:39 2009
>>
>> create_time: Sun Nov 15 12:28:39 2009
>>
>> named_attribute: rewrite_context=remote
>>
>> sender: monis.monther at mediaintl.net <mailto:monis.monther at mediaintl.net>
>>
>> named_attribute: log_client_address=192.168.111.130
>>
>> named_attribute: log_message_origin=unknown[192.168.111.130]
>>
>> named_attribute: log_helo_name=eg30.iolteam.net <http://eg30.iolteam.net>
>>
>> named_attribute: log_protocol_name=ESMTP
>>
>> named_attribute: client_name=unknown
>>
>> named_attribute: reverse_client_name=unknown
>>
>> named_attribute: client_address=192.168.111.130
>>
>> named_attribute: helo_name=eg30.iolteam.net <http://eg30.iolteam.net>
>>
>> named_attribute: client_address_type=2
>>
>> named_attribute: dsn_orig_rcpt=rfc822;monis.monther at mediaintl.net
>> <mailto:rfc822%3Bmonis.monther at mediaintl.net>
>>
>> original_recipient: monis.monther at mediaintl.net
>> <mailto:monis.monther at mediaintl.net>
>>
>> recipient: monis.monther at mediaintl.net
>> <mailto:monis.monther at mediaintl.net>
>>
>> *** MESSAGE CONTENTS 8ACBB6E03A4.763AF ***
>>
>> Received: from eg30.iolteam.net <http://eg30.iolteam.net> (unknown
>> [192.168.111.130])
>>
>>       by mailscanner.localdomain (Postfix) with ESMTP id 8ACBB6E03A4
>>
>>       for <monis.monther at mediaintl.net
>> <mailto:monis.monther at mediaintl.net>>; Sun, 15 Nov 2009 12:28:39 +0200
>> (EET)
>>
>> Received: from lp125 (lp-125.iolteam.net <http://lp-125.iolteam.net>
>> [192.168.10.37])
>>
>>       by eg30.iolteam.net <http://eg30.iolteam.net> (Postfix) with ESMTP
>> id BE47744DB77
>>
>>       for <monis.monther at mediaintl.net
>> <mailto:monis.monther at mediaintl.net>>; Sun, 15 Nov 2009 07:09:40 +0200
>> (EET)
>>
>> From: <monis.monther at mediaintl.net <mailto:monis.monther at mediaintl.net>>
>>
>> To: <monis.monther at mediaintl.net <mailto:monis.monther at mediaintl.net>>
>>
>> Subject: test2
>>
>> Date: Sun, 15 Nov 2009 11:15:48 +0200
>>
>> Message-ID: <005d01ca65d4$386621d0$a9326570$@monther at mediaintl.net
>> <mailto:monther at mediaintl.net>>
>>
>> MIME-Version: 1.0
>>
>> Content-Type: multipart/mixed;
>>
>>       boundary="----=_NextPart_000_005E_01CA65E4.FBEEF1D0"
>>
>> X-Mailer: Microsoft Office Outlook 12.0
>>
>> Thread-Index: Acpl1DZgGVUVmgfETEOKVRx4hz47zA==
>>
>> Content-Language: en-us
>>
>>
>>
>> This is a multipart message in MIME format.
>>
>>
>>
>> ------=_NextPart_000_005E_01CA65E4.FBEEF1D0
>>
>> Content-Type: multipart/alternative;
>>
>>       boundary="----=_NextPart_001_005F_01CA65E4.FBEEF1D0"
>>
>>
>>
>>
>>
>> ------=_NextPart_001_005F_01CA65E4.FBEEF1D0
>>
>> Content-Type: text/plain;
>>
>>       charset="us-ascii"
>>
>> Content-Transfer-Encoding: 7bit
>>
>>
>>
>> Test with attachmnet
>>
>>
>>
>>
>>
>> ------=_NextPart_001_005F_01CA65E4.FBEEF1D0
>>
>> Content-Type: text/html;
>>
>>       charset="us-ascii"
>>
>> Content-Transfer-Encoding: quoted-printable
>>
>>
>>
>> <html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
>> xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
>> xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
>> xmlns:x=3D"urn:schemas-microsoft-com:office:excel" =
>> xmlns:p=3D"urn:schemas-microsoft-com:office:powerpoint" =
>> xmlns:a=3D"urn:schemas-microsoft-com:office:access" =
>> xmlns:dt=3D"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" =
>> xmlns:s=3D"uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" =
>> xmlns:rs=3D"urn:schemas-microsoft-com:rowset" xmlns:z=3D"#RowsetSchema"
>> = xmlns:b=3D"urn:schemas-microsoft-com:office:publisher" =
>> xmlns:ss=3D"urn:schemas-microsoft-com:office:spreadsheet" =
>> xmlns:c=3D"urn:schemas-microsoft-com:office:component:spreadsheet" =
>> xmlns:odc=3D"urn:schemas-microsoft-com:office:odc" =
>> xmlns:oa=3D"urn:schemas-microsoft-com:office:activation" =
>> xmlns:html=3D"http://www.w3.org/TR/REC-html40" =
>> xmlns:q=3D"http://schemas.xmlsoap.org/soap/envelope/" =
>> xmlns:rtc=3D"http://microsoft.com/officenet/conferencing" =
>> xmlns:D=3D"DAV:" xmlns:Repl=3D"http://schemas.microsoft.com/repl/" =
>> xmlns:mt=3D"http://schemas.microsoft.com/sharepoint/soap/meetings/" =
>> xmlns:x2=3D"http://schemas.microsoft.com/office/excel/2003/xml" =
>> xmlns:ppda=3D"http://www.passport.com/NameSpace.xsd" =
>> xmlns:ois=3D"http://schemas.microsoft.com/sharepoint/soap/ois/" =
>> xmlns:dir=3D"http://schemas.microsoft.com/sharepoint/soap/directory/" =
>> xmlns:ds=3D"http://www.w3.org/2000/09/xmldsig#" =
>> xmlns:dsp=3D"http://schemas.microsoft.com/sharepoint/dsp" =
>> xmlns:udc=3D"http://schemas.microsoft.com/data/udc" =
>> xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema" =
>> xmlns:sub=3D"http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/"=
>>
>>  xmlns:ec=3D"http://www.w3.org/2001/04/xmlenc#" =
>> xmlns:sp=3D"http://schemas.microsoft.com/sharepoint/" =
>> xmlns:sps=3D"http://schemas.microsoft.com/sharepoint/soap/" =
>> xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" =
>> xmlns:udcs=3D"http://schemas.microsoft.com/data/udc/soap" =
>> xmlns:udcxf=3D"http://schemas.microsoft.com/data/udc/xmlfile" =
>> xmlns:udcp2p=3D"http://schemas.microsoft.com/data/udc/parttopart" =
>> xmlns:wf=3D"http://schemas.microsoft.com/sharepoint/soap/workflow/" =
>> xmlns:dsss=3D"http://schemas.microsoft.com/office/2006/digsig-setup" =
>> xmlns:dssi=3D"http://schemas.microsoft.com/office/2006/digsig" =
>> xmlns:mdssi=3D"http://schemas.openxmlformats.org/package/2006/digital-sig=
>>
>> nature" =
>>
>> xmlns:mver=3D"http://schemas.openxmlformats.org/markup-compatibility/2006=
>>
>> " xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
>> xmlns:mrels=3D"http://schemas.openxmlformats.org/package/2006/relationshi=
>>
>> ps" xmlns:spwp=3D"http://microsoft.com/sharepoint/webpartpages" =
>> xmlns:ex12t=3D"http://schemas.microsoft.com/exchange/services/2006/types"=
>>
>>  =
>>
>> xmlns:ex12m=3D"http://schemas.microsoft.com/exchange/services/2006/messag=
>>
>> es" =
>>
>> xmlns:pptsl=3D"http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/=
>>
>> " =
>>
>> xmlns:spsl=3D"http://microsoft.com/webservices/SharePointPortalServer/Pub=
>>
>> lishedLinksService" xmlns:Z=3D"urn:schemas-microsoft-com:" =
>> xmlns:st=3D"&#1;" xmlns=3D"http://www.w3.org/TR/REC-html40">
>>
>>
>>
>> <head>
>>
>> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
>> charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 12
>> (filtered medium)"> <style>
>>
>> <!--
>>
>>  /* Font Definitions */
>>
>>  @font-face
>>
>>       {font-family:Calibri;
>>
>>       panose-1:2 15 5 2 2 2 4 3 2 4;}
>>
>>  /* Style Definitions */
>>
>>  p.MsoNormal, li.MsoNormal, div.MsoNormal
>>
>>       {margin:0in;
>>
>>       margin-bottom:.0001pt;
>>
>>       font-size:11.0pt;
>>
>>       font-family:"Calibri","sans-serif";}
>>
>> a:link, span.MsoHyperlink
>>
>>       {mso-style-priority:99;
>>
>>       color:blue;
>>
>>       text-decoration:underline;}
>>
>> a:visited, span.MsoHyperlinkFollowed
>>
>>       {mso-style-priority:99;
>>
>>       color:purple;
>>
>>       text-decoration:underline;}
>>
>> span.EmailStyle17
>>
>>       {mso-style-type:personal-compose;
>>
>>       font-family:"Calibri","sans-serif";
>>
>>       color:windowtext;}
>>
>> .MsoChpDefault
>>
>>       {mso-style-type:export-only;}
>>
>> @page Section1
>>
>>       {size:8.5in 11.0in;
>>
>>       margin:1.0in 1.25in 1.0in 1.25in;}
>>
>> div.Section1
>>
>>       {page:Section1;}
>>
>> -->
>>
>> </style>
>>
>> <!--[if gte mso 9]><xml>
>>
>>  <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
>> </xml><![endif]--><!--[if gte mso 9]><xml>  <o:shapelayout v:ext=3D"edit">
>>
>>   <o:idmap v:ext=3D"edit" data=3D"1" />
>>
>>  </o:shapelayout></xml><![endif]-->
>>
>> </head>
>>
>>
>>
>> <body lang=3DEN-US link=3Dblue vlink=3Dpurple>
>>
>>
>>
>> <div class=3DSection1>
>>
>>
>>
>> <p class=3DMsoNormal>Test with attachmnet<o:p></o:p></p>
>>
>>
>>
>> </div>
>>
>>
>>
>> </body>
>>
>>
>>
>> </html>
>>
>>
>>
>> ------=_NextPart_001_005F_01CA65E4.FBEEF1D0--
>>
>>
>>
>> ------=_NextPart_000_005E_01CA65E4.FBEEF1D0
>>
>> Content-Type:
>> application/vnd.openxmlformats-officedocument.wordprocessingml.document;
>>
>>       name="Monis Monther.docx"
>>
>> Content-Transfer-Encoding: base64
>>
>> Content-Disposition: attachment;
>>
>>       filename="Monis Monther.docx"
>>
>>
>>
>> UEsDBBQABgAIAAAAIQDd/JU3ZgEAACAFAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAAC
>>
>> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>>
>> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>>
>> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>>
>> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>>
>> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>>
>> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>>
>> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>>
>> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>>
>> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC0
>>
>> VMtuwjAQvFfqP0S+Vomhh6qqCBz6OLZIpR9g7A1Y9Uv28vr7bgJEVQtBKuUSKVnvzOzsxIPR
>>
>>
>>
>>
>> On Sun, Nov 15, 2009 at 11:24 AM, Ralph Bornefeld-Ettmann
>> <ilikeuce at bornefeld-ettmann.de <mailto:ilikeuce at bornefeld-ettmann.de>>
>> wrote:
>>
>>     Monis Monther schrieb:
>>
>>         Hi everyone
>>
>>
>>         I tried
>>
>>
>>         /usr/sbin/sendmail.postfix recipient msgid
>>
>>         But did not work
>>
>>         Any other suggestions to release a message from the command line
>>
>>         And for everyone participating, I am using the Archive option to
>>         archive all incoming mail to a folder this is an example message
>>
>>         C91066E03A4.E9CD0
>>
>>
>>
>>
>>
>>
>>         On Thu, Nov 12, 2009 at 4:17 PM, Ralph Bornefeld-Ettmann
>>         <ilikeuce at bornefeld-ettmann.de
>>         <mailto:ilikeuce at bornefeld-ettmann.de>
>>         <mailto:ilikeuce at bornefeld-ettmann.de
>>         <mailto:ilikeuce at bornefeld-ettmann.de>>> wrote:
>>
>>            Glenn Steen schrieb:
>>
>>                2009/11/12 Ralph Bornefeld-Ettmann
>>                <ilikeuce at bornefeld-ettmann.de
>>         <mailto:ilikeuce at bornefeld-ettmann.de>
>>                <mailto:ilikeuce at bornefeld-ettmann.de
>>         <mailto:ilikeuce at bornefeld-ettmann.de>>>:
>>
>>
>>                    Monis Monther schrieb:
>>
>>                        The link looks informative and would take me some
>>         time
>>                        to read which I
>>                        will do definitly , Thanks
>>                         Also how can I do it qiuckly by command line, for
>>                        example can I
>>                        sendmail.postfix [options] filename ..etc
>>                         Note: My MTA is postfix
>>                         Thanks
>>
>>                        On Thu, Nov 12, 2009 at 3:25 PM, Ralph
>>         Bornefeld-Ettmann
>>                        <ilikeuce at bornefeld-ettmann.de
>>         <mailto:ilikeuce at bornefeld-ettmann.de>
>>                        <mailto:ilikeuce at bornefeld-ettmann.de
>>         <mailto:ilikeuce at bornefeld-ettmann.de>>
>>                        <mailto:ilikeuce at bornefeld-ettmann.de
>>         <mailto:ilikeuce at bornefeld-ettmann.de>
>>                        <mailto:ilikeuce at bornefeld-ettmann.de
>>         <mailto:ilikeuce at bornefeld-ettmann.de>>>>
>>                        wrote:
>>
>>                          Monis Monther schrieb:
>>
>>                              Hi everyone:
>>                               I am using the archive feature of
>>         Mailscanner to
>>                        have a copy of
>>                              all mails in a dir, this is working fine and
>>                        lovely, now the
>>                              problem is if I want to retrieve a certain
>>         message
>>                        , how can I
>>                              do that in the following cases
>>                               1- I dont know where it is in the archive
>>                                2- I know where it is and the message ID
>> for
>>                        example under the
>>                              archive is D548C6E00BB.27373, how do I send
>>         it to
>>                        the inteded user
>>                               Thanks
>>
>>                          to resend messages please check this :
>>
>>          http://www.global-domination.org/forum/viewtopic.php?f=15&t=1806
>>         <http://www.global-domination.org/forum/viewtopic.php?f=15&t=1806>
>>
>>          <http://www.global-domination.org/forum/viewtopic.php?f=15&t=1806
>>
>> <http://www.global-domination.org/forum/viewtopic.php?f=15&t=1806>>
>>
>>          <http://www.global-domination.org/forum/viewtopic.php?f=15&t=1806
>>         <http://www.global-domination.org/forum/viewtopic.php?f=15&t=1806>
>>
>>          <http://www.global-domination.org/forum/viewtopic.php?f=15&t=1806
>>
>> <http://www.global-domination.org/forum/viewtopic.php?f=15&t=1806>>>
>>
>>
>>                          --    MailScanner mailing list
>>                          mailscanner at lists.mailscanner.info
>>         <mailto:mailscanner at lists.mailscanner.info>
>>                        <mailto:mailscanner at lists.mailscanner.info
>>         <mailto:mailscanner at lists.mailscanner.info>>
>>                          <mailto:mailscanner at lists.mailscanner.info
>>         <mailto:mailscanner at lists.mailscanner.info>
>>                        <mailto:mailscanner at lists.mailscanner.info
>>         <mailto:mailscanner at lists.mailscanner.info>>>
>>
>>          http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>
>>                          Before posting, read
>>         http://wiki.mailscanner.info/posting
>>
>>                          Support MailScanner development - buy the book
>>         off the
>>                        website!
>>
>>
>>                    if you call :
>>
>>                    /usr/sbin/sendmail.postfix <recipient> < <msgid>
>>
>>                    the mail should be sent to the user
>>
>>
>>                Only if the message has been decoded to the
>>         RFC822/2822/5322 format
>>                first... which it likely hasn't...;-)
>>
>>                Cheers
>>
>>
>>            [root at localhost nonspam]# file 05B5E28027.4BC43
>>            05B5E28027.4BC43: RFC 822 mail text
>>
>>            so it should be correct ... or did I get you wrong?
>>
>>            AFAIK only really archived mails are queue file but files in
>>         nonspam
>>            are  RFC 822 files. please correct me if I'm wrong
>>
>>
>>            --    MailScanner mailing list
>>            mailscanner at lists.mailscanner.info
>>         <mailto:mailscanner at lists.mailscanner.info>
>>            <mailto:mailscanner at lists.mailscanner.info
>>         <mailto:mailscanner at lists.mailscanner.info>>
>>            http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>
>>            Before posting, read http://wiki.mailscanner.info/posting
>>
>>            Support MailScanner development - buy the book off the website!
>>
>>
>>
>>     you have to convert real archived mails as Glen stated above:
>>
>>     postcat <msgid>|/usr/sbin/sendmail.postfix <recipient>
>>
>>
>>     cheers
>>     Ralph
>>
>>
>>     --
>>     MailScanner mailing list
>>     mailscanner at lists.mailscanner.info
>>     <mailto:mailscanner at lists.mailscanner.info>
>>     http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>
>>     Before posting, read http://wiki.mailscanner.info/posting
>>
>>     Support MailScanner development - buy the book off the website!
>>
>>
>
> I am not using queue files so I asked good old aunt google :
>
> http://support.netrack.hu/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=15
> have a look at this. It shows you how to manually release mails
> quarantined with MailScanner as queue files .... so it might also work
> with archived queue files. A little different as my previous approach
> but still something to use on the console.
>
> Cheers
> Ralph
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>

-- 
Skickat från min mobila enhet

-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se


More information about the MailScanner mailing list