==================================================================
  Please DO NOT REPLY to this mail or send email to the developers
  about this bug. Please follow-up to Bugzilla using this link:
    https://bugs.contribs.org/show_bug.cgi?id=9605

  Have you checked the Frequently Asked Questions (FAQ)?
    http://wiki.contribs.org/SME_Server:Documentation:FAQ

  Please also take the time to read the following useful guide:
    http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
==================================================================

Daniel B. <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CLOSED
                 CC|                            |[email protected]
                   |                            |m
         Resolution|---                         |DUPLICATE

--- Comment #2 from Daniel B. <[email protected]> ---
This is already possible with the latest qpsmtpd (currently in
smeupdates-testing). The helo plugin (which replaces check_spamhelo) now
supports regex natively (look arround line 302):

sub is_in_badhelo {
    my ($self, $host) = @_;

    my $error = "I do not believe you are $host.";

    $host = lc $host;
    foreach my $bad ($self->qp->config('badhelo')) {
        if ($bad =~ /[\{\}\[\]\(\)\^\$\|\*\+\?\\\!]/) {    # it's a regexp
            if ($self->is_regex_match($host, $bad)) {
                return $error, "in badhelo";
            }
        }
        if ($host eq lc $bad) {
            return $error, "in badhelo";
        }
    }
    return;
}

Closing as duplicate of Bug #8861

Note however that this only checks for the HELO message sent by the spammer

*** This bug has been marked as a duplicate of bug 8861 ***

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to