[Rspamd-Users] Moving mails from/to spam folder ends with rspamc failure

Odhiambo Washington odhiambo at gmail.com
Thu May 22 13:31:18 UTC 2025


Hello Andreas,

Where did you post the details? I am interested.


On Wed, May 21, 2025 at 11:03 PM Andreas Kuhlen via Users <
users at lists.rspamd.com> wrote:

> Hello Danjel,
>
> I had a look into the "Learning from user actions" section from the the
> link you've posted.
>
> And also into the dovecot 2.3 documentation:
> https://doc.dovecot.org/2.3/configuration_manual/howto/antispam_with_sieve/
> .
>
> I had to set a password. Otherwise I got an error message that it's
> missed. :-)
>
> Now it's runs the way it should! Thanks again for your reply.
>
> If anyone is interested I posted it in detail what I did.
>
> Kind regards
>
> Andreas
>
> Am 20.05.2025 um 13:43 schrieb Andy Kuhlen via Users:
>
> > 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
> --
> Users mailing list
> Users at lists.rspamd.com
> https://lists.rspamd.com/mailman/listinfo/users
>


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
 In an Internet failure case, the #1 suspect is a constant: DNS.
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
[How to ask smart questions:
http://www.catb.org/~esr/faqs/smart-questions.html]


More information about the Users mailing list