1 (edited by CrashXRU 2026-04-13 10:31:13)

Topic: Plus addressing

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

How can I make it so that the folder is created in the inbox and not in the root folder?

Sievec not work

require ["body", "fileinto", "mailbox", "subaddress", "variables", "envelope"];

# Plus addressing - auto create folders
if envelope :matches :detail "to" "*" {
    set "fwd" "${1}";
    fileinto "INBOX/${fwd}";
    stop;
}

----

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

2

Re: Plus addressing

Mh, as far as i know, useing / willcause problems, since it will create a new folder named INBOX/fwd in the root level

instead, try:

# Plus addressing - auto create folders
if envelope :matches :detail "to" "*" {
    set "fwd" "${1}";
    fileinto "INBOX.${fwd}";
    stop;
}

Aswell, if you are useing vars, you need to import that, together with fileinto:

require ["fileinto", "variables"];

3

Re: Plus addressing

I didn't specify these parameters.

I tried both . and /, but it doesn't work.


require ["body", "fileinto", "mailbox", "subaddress", "variables", "envelope"];

generate on sogo

 rule:[Move mailing to INBOX/eDoc Folder]
if anyof (address :contains "from" "ecod.ru", address :contains "from" "esphere.ru",  address :contains "from" "kontur.ru") {
    fileinto "INBOX/eDoc";
    stop;
}

4

Re: Plus addressing

Postfix is configured to call Dovecot deliver program with "-m ${extension}", you may want to remove it from /etc/postfix/master.cf so that Dovecot doesn't deliver it to a new folder:

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