[ILUG] resending already delivered mail

Paul Jakma paulj at itg.ie
Fri Nov 3 17:17:51 GMT 2000


On Fri, 3 Nov 2000, Kenn Humborg wrote:

> If there's an error send back a bounce message to you
> rather than exiting the sendmail command with a non-zero
> status and printing an error message or dropping the message
> into dead.letter.  I.e. always accept the message (IIRC, 
> really rushed right now).
> 

cool.

> > also: where will it appear to have come from if i don't do the
> > -f"<orig_from>" bit?
> 
> You.  Well, the From: header will be OK, but the envelope
> sender (remember this? :-) will be paulj at itg (sendmail
> sees that you're SU-ed and gets your real UID, I think).
> 

not a problem.

also... i don't really want the -t do i? cause my script already knows
who i want to send to.. so:

cat /var/spool/mail/${USER} | formail +1 -ds sendmail -oem ${USER}

should do the trick for me.

(on the resend it won't go back to /var/spool/mail, it'll go to where
it should go now).

> Most users won't see the envelope sender, though...
> 

true..

anyway.. seems very close to the answer. (how did command==sendmail
escape me?)

> Later,
> Kenn
> 

thanks kenn,

--paulj





More information about the ILUG mailing list