Wordpress - Contact Form 7 - Blacklist "Reply To" email address

Discussion in 'Installation/Configuration' started by HappierTimesAhead, Sep 12, 2021 at 11:53 AM.

  1. HappierTimesAhead

    HappierTimesAhead New Member


    We have a couple of Wordpress sites on different domains that use the "Contact Form 7" plugin. We also have the "ReCaptcha v2 for Contact Form 7" plugin active. We are receiving untold amounts of spam from one email address - [email protected]

    I am having problems creating a blacklist for this email address as Contact Form 7 forwards the messages to an internal email address as the "From" email address which I obviously cannot blacklist!

    My question is how can I ban a "Reply To" email address which contains the offending email address?

    As always many thanks in advance for any help on this

  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. HappierTimesAhead

    HappierTimesAhead New Member


    My apologies for that - I thought I had the info in my Signature!

    We are not using Wordfence.

    TBH I do not use Wordpress myself - this is for a couple of clients.

    The issue is that Contact Form 7 sends the form message to an internal email address belonging to each domain. This is from the Headers of the received email: -

    (Authenticated sender: ###[email protected])
    Date: Sun, 12 Sep 2021 08:56:42 +0000
    To: ### ## <###[email protected]>
    From: ### ## <###[email protected]>
    Reply-To: [email protected]

    We really need to be able to BlackList the Reply-To: [email protected]

    As always, many thanks for your kind help

  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Adding this under Email -> Content filter should work:
    /^Reply-To: [email protected]/


Share This Page