filewall.io cleans files such as PDF documents, images and many more from malicious code that can do considerable damage to your computer. When you open your documents with filewall.io, you get a secure copy of your document and don't have to hope that your virus scanner already knows the virus. With filewall.io you make the attachments in your e-mails 100% virus-free.
sudo pip install git+https://github.com/filewallio/filewall-smtpd
Set your apikey in /etc/filewall-smtpd.conf
sudo service filewall-smtpd start
To start filewall-smtpd at boot time, use
systemctl enable filewall-smtpd.service
.
Get the full source code at https://github.com/filewallio/filewall-smtpd/
(/etc/postfix/)main.cf:
content_filter = scan:localhost:10025
receive_override_options = no_address_mappings
(/etc/postfix/)master.cf:
scan unix - - n - 10 smtp
-o smtp_send_xforward_command=yes
-o disable_mime_output_conversion=yes
localhost:10026 inet n - n - 10 smtpd
-o content_filter=
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks,no_milters
-o smtpd_authorized_xforward_hosts=127.0.0.0/8