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).
     
    atle likes this.
  6. atle

    atle Member HowtoForge Supporter

    Has this been implemented?
     
  7. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    atle likes this.
  8. atle

    atle Member HowtoForge Supporter

  9. atle

    atle Member HowtoForge Supporter

    Sorry, my bad, I see now that that file is copied to local.d.
     
  10. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Correct, there will be a template for local.d/multimap.conf. FWIW, if you (or ISPConfig) were to create an override.d/multimap.conf file, the local.d/multimap.conf file would not be used at all (well, unless your override.d file included it).

    What's your multimap use case? I can try to make sure it's covered in the default setup if it's relevant to most systems.
     
  11. atle

    atle Member HowtoForge Supporter

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

Share This Page