David U. <[EMAIL PROTECTED]> wrote:
> 
> 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

Looks perfect to me.  If you can convince your clients to run qmail and
have qmail-qmtpd running, you could even deliver to them with
maildirqmtp (sp?).
 
> 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?

qmail never touches anything in cur; just tmp and new.  MUAs should be
the only thing moving files from new to cur, and you won't have an MUA
looking into your spool maildirs.

> 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.

Hashing is your friend on slow filesystems.  You'll also want to use
morercpthosts.cdb for related reasons.

> 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?

As far as qmail is concerned, the message has been delivered (it's no
longer in the qmail queue).  But if your clients' primary MX is down for
a week, they've got bigger problems, and you'll probably have been
contacted by them in that period.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------

Reply via email to