On Mon, Dec 06, 2021 at 02:29:18PM -0500, John Levine wrote: > For an application I'm working on, we need to set up about 50,000 forwarding > addresses.
I take this to be 50k *LHS* addresses. That is 50k input addresses each get forwarded to corresponding output addresses. > If we just put them into a hash or btree lookup table, would that be a > problem? It doesn't > seem like a very big database. You should be able to use an LMDB, Berkeley DB or CDB database with millions of entries. Though I don't think you're asking about 1-to-very-many forwarding, if you have 50k *RHS* (output) addresses for a single input address, then there are some limits you may have to tweak. The defaults are: mailbox_size_limit = 51200000 message_size_limit = 10240000 virtual_alias_expansion_limit = 1000 virtual_alias_recursion_limit = 1000 IIRC the message_size_limit also bounds the size of the queue file, which also holds the recipient list, so with 50k recipients, you could get close to the message size limit with just the recipient addresses. The mailbox size limit must equal or exceed the message size limit. -- Viktor.