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.).
| Tags | Communications Email Filters |
|---|---|
| Licenses | GPL |
| Operating Systems | POSIX |
| Implementation | Perl |
Recent releases


Changes: 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.


Changes: A couple potential security holes have been cleaned up.


Changes: 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".


Changes: 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.


Changes: 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.