API
Question asked by Bilal SOYALP - 3/16/2026 at 12:35 PM
Unanswered
Hello,
I have deployed the Rspamd system as an email security gateway. What I want to do here is: how can I retrieve actions taken by a SmarterMail email user on an incoming email, such as 'spam', 'block', 'unblock', 'trust', 'not spam', via an API? Can you help me with this? Or is there a webhook available?
Derek Curtis Replied
Employee Post
I don't believe there are any SmarterMail APIs that deal with any message actions once the message is received by a user, beyond something like forwarding the message. There's nothing I could find relating to Mark as Junk, mark for follow up, deleting, marking read/unread, etc. I thought maybe there could be a content filter or event that would work, but nothing there as well. 

Why are you looking to do this? Just kind of curious. (Also, I changed the Thread from a Problem to a Question.)
Derek Curtis CCO SmarterTools Inc. www.smartertools.com
Sébastien Riccio Replied
Isn't that the purpose of the "Send user spam feedback to training folder", which is unfortunately incomplete IMHO, to be reliably used.


From documentation page:


Having some kind of system events (web hooks calls ?) for at least the Mark as junk, Mark as Non Spam would be handy.
The actual "Send user spam feedback to training folder" lacks informations such has and mainly which user did the action.

Also the "send user spam feedback to antispam providers" is a bit obscure to me. Which providers ? What data is sent ? It lacks information.


Related subjects:
https://portal.smartertools.com/community/a94132/report-spam-button.aspx
https://portal.smartertools.com/community/a95909/move-to-junk-and-spam-reporting-training.aspx


Sébastien Riccio System & Network Admin https://swisscenter.com
Douglas Foster Replied
Yes, the training folder is a way for users to tell admins about spam getting through, simply by moving it to the Junk Email folder.    I review it manually.   Some reports become global blocks, some become unsubscribe actions, and some are ignored as incorrect.   If you forward that data to rSpamD, you will have to train it to know what should and should not be discarded.    More advanced actions, like user-level block sender, are not integrated into this feature.
Bilal SOYALP Replied

Hi Sébastien,

The content in this link (https://portal.smartertools.com/community/a94132/report-spam-button.aspx) was very helpful. The project shared in Joe Davis's post (https://gitlab.com/onlime/rspamd-trainer) is exactly the kind of development I was looking for.

Thank you for your support.

Reply to Thread

Enter the verification text