Vacation rule send repeated replies to the same address

I was configuring the vacation plugin and able to create the filter in round cube with the correct content:
require [“vacation”];

rule:[Out-of-Office]

if true

{

vacation :days 1 :addresses “user@domain.de” :subject "Out of office " :from “user@domain.de” “I’m out of office.”;

}

It works but not supressing multiple replies to the same address within 1 day.
It can’t create the dedup db:
Feb 16 22:11:11 lmtp(user@domain.de)<975873><+LliBO6Hk2kB5A4AvwgErA>: Error: lmtp-server: conn 127.0.0.1:53640 [2]: rcpt user@doamian.de: file_dotlock_open(/home/user-data/mail/mailboxes/domain.de/user@domain.de/.dovecot.lda-dupes) failed: No such file or directory

The reason is the directory structure in my setup

root@mail:/home/user-data/mail/sieve/domain.de# ll
drwx------ 4 mail mail 4096 Feb 16 23:06 ./
drwxr-xr-x 5 mail mail 4096 Feb 11 17:27 /
drwx------ 3 mail mail 4096 Feb 16 23:18 user/
lrwxrwxrwx 1 mail mail 25 Feb 11 17:27 user.sieve → user/roundcube.sieve
-rw------- 1 mail mail 284 Feb 16 23:06 user.svbin

all my user mailbox folder having only the username portion without the domain.
/home/user-data/mail/sieve/domain.de/user but smtp expect /home/user-data/mail/sieve/domain.de/user@domain.de
How to fix this?

Which vacation plugin is this? I don’t think it’s part of the standard mailinabox installation.

Potentialy found the reason in my ldap-auth configuration.

userdb {
driver = static
override_fields = uid=mail gid=mail home=/home/user-data/mail/mailboxes/%d/%u
}

will try with %n instead %u hoping this dosen’t brack enything else.
Have another server running with sql-auth as usual and this server is working as expected and has in the sql query only the name without the domain

user_query = SELECT email AS user, “mail” as uid, “mail” as gid, “/home/user-data/mail/mailboxes/%d/%n” as home, ‘*:bytes=’ || quota AS quota_rule FROM users WHERE email=‘%u’;

Was exactly the reason.
Now the vacation rules are working without sending duplicates.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.