skip rspamd if email already scan by one of our rspamd server

48 views
Skip to first unread message

Fab G

unread,
Jul 5, 2017, 5:47:57 AM7/5/17
to rspamd
Hi,

for exemple, one mail which is addressed to our list server pass through our mta-in and is scanned by rspamd.
Then, the list server distributes the mail to all recipients and the mail is again scanned by rspamd.

How to skip rspamd if the mail has already been scanned by our rspamd.

I thought of multimap.conf, type header

local.d/multimap.conf

mail_already_handle_by_rspamd {

            type = "header";

            header = "X-Rspamd-Server";

            map = "file:///etc/rspamd/scan.map";

            symbol = "MAIL_ALREADY_HANDLE_BY_RSPAMD";

            action = "accept"

}


scan.map

mtain1

mtain2

mtain3


Is that the right way ?

For now, not working.


King regards,

Fabrice

Fab G

unread,
Jul 5, 2017, 9:53:30 AM7/5/17
to rspamd
In fact, the multimap is functionnal.

Thanks

Toxa

unread,
Jul 28, 2017, 10:44:56 AM7/28/17
to rspamd


On Wednesday, 5 July 2017 11:47:57 UTC+2, Fab G wrote:
Hi,

for exemple, one mail which is addressed to our list server pass through our mta-in and is scanned by rspamd.
Then, the list server distributes the mail to all recipients and the mail is again scanned by rspamd.

How to skip rspamd if the mail has already been scanned by our rspamd.


You could just avoid to call Rspamd on the final MTA if it receives the message from your mta-in.
That what I do on my primary MX -- it does not scan the message at all if it comes from my secondary MX (and thus it's already rspamd-scanned).

Reply all
Reply to author
Forward
0 new messages