Hello Felix

  <listener>    <class>org.apache.james.rspamd.RspamdListener</class>    
<async>true</async>    <configuration>      <reportAdded>false</reportAdded>    
</configuration>  </listener>
Allows to unplug this undesirable behaviour: i think it shall be made the 
default.

> The "greylist" and "soft reject" actions are not handled.

Correct.

greylisting makes no sens in a post queue set up. We can only greylist if 
running in the smtp stack.

soft-reject and quarantine actions would be best handled as add-header IMO

Do you want to contribute this?-- 


Best regards,

Benoit TELLIER

General manager of Linagora VIETNAM.
Product owner for Twake-Mail product.
Chairman of the Apache James project.

Mail: [email protected]
Tel: (0033) 6 77 26 04 58 (WhatsApp, Signal)



On Jul 7, 2026 12:10 PM, from Felix Auringer <[email protected]>Hey,

I have some questions regarding the rspamd integration in James.

Currently, when I move a message from my Spam folder to the Inbox, it is marked 
as ham twice: once because it was moved out of the spam folder in another 
folder that is not the trash folder and once because the message was appended 
to the Inbox.
Is this desired behavior? The MailboxEvents.Added object has a method to check 
whether the email was delivered (or moved). Additionally checking this would 
make more sense to me.

James distinguishes the following six actions: "no action", "greylist", "add 
header", "rewrite subject", "soft reject", "reject".
I tested that James successfully handles the actions "no action", "rewrite 
subject" and "reject".
For the latter two and "add header", James also sets two headers and marks them 
so that they can be moved to the spam folder if desired.
The "greylist" and "soft reject" actions are not handled.

However, Rspamd emits different actions: "discard", "reject", "rewrite 
subject", "add header", "no action", "soft reject", "quarantine" 
(docs.rspamd.com/configuration/metrics#introduction).
We would especially be interested in the "soft reject" action to implement 
greylisting. Additionally, rspamd returns a list of headers it wants to remove 
/ add. I think honoring those would also be benefitial.
Would you be open for contributions on these topics?

Best regards,
Felix
---
Gesellschaft für interkulturelles
Zusammenleben gGmbH (GIZ)
Felix Auringer
IT
Reformationsplatz 2
13597 Berlin

Tel: 030/513 0100 00; Fax: 030/513 0100 09
giz.berlin; [email protected]

Amtsgericht Charlottenburg HRB 200872 B
Geschäftsführerin: Dr. Britta Marschke

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to