Roundcube rule does not work

I want to automatically forward an incoming mail to a mail address (with an account on the server).

But this forwarding does not work.

Have I made a mistake?

Please try “contains” instead of “is equal to” as the “From” field may also contain a name next to the mail address.

If I remember correctly, it was originally configured that way without working.

I’ll change it back.

Please also try to remove “stop evaluating rules”:

EDIT:

Please also check the “From” field of the mail you want to process, maybe it’s spoofed somehow?

I did it. Addinionally I tried some diffenerent rule sets.

I’m almost embarrassed to say this, but the email is not forwarded based on rules.

Strange, I retested and it worked.

This is my filter, testuser1@domain2 is a local user mailbox, markus@domain1 is a mail user on another server.

In the logs I have following entry that shows that the mail is forwarded:

2025-05-13T08:48:32+02:00 [1:mail1:dovecot] lmtp(markus)<184826><CXs8AT3rImj60QIA0NR6rg>: sieve: msgid=<d69ad9894da6367d47e5cdf8e3b9e0f1@domain1>: redirect action: forwarded to <testuser1@domain2>

I only have

2025-05-13T06:23:31+02:00 [1:mail1:dovecot] lmtp(marko_dargel)<146933><jQGYDUPJImj1PQIAGcgN6w>: save: box=INBOX/The Sender, uid=812, msgid=<20250513041139.C8E9F62577BF@mx12.news.mailserver.com>, from=The News <news@test.com>, subject=newest news, flags=()
2025-05-13T06:23:31+02:00 [1:mail1:dovecot] lmtp(marko_dargel)<146933><jQGYDUPJImj1PQIAGcgN6w>: sieve: msgid=<20250513041139.C8E9F62577BF@mx12.news.mailserver.com>: fileinto action: stored mail into mailbox 'INBOX/The News'
2025-05-13T06:23:31+02:00 [1:mail1:dovecot] lmtp(146933): Disconnect from local: Logged out (state=READY)
2025-05-13T06:23:34+02:00 [1:mail1:dovecot] auth-worker(146931): conn unix:auth-worker (pid=122826,uid=90): auth-worker<8>: ldap(opinion,81.30.107.94): unknown user
2025-05-13T06:23:46+02:00 [1:mail1:dovecot] auth-worker(146931): conn unix:auth-worker (pid=122826,uid=90): auth-worker<9>: ldap(new,81.30.107.89): unknown user
2025-05-13T06:24:04+02:00 [1:mail1:dovecot] auth-worker(146931): conn unix:auth-worker (pid=122826,uid=90): auth-worker<10>: ldap(nemeth,81.30.107.194): unknown user
2025-05-13T06:24:07+02:00 [1:mail1:dovecot] auth-worker(146931): conn unix:auth-worker (pid=122826,uid=90): auth-worker<11>: ldap(hayu,81.30.107.195): unknown user
2025-05-13T06:24:12+02:00 [1:mail1:dovecot] auth-worker(146931): conn unix:auth-worker (pid=122826,uid=90): auth-worker<12>: ldap(volgograd,81.30.107.24): unknown user
2025-05-13T06:24:18+02:00 [1:mail1:dovecot] auth-worker(146931): conn unix:auth-worker (pid=122826,uid=90): auth-worker<13>: ldap(pgp,81.30.107.168): unknown user
2025-05-13T06:25:04+02:00 [1:mail1:dovecot] imap-login: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=93.245.73.25, lip=152.53.121.241, TLS handshaking: Connection closed, session=<zHMP0fw02NNd9UkZ>

…unknown user…
I have to check.

1 Like