Re: Rspamd integration
Benoit TELLIER <[email protected]> Tue, 7 Jul 2026 10:51:52 +0000
| Newsgroups | gmane.comp.jakarta.james.devel |
|---|---|
| Message-ID | <[email protected]> |
---=Part.622.1bc1a686e8b6944a.19f3c34ac16.92e4c25ec3d4969f=- Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Accept-Language: fr-FR, en-US, vi-VN, ru-RU, ar-TN, it-IT, de-DE Content-Language: en-US Hello Felix =C2=A0 <listener>=C2=A0 =C2=A0 <class>org=2Eapache=2Ejames=2E= rspamd=2ERspamdListener</class>=C2=A0 =C2=A0 <async>true</async>=C2=A0 =C2= =A0 <configuration>=C2=A0 =C2=A0 =C2=A0 <reportAdded>false</reportAdded>=C2= =A0 =C2=A0 </configuration>=C2=A0 </listener> Allows to unplug this undesir= able behaviour: i think it shall be made the default=2E >=C2=A0The "greyli= st" and "soft reject" actions are not handled=2E Correct=2E greylisting m= akes no sens in a post queue set up=2E We can only greylist if running in t= he smtp stack=2E soft-reject and quarantine actions would be best handled = as add-header IMO Do you want to contribute this?--=C2=A0 Best regards, = Benoit TELLIER General manager of Linagora VIETNAM=2E Product owner for T= wake-Mail product=2E Chairman of the Apache James project=2E Mail: btellie= r@linagora=2Ecom Tel: (0033) 6 77 26 04 58 (WhatsApp, Signal) On Jul 7, = 2026 12:10 PM, from Felix Auringer <felix=2Eauringer@giz=2Eberlin>Hey, I h= ave some questions regarding the rspamd integration in James=2E Currently,= when I move a message from my Spam folder to the Inbox, it is marked as ha= m 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=2E Is this desired behavior? The MailboxEvents=2EAdded object has= a method to check whether the email was delivered (or moved)=2E Additional= ly checking this would make more sense to me=2E James distinguishes the fo= llowing six actions: "no action", "greylist", "add header", "rewrite subjec= t", "soft reject", "reject"=2E I tested that James successfully handles the= actions "no action", "rewrite subject" and "reject"=2E For the latter two = and "add header", James also sets two headers and marks them so that they c= an be moved to the spam folder if desired=2E The "greylist" and "soft rejec= t" actions are not handled=2E However, Rspamd emits different actions: "di= scard", "reject", "rewrite subject", "add header", "no action", "soft rejec= t", "quarantine" (docs=2Erspamd=2Ecom/configuration/metrics#introduction)= =2E We would especially be interested in the "soft reject" action to implem= ent greylisting=2E Additionally, rspamd returns a list of headers it wants = to remove / add=2E I think honoring those would also be benefitial=2E Would= you be open for contributions on these topics? Best regards, Felix --- Ge= sellschaft f=C3=BCr interkulturelles Zusammenleben gGmbH (GIZ) Felix Auring= er IT Reformationsplatz 2 13597 Berlin Tel: 030/513 0100 00; Fax: 030/513 = 0100 09 giz=2Eberlin; felix=2Eauringer@giz=2Eberlin Amtsgericht Charlotte= nburg HRB 200872 B Gesch=C3=A4ftsf=C3=BChrerin: Dr=2E Britta Marschke ----= ----------------------------------------------------------------- To unsubs= cribe, e-mail: server-dev-unsubscribe@james=2Eapache=2Eorg For additional c= ommands, e-mail: server-dev-help@james=2Eapache=2Eorg ---=Part.622.1bc1a686e8b6944a.19f3c34ac16.92e4c25ec3d4969f=---