> On Dec 11, 2019, at 9:38 PM, li...@lazygranch.com wrote:
> 
> I have a spammer who uses all sorts of "from" addresses but the same
> "reply" address. Any way to block this spammer in Postfix.

  main.cf:
        pcre = pcre:${config_directory}/
        header_checks = ${pcre}header-checks.pcre
        # Set empty, or keep existing non-default value
        nested_header_checks =
        mime_header_checks =

  header-checks.pcre:
    if /^Reply-To:/
    # Adjust to exactly match the observed header
    # Includes rule id in reject message
    /[:\s<]spammer@example\.net[>\s]/   REJECT 5.7.1 Access denied R0001
    /^/                                 DUNNO no more Reply-To rules
    endif

-- 
        Viktor.

Reply via email to