procmail
[Top] [All Lists]

Re: rejecting message without a TO header.

1999-03-30 05:31:16
On 30 March 1999, era eriksson <era(_at_)iki(_dot_)fi> wrote:
On Mon, 29 Mar 1999 23:10:03 -0800 (PST), Jauder Ho
<jauderho(_at_)carumba(_dot_)com> wrote:
 > I keep getting messages like this and invariably they are
 > spam. Does anyone have an idea on how to reject such mail?

Something like this I imagine:

    :0
    * ! ^To:
    spam

You could even go as far as to look for ! ^TO -- I believe this will
at least match the current flurry of To-less AOL spam
[...]

    Depending on your sendmail configuration, To:-less messages may have
Apparently-To: headers, and ^TO will match them.  Personally, I'm using

        :0:
        * ! ^(To|Cc):
        spam

    Regards,

    Liviu Daia

-- 
Dr. Liviu Daia               e-mail:   Liviu(_dot_)Daia(_at_)imar(_dot_)ro
Institute of Mathematics     web page: http://www.imar.ro/~daia
of the Romanian Academy      PGP key:  http://www.imar.ro/~daia/daia.asc

<Prev in Thread] Current Thread [Next in Thread>