[PLUG] A Postfix regex question

Wil Cooley wcooley at nakedape.cc
Wed Jul 31 04:41:42 UTC 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rich Shepard wrote:

>   What is the appropriate way(s) of specifying a blank subject line in an
> incoming message?
> 
>   In /etc/postfix/header_checks, I had the line:
> /^Subject:   /                REJECT <message>
> but this does not detect and reject spam with no subjects.
> 
>   Someone on the mailhelp list suggested removing the blanks, but that
>   just
> rejects all my incoming mail. If I use ".*", there has to be zero or more
> occurrences of any character after the word, Subject.


What about

/^Subject:$/    REJECT

?

Wil
- -- 
Wil Cooley                                 wcooley at nakedape.cc
Naked Ape Consulting                        http://nakedape.cc
* * * * Linux, UNIX, Networking and Security Solutions * * * *
QCSNet                                     http://www.qcsn.com
* * * * T1, Frame Relay, DSL, Dial-up, and Web Hosting * * * *

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9R2qNJpn3uYWUEaoRAk6rAJ4sz3J0/g7trnL8t963kZVOrVWbdgCglf6H
tqKjWIFw+vVfxHM1Ch/zSOE=
=LcOQ
-----END PGP SIGNATURE-----




More information about the PLUG mailing list