Hello all, I am creating an email service where I need to accept email for any address at my domains. The postfix part of this has been easy enough but I now want to send the mails through to Dovecot. This all works as expected if I have a user already configured in Dovecot but in the majority of cases I won’t have until a new email arrives. (The service will be similar to a temporary email service, and I won’t know the addresses users are using ahead of time.)
My question is: where is the best place to create my new Dovecot users from Postfix? I am using Postgres as the Dovecot users DB, so I have tried with a stored procedure in my pgsql virtual aliases lookup that inserts a row but I’m wondering if there’s a better place to do it. I thinking maybe in a policy server or a content filter but am open to any suggestions. I’m looking to have some separation of concerns - at the moment it feels like I’m overloading the alias lookup more than I should. Thanks in advance for any ideas, Felix