Projects / batemail


batemail is a Perl script that you slip between your MTA (e.g. Sendmail) and your local mailer (e.g. Procmail) to strip potentially nasty attachments from email messages. It takes input on STDIN, removes executable MIME attachments, and gives the result to the local mailer. The criteria for a taboo attachment are that the filename ends in one of several "blacklisted" extensions (EXE, VBS, etc.).

Operating Systems

Recent releases

  •  10 Sep 2002 17:42

    Release Notes: This release contains a minor bugfix that corrects situations in which the MTA passes null arguments to the mailer. This (perfectly legal behavior) was causing user mail to be delivered to root under certain circumstances.

    •  27 Aug 2002 18:54

      Release Notes: A couple potential security holes have been cleaned up.

      •  26 Mar 2002 17:11

        Release Notes: The most important change in this release is smarter handling of quote characters around the attachment file name. This has the effect of reducing the number of attachments that incorrectly "slip through".

        •  25 Oct 2001 05:15

          Release Notes: batemail now has the ability to save blocked attachments. I/O has been improved - the output is now piped directly to the local mailer (no more tempfile). Some new documentation has been added on setting up outbound filtering (with Sendmail), and also on installing batemail using Sendmail m4 macros. The default location for certain files has been changed.

          •  17 Aug 2001 00:32

            Release Notes: This release marks the project's official transition from "alpha" status to "beta". There has been a general clean-up performed on the source code. Logging has also been improved to provide both more detail and finer control over logging verbosity, and the blocked filename is reported in the notice to the recipient.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.