Plus Addressing Configuration - Create New Folder

I am a bit stumped with where to start as I am completely new to the world of email servers.

I am trying to work out how to configure the creation of a new mail folder and move the email into this newly created folder when I receive an email with a plus addressed format. The new mail folder should be named the string after the “+” in the address. The postfix section of this process is enabled by default and when I send an email to user+something@example.com it get delivered to user@example.com.

From my web searching I can find examples with server software not installed as standard with the virtualmin install. I also can’t seem to find a clear answer to which server to configure - Postfix, Dovecot or Procmail? I followed the example show in the dovecot wiki at https://wiki.dovecot.org/LDA/Postfix and turned my VPS into a turtle until I removed the configuration.

Any ideas greatly appreciated!

Operating system: Linux
OS version: Debian 10

@Chris_Nuss,

The “+” in an email address does NOT symbolize a separate mailbox. However, you could filter messages in the “user@example.com” mailbox to put mail for “user+something@example.com” into a separate folder using Procmail or more easily within Usermin using “Filters” (which essentially creates a Procmail filter) or even using a desktop application like Thunderbird which also has a filter feature.

An article on the topic of Plus Addressing can be found at:

https://www.fastmail.help/hc/en-us/articles/360060591053-Plus-addressing-and-subdomain-addressing

Best Regards,
Peter Knowles | TPN Solutions

Thanks Peter.

I am actually after the back end info on how to filter the emails and create the folder in the appropriate maildir all on the server. I’m studying the Procmail filtering system now as a pointer to the solution. Will post a filter solution when I actually find one.

Cheers.