[Rspamd-Users] Moving mails from/to spam folder ends with rspamc failure
Andy Kuhlen
tamo at mandogo.de
Tue May 20 11:43:07 UTC 2025
Hallo Danjel,
thanks for the link you've provided. I'm gonna have a look into it, especially the section you highlighted.
Best regards
Andreas
Am 20. Mai 2025 10:05:32 MESZ schrieb Danjel Jungersen via Users <users at lists.rspamd.com>:
>Hi.
>
>I'm no expert, but have it working.
>
>I have not entered a password.
>
>I have built my setup with inspiration from here:
>https://workaround.org/ispmail-bookworm/catching-spam-with-rspamd/
>
>There is a section about half way down "Learning from user actions"
>
>????
>
>:-)
>Danjel
>
>On 19-05-2025 16:14, Andreas Kuhlen via Users wrote:
>> Hello all,
>>
>> I have a setup of postfix, rspamd, dovecot, and sieve. Today I noticed
>> errors when copying a message to or from the spam folder.
>>
>> In /var/log/rspamd/rspamd.log:
>>
>> 2025-05-19 13:12:29 #635489(controller) <915be1>; csession;
>> rspamd_controller_check_password: absent password has been specified;
>> source ip: 127.0.0.1:55686
>> 2025-05-19 13:12:29 #635489(controller)
>> rspamd_controller_check_password: absent or incorrect password has been
>> specified; source ip: 127.0.0.1:55686
>>
>> And in /var/log/mail.log:
>>
>> 2025-05-19T13:12:29.447629+02:00 hansi dovecot:
>> imap(postmaster at mydomain.de)<635618><w28TM3s1rcQgAwD17wGsAD2uGqHzrPPc>:
>> program exec:/usr/bin/rspamc (635622): Terminated with non-zero exit code 1
>> 2025-05-19T13:12:29.447890+02:00 hansi dovecot:
>> imap(postmaster at mydomain.de)<635618><w28TM3s1rcQgAwD17wGsAD2uGqHzrPPc>:
>> Error: sieve: failed to execute to program `rspamc': refer to server log
>> for more information. [2025-05-19 13:12:29]
>> 2025-05-19T13:12:29.448009+02:00 hansi dovecot:
>> imap(postmaster at mydomain.de)<635618><w28TM3s1rcQgAwD17wGsAD2uGqHzrPPc>:
>> Error: sieve: Execution of script
>> /var/vmail/sieve/global/learn-spam.sieve failed
>>
>> This is the script /var/vmail/sieve/global/learn-spam.sieve:
>>
>> require ["vnd.dovecot.pipe", "copy", "imapsieve"];
>> pipe :copy "rspamc" ["learn_spam"];
>>
>> This is the dovecot configuration part:
>>
>> plugin {
>> sieve_plugins = sieve_imapsieve sieve_extprograms
>> sieve_before = /var/vmail/sieve/global/spam-global.sieve
>> sieve =
>> file:/var/vmail/sieve/%d/%n/scripts;active=/var/vmail/sieve/%d/%n/active-script.sieve
>>
>> ###
>> ### Spam learning
>> ###
>> # From elsewhere to Spam folder
>> imapsieve_mailbox1_name = Spam
>> imapsieve_mailbox1_causes = COPY
>> imapsieve_mailbox1_before =
>> file:/var/vmail/sieve/global/learn-spam.sieve
>>
>> # From Spam folder to elsewhere
>> imapsieve_mailbox2_name = *
>> imapsieve_mailbox2_from = Spam
>> imapsieve_mailbox2_causes = COPY
>> imapsieve_mailbox2_before =file:/var/vmail/sieve/global/learn-ham.sieve
>>
>> sieve_pipe_bin_dir = /usr/bin
>> sieve_global_extensions = +vnd.dovecot.pipe
>>
>> quota = maildir:User quota
>> quota_exceeded_message = Benutzer %u hat das Speichervolumen
>> überschritten. / User %u has exhausted allowed storage space.
>> }
>>
>>
>> The /etc/rspamd/local.d/worker-controller.inc file looks like that:
>>
>> meine /etc/rspamd/local.d/worker-controller.inc
>> password = "$2$5p3...te5cu3uyy";
>> enable_password = "$2$5p3...3uyy";
>> secure_ip = "127.0.0.1;::1";
>>
>> Now I'm wondering how to pass the password to rspamc so that it works?
>> What could a solution look like?
>>
>> It would be nice if someone could help me out.
>>
>> Kind regards
>>
>>
>--
>Med venlig hilsen/Kind regards
>Danjel Jungersen
>Mail: danjel at jungersen.dk
>Mobile: +45 20 42 20 11
>
>Jungersen Grafisk ApS,
>Holsbjergvej 39, DK-2620 Albertslund,
>Denmark.
>Tel: +45 43 64 10 00
>
>WEBSHOP: PRINTLIGHT.DK <https://www.printlight.dk> | WWW.JUNGERSEN.DK <https://www.jungersen.dk>
>
>Logo <https://www.jungersen.dk>
>--
>Users mailing list
>Users at lists.rspamd.com
>https://lists.rspamd.com/mailman/listinfo/users
More information about the Users
mailing list