[Esd-l] Blocking HTML e-mail altogether

John D. Hardin jhardin at impsec.org
Wed Jan 9 07:07:00 PST 2002

On Mon, 7 Jan 2002, Jason Jordan wrote:

> However rather than sanitize HTML e-mails, I'd just like to bounce
> them altogether.  In fact, I'd rather even reject during receipt!

That would require that sendmail recognize html content. Procmail only
sees the message after sendmail has accepted delivery.

> Is there any way to do this with John's baby or should I do it
> myself?

Try this in your local rules:

	:0 HB
	* ^Content-type: text/html
        | formail -A "X-Content-Security: [$HOST] NOTIFY" \
                  -A "X-Content-Security: [$HOST] DISCARD" \
                  -A "X-Content-Security: [$HOST] REPORT: HTML content
not wanted. Please send plain text."

> Does anyone else feel the same way about HTML e-mail?

Very nearly...

 John Hardin KA7OHZ    ICQ#15735746    http://www.impsec.org/~jhardin/
 jhardin at impsec.org                       pgpk -a jhardin at wolfenet.com
  768: 0x41EA94F5 - A3 0C 5B C2 EF 0D 2C E5  E9 BF C8 33 A7 A9 CE 76 
 1024: 0xB8732E79 - 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
  Monty Python's Star Trek Voyager:
  A successful trans-warp experiment turns Paris and Janeway into
  newts, but they get better.
  ...wait a minute... It's already been done...
   10 days until Babylon 5: the Legend of the Rangers

More information about the esd-l mailing list