On 27/01/2023 08:33, Wael Karram wrote:
Hello,
Hello ! On 27/01/2023 08:33, Wael Karram wrote:
I've got a mail server set up per: https://poolp.org/posts/2019-09-14/setting-up-a-mail-server-with-opensmtpd-dovecot-and-rspamd/ I'm trying to figure out how I can configure (per-user) rules for moving mail into sub-directories based on the mail's headers. Do I have to change my setup to use LMTP? Or can I (preferably) keep using maildir?
Yes, you should use LMTP to transfer emails to Dovecot, which will deliver the email into the maildir. This way you can tell Dovecot to use sieve in order to deliver the email into a specific folder based on a header. Here is an example of such a configuration:
https://rodolphe.breard.tf/en/article/how-to-deploy-a-personal-email-server/#the-mda -- Rodolphe Bréard https://rodolphe.breard.tf/ B229 CCD5 6900 91E7 D5D6 189F 09BC 23A1 D556 2635
