proxsmtpd

multi purpose SMTP Proxy

Install

All systems
curl cmd.cat/proxsmtpd.sh
Debian Debian
apt-get install proxsmtp
Ubuntu
apt-get install proxsmtp
image/svg+xml Kali Linux
apt-get install proxsmtp
Windows (WSL2)
sudo apt-get update sudo apt-get install proxsmtp
Raspbian
apt-get install proxsmtp

proxsmtp

multi purpose SMTP Proxy

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. You do not need a local mail-transport-agent installed, since this server can forward to a remote one.