[Mimedefang] Requeue failed messages

Joseph Brennan brennan at columbia.edu
Tue Oct 16 16:13:38 EDT 2012


The first thing that I wonder about is how you will determine the recipient 
to deliver to.  Sendmail -t will parse the To and Cc headers but they need 
not correspond to the recipient.  I think the recipient can be parsed from 
the COMMANDS file if you save that.

But the same question arises for the Squirrelmail access too, so maybe you 
have sorted the mail by recipient as it comes in.  In that case if you know 
the recipient, something like

sendmail user at host.tld < messagefile

might be what you want.  That won't set the sender address unless you do 
some more work to extract it from Return-Path and feed that on command line 
too.

I've never attempted this type of mail manipulation so I can only offer 
first thoughts. I wonder whether ANYONE else has tried your method!

Joseph Brennan
Columbia University Information Technology




--On October 16, 2012 19:10:47 +0100 Jon Rowlan <jon.rowlan at sads.com> wrote:

> Hi all,
>
> I have had a bit of a disaster befall me.
>
> Recently a customers primary and secondary MX went offline and mail
> disappeared.
>
> For some time I have provided a fallback for when MX's are offline by
> using MD to copy the INPUTMSG to a mailstore for hosted mail and then I
> can use Squirrelmail to make this mail available for my customers to
> view.
>
> What I need to do here is to inject a number of emails back into the
> sendmail queue to allow them to be delivered.
>
> In the past I have tried to find ways to process these files but cannot
> remember whether I:
>
> a) saved them as MSG files
> b) saved them as EML file (my customers use M$ outlook/express)
> c) put them into the pickup on a Windows SMTP server
> d) drag them into a PST from the disk as either EML or MSG
>
> or I seem to have a scripts that runs:
>
> cat $1 | sendmail -v -t
>
> but nothing seems to work, not even this script which I am sure must
> have worked once ...
>
> Can anyone guide me on a definitive way to get the files created by MD
> delivered?
>
> I know its slightly off topic but the guys on this list have always
> seemed friendly and helpful and it is sort of on topic as the files are
> created with MD.
>
> Can anyone help?
>
> Many thanks all,
>
> jON
>
> _______________________________________________
> NOTE: If there is a disclaimer or other legal boilerplate in the above
> message, it is NULL AND VOID.  You may ignore it.
>
> Visit http://www.mimedefang.org and http://www.roaringpenguin.com
> MIMEDefang mailing list MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang





More information about the MIMEDefang mailing list