ProxSMTP: An SMTP Filter

lionzl發表於2016-11-15


ProxSMTP: An SMTP Filter

ProxSMTP is a flexible tool that allows you to reject, change or log email based on arbitrary critera. It accepts SMTP connections and forwards the SMTP commands and responses to another SMTP server. The 'DATA' email body is intercepted and filtered before forwarding.

You need to be able to write the filtering scripts that integrate it with your particular needs. If you're looking for something that does virus filtering, take a look at ClamSMTP which behaves similarly and uses a similar code base.

I wrote this with the Postfix mail server in mind. Here's how to configure it as a Postfix Content Filter.

ProxSMTP can also be used as a transparent proxy to filter an entire network's SMTP traffic at the router.

Documentation

proxsmtpd(8): The man page.
proxsmtpd.conf(5): Man page for the config file.

Notes:

  • Tested on Linux, FreeBSD. And works on OpenBSD, NetBSD and Mac OS X as well.
  • List of Changes
  • Sample filter scripts

Downloads:

Source: proxsmtp-1.10.tar.gz
Source: proxsmtp-1.9.tar.gz
Source: proxsmtp-1.8.tar.gz
Source: proxsmtp-1.7.tar.gz
Source: proxsmtp-1.6.tar.gz
Source: proxsmtp-1.5.tar.gz
Source: proxsmtp-1.4.tar.gz
Source: proxsmtp-1.3.tar.gz
Source: proxsmtp-1.2.1.tar.gz
Source: proxsmtp-1.2.tar.gz [broken]
Source: proxsmtp-1.1.tar.gz
Source: proxsmtp-1.0.tar.gz
Source: proxsmtp-0.6.tar.gz
Source: proxsmtp-0.5.tar.gz

Development:

You can get a snapshot of the source with git:

$ git clone git://thewalter.net/proxsmtp.git

Source code repository:
http://thewalter.net/git/cgit.cgi/proxsmtp/

Third Party:

Using ProxSMTP with McAfee uvscan [Ward van Wanrooij]
Source RPMS [Simon Matter]
Source RPMS [Martynas Bieliauskas martynas@inet.lt]
Redhat Init Script [Michael Weber]

Licensing and Support

BSD type license. Contact me when bugs are found.

相關文章