On 5/19/2010 3:10 PM, Phil Howard wrote:
But it sounds like what I need is something to rewrite envelope recipient address at SMTPD RCPT TO time. Like maybe (this does not exist) smtpd_recipient_map and (also does not exist) smtpd_recipient_domain_map ?? What I would envision this doing is applying this rewrite before checking to see if the user really exists, then using that rewritten address in all further checks that get done during the SMTPD session, all while the remote SMTP client waits for a response (it's already waiting for all those restriction checks).
Sounds as if you need to generate static files with a script. Don't worry about the number of entries; hash: tables scale well to hundreds of thousand entries, or use cdb: files for fast performance up to millions of entries. (cdb: works great for smaller files too.)
-- Noel Jones