ISPConfig 3.1.15p2 rspamd whitelist

Discussion in 'Installation/Configuration' started by Olivier BOUMATI, Oct 21, 2019.

  1. Olivier BOUMATI

    Olivier BOUMATI New Member

    Hi,

    What is the best method to whitelist a server ip address or an email ?
    Via ISPConfig interface (Postfix Whitelist or spam filter whitelist) or directly via the rspamd GUI configuration menu in one the following files, and which of them ?
    • /var/lib/rspamd/rspamd_dynamic
    • /var/lib/rspamd/spf_whitelist.inc.local
    • /var/lib/rspamd/dkim_whitelist.inc.local
    • /var/lib/rspamd/dmarc_whitelist.inc.local
    • /var/lib/rspamd/spf_dkim_whitelist.inc.local
    • /var/lib/rspamd/surbl-whitelist.inc.local
    Thank you.
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. Olivier BOUMATI

    Olivier BOUMATI New Member

    Thank you but this is for postfix, my question (not clear enough) was for rspamd, the new antispam filter replacing amavisd-new.
    Since I replaced amavisd-new by rspamd, some system admin mails sent by one of my servers are consistently seen as spam (subject changed), but since I have every confidence in this server, I wish it were whitelisted.
     
  4. Steini86

    Steini86 Active Member

    I think you can do it in the ispconfig gui. However, I have done the manual way for myself:
    Code:
    # cat /etc/rspamd/local.d/multimap.conf
    IP_WHITELIST {
          type = "ip";
          prefilter = "true";
          map = "${LOCAL_CONFDIR}/local.d/ip_whitelist.map";
          action = "accept";
    }
    
    WHITELIST_SENDER_DOMAIN {
          type = "from";
          filter = "email:domain";
          map = "${LOCAL_CONFDIR}/local.d/whitelist.sender.domain.map";
          action = "accept";
     }
    
    FRIENDLY_SENDER_DOMAIN {
          type = "from";
          filter = "email:domain";
          map = "${LOCAL_CONFDIR}/local.d/friendly.sender.domain.map";
          score = -7.0
     }
    ip_whitelist.map: One Whitelisted IP per line
    whitelist.sender.domain.map: One domain per line which is always accepted
    friendly.sender.domain.map: One domain per line, whose spam score is reduced by 7 (effectively whitelisted, too)
     
  5. Olivier BOUMATI

    Olivier BOUMATI New Member

    I tried it and it seems to be good.
    I would still like to know how to do with the GUI and what are the files listed in the "Lists" of the GUI configuration page rspamd (/ rspamd / # configuration)?
     
  6. Olivier BOUMATI

    Olivier BOUMATI New Member

    I replied to myself, just the files have the correct rights and the interface allows you to change. Well play.
     

Share This Page