1 (edited by Shnoulle 2024-12-12 16:24:44)

Topic: [Resolved] Dovecot and Postifx recipient_delimiter : folder move

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.1 OPENLDAP edition.
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Debian GNU/Linux 12 (bookworm)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? NO
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I use a lot postfix recipient_delimiter = +

It work good except dovecot create a directory with the sting aftger +

If I email user+test@example.org : a directory test is created and email was puit in this directory.
What solution to disable this ?

Thanks

[Edit] I want to disable it for some specific user but enable for some user, maybe a LDAP setting ? Or a sieve parameter ?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by Shnoulle 2024-12-10 16:00:07)

Re: [Resolved] Dovecot and Postifx recipient_delimiter : folder move

OK,

With help of Zhang Huangbin support, I found the solution to the automatic creation.

There are some detail here : https://doc.dovecot.org/2.3/configurati … -filtering

1: update postfix to disable globally, edit /etc/postfix/master.cf and update line with dovecot :

dovecot    unix  -       n       n       -       -       pipe flags=DRh
    user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${domain} -a ${original_recipient}

2. Tel to your user they can create own sieve filering, mast rules can be

# rule:[Plus Addressed mail filtering]
if envelope :detail :matches "to" "*"
{
    set :lower "detail" "${1}";
    fileinto "INBOX/${detail}";
}

You need at top :

require ["copy","envelope","fileinto","subaddress","variables"];