With the serialmail package from the Q-Mail's author, there is a program
called maildirsmtp, which picks up a Maildir and resends it via SMTP.

You could set up a simple script to grab all the Maildir entries and sent
them each through this program in a loop.  The maildir path is a parameter
to maildirsmtp.

Regards,

Charles Warwick

-----Original Message-----
From: John Van Boxtel [mailto:[EMAIL PROTECTED]]
Sent: Friday, 1 September 2000 2:32 PM
To: [EMAIL PROTECTED]
Subject: How to "redeliver" messages


I have a problem that maybe someone has an answer for...

>From time to time our mailserver's connection to the net dies.  When it does
this we switch over to a mirrored server on a different ISP.  Works great
except from time to time, messages will get "stranded" between the
transition.

Is there an easy way to "redeliver" the messages in someone's Maildir?
I think you could almost do something like this:

cat ~user/Maildir/new/* | /var/qmail/bin/qmail-inject

but when I tried it, it didn't work...  Also, that would mean I would have
to type it for each user on the box.

I really think there has to be some way to tie together:
ls, grep, cat and some qmail program to list all the mail in the maildirs
and reput them in the queue (which would then see it as remote and deliver
it to the other box)

Thanks,
John

Reply via email to