# # this is a filter to make sendmail reject messages with Date: headers # that are too long. This is used in the latest Outlook exploit. # # You NEED: # - a sendmail that understands regex maps. I had to specially compile this # into 8.11 ! Add to sendmail-8.11.0/devtools/Site/site.config.m4 # APPENDDEF(`confMAPDEF',`-DMAP_REGEX') and rebuild from scratch # # Sendmail 8.9 also works, but doesn't understand the + syntax for calling # the ruleset with full header (instead of header with just comments). # # The filter simply rejects messages with a date header longer (total!) # then 60 chars # # Then add this part to your .mc file in the different areas and regenerate # your .cf file # # 2000-07-21 Originally written # 2000-07-24 Fixed cut-and-paste error # 2000-07-25 Added comment about sendmail 8.9 # # if you cut and paste this: # tabs are in use in the '^R' lines # # Koos van den Hout # http://www.cetis.hvu.nl/~koos/ # http://www.virtualbookcase.com/ # LOCAL_CONFIG Klinetoolong regex -a@MATCH ^.{60,}$ LOCAL_RULESETS HDate: $>+CheckDate SCheckDate R$* $: $(linetoolong $1 $) R@MATCH $#error $: 553 Date Header too long error R$* $@ OK