Re: many domains to receive email for

Alan Post <[email protected]> Mon, 2 Sep 2019 16:22:38 -0600
Newsgroups gmane.mail.qmail.general
Message-ID <[email protected]>
On Mon, Sep 02, 2019 at 06:51:13PM -0300, Gustavo Rios wrote:
> i have the following scenario:
> 
>                I have 100k domain to qmail to receive for.
> Having the traditional way, it would scan a file configuration in a
> linear search: it would be too slow.
> 
> How do you handle a large set of domain to receive email for ?
> 

You're correct that the rcpthosts file would be a linear scan, but
qmail-smtpd also supports morercpthosts, converted to a cdb file
via the qmail-newmrh command.  The manpage for qmail-smtpd offers:

    Put your 50 most commonly used domains into rcpthosts, and the
    rest into morercpthosts

Is there a part of your problem not satisfied via use of the
morercpthosts and the qmail-newmrh command?

-A
-- 
Alan Post | Xen VPS hosting for the technically adept
PO Box 61688 | Sunnyvale, CA 94088-1681 | https://prgmr.com/
email: [email protected]