On Mon, 10 Jan 2022 at 17:38, Benny Pedersen <[email protected]> wrote: > On 2022-01-10 18:25, @lbutlr wrote: > > > I can think of some (messy) ways to do this, but before I start > > cobbling something together, I am hoping this is something someone has > > already done. > > why external ? > > in main.cf: > > mydestination = localhost > virtual_alias = hash:/path/to/virtual_alias > > in virtual_alias > [email protected] system-foo@localhost > > then later dispute the virtual_alias foo if not needed any more, one > time exist email adress is simple that way > > virtual_alias for the win - I've been working on a similar sounding system. Have a browse over the different lookup table types here: Postfix Lookup Table Overview <http://www.postfix.org/DATABASE_README.html#types> and see whether any work better for your users. I've used the postgres tables to let me keep aliases in a database and have written a small web app to let users manage them.
For letting users create the aliases by sending mail, I'd have a look at either the SMTP authentication delegation option: Postfix SMTP Access Policy Delegation <http://www.postfix.org/SMTPD_POLICY_README.html> or an external content filter. Felix
