procmail
[Top] [All Lists]

Re: "redeliver" email in /var/spool/mail to proper, user Maildir?

2008-04-23 14:35:57
Robert Kuropkat wrote:
hmmm, I liked this suggestion because it seemed so simple:

formail -ds procmail < /var/spool/mail/$LOGNAME

But testing it on my own mail file does not seem to be working, it's
just hung.  It's only 1Mg so I would not expect it to actually take long
to process.

I am using sendmail.  I go look up the sendmail equivalent to what you
suggest.

It is a BAD idea to do that with /var/spool/mail/$LOGNAME

If something goes wrong with the delivery *again* then it will be 
writing the messages back to /var/spool/mail/$LOGNAME while you are 
reading from the file. Double the messages, double the fun, every time 
you try it and fail.

cp /var/spool/mail/$LOGNAME /home/$LOGNAME/tempmbox
rm /var/spool/mail/$LOGNAME
formail -ds procmail < /home/$LOGNAME/tempmbox

Now, all that being said, I have a question.

Is *ALL* of your email delivered to the final destination through 
*PROCMAIL RECIPES*?

Eg. does every piece of mail on your system pass through procmail even 
if the final recipient does not have a ~/.procmailrc?

If procmail doesn't normally touch *EVERY SINGLE* piece of mail on your 
system then you need to figure out how to use the MTA re-injection 
method to allow thw MTA to handle redelivery.

G2
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail