Slightly OT - Postdrop wont re-inject mailmessages from quara ntin e

Samuel Luxford-Watts slwatts at WINCKWORTHS.CO.UK
Tue Aug 12 14:41:08 IST 2003


I have set Quarantine Whole Messages As Queue Files = YES and yes
Mailscanner has been restarted a few times now since this change.

I have just tried using sendmail <
/var/spool/MailScanner/quarantine/20030811/329F7891/329F7891 and it appears
to work in that it runs! - however I get a non-delivery report sent to root
saying that recipients unknown... I have incluced the whole report at the
end of this message.

I am using postfix 2.0.13 and MS 4.22-5

Sam

Delivery failed report:
Reporting-MTA: dns; mailscanner.winckworthsherwood.com
Arrival-Date: Tue, 12 Aug 2003 14:30:47 +0100 (BST)

Final-Recipient: rfc822; unknown
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; No recipients specified


-----Original Message-----
From: Chris Trudeau [mailto:chris at TRUDEAU.ORG]
Sent: 12 August 2003 12:27
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: Slightly OT - Postdrop wont re-inject mailmessages from
quarantin e


Sam I wrestled with this for a while.

I finally set:

<SNIP>
# When you quarantine an entire message, do you want to store it as # raw
mail queue files (so you can easily send them onto users) or # as
human-readable files (header then body in 1 file)? Quarantine Whole Messages
As Queue Files = no </SNIP>

so that quarantine messages are maintained in mbox format....then you can
easily use the postfix "sendmail" which essentially calls postdrop and allow
it to forward original message:

[root at BLAH]# sendmail < /var/spool/quarantine/9DA7F1C012

This will take the queue file and allow postfix to re-inject into the
dataflow of message processing...

That's how I got it to work.

CT


----- Original Message -----
From: "Samuel Luxford-Watts" <slwatts at WINCKWORTHS.CO.UK>
To: <MAILSCANNER at JISCMAIL.AC.UK>
Sent: Tuesday, August 12, 2003 5:34 AM
Subject: Slightly OT - Postdrop wont re-inject mailmessages from quarantin e


> Hi,
>
> I know that this is more of a postfix issue than a mailscanner one but
since
> this has come up before and since its related to Mailscaner......
>
> I have been trying to use 'postdrop -c /etc/postfix < [message
> filename]'
to
> re-inject a quarantined message into /var/spool/postfix/incoming (the
> outgoing message queue) but keep getting the following error:
>
> Aug 12 09:49:10 mailscanner postfix/postdrop[26278]: fatal: uid=0:
> unexpected record type: 67
>
> The mail file is a proper queue file, its owned by postfix:postfix but
> it only has owner rw flags set. If I also add x flag and copy it to
> /var/spool/postfix/incoming/<first letter> postfix sends it no problem
> at all. Am I doing something wrong?
>
> Cheers,
>
> Sam
>
> --------------
> Winckworth Sherwood Solicitors and Parliamentary Agents
> DX 148400 WESTMINSTER 5 : 35 Great Peter Street, London SW1P 3LR
> Telephone 020 7593 5000 Fax 020 7593 5099
>
> Do something amazing!
> The firm is supporting a charitable bike ride through Vietnam and
> needs
your help. For further information please visit www.vietnambikeride.org
<http://www.vietnambikeride.org>
>
> -Confidentiality-
> This email message and any attachments are confidential; they may be
subject to legal professional privilege and are intended for the named
recipient only. If you are not the named recipient, please return the
message and enclosures immediately and delete them from your system.
>
> -Caution-
> Before advice received only by email (whether by attachment or
> otherwise)
may be relied on, the authenticity of the communication must be verified by
means independent of email.
>
> -Regulation-
> The firm is regulated by the Law Society.
>
> -Partners-
> A list of partners is available for inspection at each office of the
> firm
and on the firm's website at www.winckworths.co.uk
<http://www.winckworths.co.uk>

--------------
Winckworth Sherwood Solicitors and Parliamentary Agents
DX 148400 WESTMINSTER 5 : 35 Great Peter Street, London SW1P 3LR
Telephone 020 7593 5000 Fax 020 7593 5099

Do something amazing!
The firm is supporting a charitable bike ride through Vietnam and needs your help. For further information please visit www.vietnambikeride.org <http://www.vietnambikeride.org>

-Confidentiality-
This email message and any attachments are confidential; they may be subject to legal professional privilege and are intended for the named recipient only. If you are not the named recipient, please return the message and enclosures immediately and delete them from your system.

-Caution-
Before advice received only by email (whether by attachment or otherwise) may be relied on, the authenticity of the communication must be verified by means independent of email.

-Regulation-
The firm is regulated by the Law Society.

-Partners-
A list of partners is available for inspection at each office of the firm and on the firm's website at www.winckworths.co.uk <http://www.winckworths.co.uk>



More information about the MailScanner mailing list