At 11:10 AM 7/11/2001, Dave Sill wrote:
>"David U." <[EMAIL PROTECTED]> wrote:
>
> >Could you explain what you mean by a "maildir spool" and maildirsmtp? I am
> >going to try to look up info right now, but I haven't heard of maildirsmtp.
>
>You could deliver the MX's mail to a maildir and use maildirsmtp from
>serialmail to send the messages to them when they're back up.
>
> >Do you think the first method (cronjob) is the easiest method?
>
>No. The maildir spool + maildirsmtp cron job would be easier. No
>coding required. Determining the age and size of the spool is
>trivial.
Ok, so this sounds like it might not be so bad...but here's how it would
break down as I see it.
1) I'm gonna need a new drive and lets call it /mxhosts (maybe in a RAID
config for safety)
2) I'll start creating /mxhosts/domain.com/Maildir with maildirmake
3) I'll add domain.com to my rcpthosts AND my virtualdomains control files
directing mail to /mxhosts/domain.com/Maildir
4) Mail will begin to spool into those directories.
5) I can run a cron job every X minutes to try to iterate through
/mxhosts/domains and try every $domain and send mail via maildirsmtp
6) Every X hours or every night I can run another cron that checks the size
of /mxhosts/domain.com and the date of mail in ~/Maildir/new
How's that sound? Am I missing anything you can think of. As far as I
know, mail should NEVER be in ~/Maildir/cur right? Do you see any issue
with having possible thousands of domains in /mxhosts? Maybe I should do
/mxhosts/{0-9,A-Z}/domain.com -- based on first char of domain.
How will my system handle a bounce if the primary mail server decides to
reject mail? Will it just sit on my box for seven days and then get picked
up by my yet to be written cron job? Would it bounce to my postmaster?
This is starting to look a _lot_ easier then I first thought it would be.
Thanks,
David U.