I am using postfix, the LDA is dovecot and i found the useful parameter recipient_delimiter
in the man page of postfix.
I would like to use mail addresses like user+folder@domain.com
and the mail server should automatically move the mail into the appropriate folder. If the folder does not exist, it should get created.
Dovecot can create automatically directories over the configuration files. I have found the following options for it: Mailbox Settings and Autocreate Plugin
So i could write a little bash scripts which reads the mail server logs, greps the mail addresses and either create the maildirectory via mkdir or via the dovecot configuration. But i do not believe that this is the correct solution for it, because:
- The first mail would not get catched because the mail folder does not exist at this time. But that is not the main problem, the mail could get moved via the script too.
- There must be a better solution for that.
I searched already on the web, but i could not find informations about that. Probably (for sure) i am using the false searching terms.