Whitelist IP in Rspamd from ISPConfig GUI

Discussion in 'Installation/Configuration' started by OleSt, Jan 21, 2021.

  1. OleSt

    OleSt New Member

    How do I whitelist an IP in rspamd from the ISPConfig GUI?
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    In a little digging, I don't see any way to do so. You'd need to configure that directly in rspamd config files.
     
  3. OleSt

    OleSt New Member

    Just did this:

    /etc/rspamd/local.d/multimap.conf:

    IP_WHITELIST {
    type = "ip";
    prefilter = true;
    map = "/${LOCAL_CONFDIR}/local.d/ip_whitelist.map";
    action = "accept";
    }

    /etc/rspamd/local.d/ip_whitelist.map:

    192.168.122.3
    192.168.122.4

    Would be nice if it could be done from ISPconfig GUI.
     
  4. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    You can create a feature request in the issue tracker for that.
     
  5. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    This is a quick request for those using a custom whitelist setup via rspamd's multimap module: I'll add hooks into ispconfig's rspamd config for some filenames that can be used for local whitelists - what all maps are needed?

    Also note that doing so will require ISPConfig to supply a local.d/multimap.conf template, so watch for that in upcoming release notes (I'd guess 3.2.4, unless 3.2.3 lingers for a while longer). You could copy your own local.d/multimap.conf to /usr/local/ispconfig/server/conf-custom/install/rspamd_multimap.conf.master now so your changes persist the update, but you'll need to merge with the upstream template when it exists (or simply remove your custom template and use the "official" whitelist filenames if they cover your needs).
     

Share This Page