Skip to main content

Bypass Spam Filter (DSpam) for local IPs

Comments

5 comments

  • Shane3673
    Was able to do it by editing Exim Config here: "dspam_router: no_verify #uncomment the next line to disable dspam for virtual users. # check_local_user condition = "${if and { \ {!eq {$sender_address_domain}{$domain}} \ {!eq {$received_protocol}{local}} \ {!eq {$received_protocol}{spam-scanned}} \ } }" headers_add = "X-FILTER-DSPAM: by $primary_hostname on $tod_full" driver = accept transport = dspam_spamcheck" I just added {!eg {$sender_address_domain}{(domain)}} \ replace (domain) with the domain you are wanting to bypass for. This way you need to create a line for every domain. I couldn't figure out how to get it to read local_domains in place of manually typing in each one on it's own line of code.
    0
  • cPanelMichael
    Hello :) I am happy to see you were able to address the issue. Ensure you use the "Advanced Editor" via "WHM >> Service Configuration >> Exim Configuration Manager" to edit the configuration so the changes you make are preserved. Thank you.
    0
  • Shane3673
    Hello :) I am happy to see you were able to address the issue. Ensure you use the "Advanced Editor" via "WHM >> Service Configuration >> Exim Configuration Manager" to edit the configuration so the changes you make are preserved. Thank you.

    Yep, I know this from other stuff I have done in exim.conf. You have any idea the right syntax if I wanted to pull domains from local_domains? Like: {!eq {$sender_address_domain}{local_domains}} \ I tried this first and it didn't work so I think the syntax is off.
    0
  • cPanelMichael
    You can find some examples of syntax to use for local domains in the following thread: Forward certain domain emails to Smart Host It's intended for a different purpose, but the custom configuration values offer examples of Exim syntax for local domain names. Thank you.
    0
  • Shane3673
    Thanks. I will try this out when I have a chance and update the code here for anyone that might want it.
    0

Please sign in to leave a comment.