rspamd-iscan is a daemon that monitors IMAP mailboxes and forwards new mails to rspamd for spam analysis or ham classification. It is similar to isbg but uses rspamd instead of Spamassassin.
rspamd-iscan scans new mails arriving in a ScanMailbox, if they are classified
as Spam they are moved to the SpamMailbox, otherwise to the InboxMailbox.
The ScanMailBox is monitor via IMAP IDLE for new E-Mails and additionally also
scanned periodically.
All mails in HamMailbox are fed as Ham to rspamd and then moved to
InboxMailbox. The HamMailbox is only processed periodically.
The mails that have been scanned last are stored in a state file.
rspamd-iscan can be configured via a TOML configuration file. Example:
RspamdURL = "http://192.168.178.2:11334"
RspamdPassword = "iwonttellyou"
ImapAddr ="my-imap-server:993"
ImapUser ="rickdeckard"
ImapPassword ="zhora"
InboxMailbox ="INBOX"
SpamMailbox ="Spam"
HamMailbox = "Ham"
ScanMailbox ="Unscanned"
SpamThreshold = 10.0
The location of the configuration and state file can be specified via command line parameters.