how to resend rejected emails

I cannot find an asnwer for this problem:
Once a while I have my Lotus server rejecting emails from my
linux(sendmail) server. This is due to incorrect policy
implementation on the Lotus server which is setup as my smart relay
host in sendmail.cf

# "Smart" relay host (may be null)
DStetr6

How can I keep these messages for few hours/days and automatically
retry to send them.

here is an example:


From MAILER-DAEMON [at] cimpro.jjj.com Thu Nov 4 01:29:47 2004
Return-Path: <MAILER-DAEMON [at] cimpro.jjj.com>
Received: from localhost (localhost)
by cimpro.jjj.com (8.12.11/8.12.10) id iA46TlCX006103;
Thu, 4 Nov 2004 01:29:47 -0500
Date: Thu, 4 Nov 2004 01:29:47 -0500
From: Mail Delivery Subsystem <MAILER-DAEMON [at] cimpro.jjj.com>
Message-Id: <200411040629.iA46TlCX006103 [at] cimpro.jjj.com>
To: <taskrun [at] cimpro.jjj.com>
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="iA46TlCX006103.1099549787/cimpro.jjj.com"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)

This is a MIME-encapsulated message

--iA46TlCX006103.1099549787/cimpro.jjj.com

The original message was received at Thu, 4 Nov 2004 01:29:47 -0500
from localhost [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<John_Doe [at] jjj.com>
(reason: 554 Mail from taskrun [at] cimpro.jjj.com rejected for policy
rea
sons.)

----- Transcript of session follows -----
.... while talking to tetr6.jjj.com.:
>>> MAIL From:<taskrun [at] cimpro.jjj.com> SIZE=630 BODY=7BIT
<<< 554 Mail from taskrun [at] cimpro.jjj.com rejected for policy reasons.
554 5.0.0 Service unavailable
mfarkas777 [ Mo, 08 November 2004 17:52 ] [ ID #472271 ]

Re: how to resend rejected emails

marian wrote:
> How can I keep these messages for few hours/days and automatically
> retry to send them.
> (reason: 554 Mail from taskrun [at] cimpro.jjj.com rejected for policy
> reasons.)

You can't (short of mangling sendmail sources). The SMART_HOST returns a
5xx status, which means "retrying won't buy you anything." If there's a
possibility of the Lotus box rejecting emails because of a temporary
problem, at least *these* rejections REALLY REALLY SHOULD use a 4xx
status code.

Regards,
J. Bern
Jochen Bern [ Mo, 08 November 2004 21:07 ] [ ID #472980 ]
Miscellaneous » comp.mail.sendmail » how to resend rejected emails

Vorheriges Thema: MXAV and MX1 howto avoid direct mails to MX1
Nächstes Thema: Sender domain must exist