hardware / mailserver

:warning: UNMAINTAINED - Simple and full-featured mail server using Docker
https://store.docker.com/community/images/hardware/mailserver
MIT License
1.29k stars 322 forks source link

rspamd #334

Closed cypriotxx closed 5 years ago

cypriotxx commented 6 years ago

hi there, all working lovely thank you all for this gorgeous piece of work

just one question
i know where to add whitelist email addresses in YML file but how can i whitelist a domain name instead of email address ?

thank you so much

BloodyAltair commented 6 years ago

+1 to this question I have mounted custom whitelist mapping:

# /var/mail/rspamd/whitelist.conf

rules {
  "WHITELIST_CUSTOM_DOMAIN" = {
    strict = true;
    domains = "${DBDIR}/whitelist.inc.local";
    description = "Mail comes from the whitelisted domain";
    score = -200.0
  }
}

Added shodan.io to map through WebUI. But i still have 2.70 score

Screenshot

hardware commented 5 years ago

Your example seems good. Please post your question on rspamd community support, sometimes rspamd's scoring system is hard to understand in some case.

https://rspamd.com/doc/modules/whitelist.html