On Tue, Mar 19, 2002 at 09:10:08AM -0500, Greg Ward wrote: | On 18 March 2002, Ed Kasky said: | > I am in the process of learning regex and have a question if someone has a | > minute.... | > | > Based on the following headers, is this the correct addition to | > 20_head_tests.cf? | > | > header UNDISC_RECIP To =~ /^Undisclosed-Recipient*:\s*;$/ | > describe UNDISC_RECIP Valid-looking To "Undisclosed-Recipient" | | No, that's wrong. For one thing, it'll match | "Undisclosed-Recipientttttt", and it *won't* match | "<Undisclosed-Recipient:;>" as in your example spam.
A simpler approach : If you're using exim 3 put headers_check_syntax = true in your config file. If you're using exim 4 put require verify = header_syntax in the acl_smtp_data ACL. My rejectlog shows (heavily snipped and sanitized) ~~~~ syntax error in 'To' header: "@" or "." expected after "Undisclosed-Recipient": failing address is: <Undisclosed-Recipient:@the_host.com;> ~~~~ The message doesn't even make it past the DATA command in the SMTP transfer. That means the message was never my responsibility (I don't send any bounces) and it didn't take any disk or cpu or memory in a queue or scanning by SA. -D -- Bugs come in through open windows. Keep Windows shut! _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk