procmail
[Top] [All Lists]

Another one for rc.spammers - catch numeric email addresses

1997-07-04 11:50:00
Hi All,

I seem to be getting a number of spam from addresses such as:

39943968  (i.e. no @)

and things like:

1276(_at_)micro-net(_dot_)com

The following recipe should trap these:

##############################################################################
# 5) Fifth -- Numeric email addresses:
:0hb
* ^From: ([0-9]+$\
        |[0-9]+(_at_)\
        )
    {
     EXITCODE=77
     :0:
     automated/junk
    }

Note this matches on the From: line, just to try not to catch numbers in the
middle of addresses. So it catches addresses that are entirely numeric,
or one or more digit followed by an @. I don't think a fully numeric
address is ever likely to be valid.

Andrew.

-- 
*************************************************************
* Andrew Beckett               * Tel:   +44 1344 360333     *
* Lead Applications Engineer   * Fax:   +44 1344 360324     *
* Cadence Design Systems Ltd   * Email: andrewb(_at_)cadence(_dot_)com *
* Bagshot Road                 *                            *
* Bracknell.  RG12 3PH         *                            *
*************************************************************

<Prev in Thread] Current Thread [Next in Thread>
  • Another one for rc.spammers - catch numeric email addresses, Andrew Beckett <=