

from _future_ import print_function import Milter try:įrom StringIO import StringIO as BytesIO except:įrom io import BytesIO import time import email import os import sys from socket import AF_INET, AF_INET6 from Milter. # You can also add/del recipients, replacebody, add/del headers, etc. # Return REJECT,TEMPFAIL,ACCEPT to short circuit processing for a message. # Milter calls methods of your class at milter events. # See the pymilter project at based # on Sendmail's milter API # This code is open-source on the same terms as Python. # This is a useless example to show basic features of Milter. #!/usr/bin/python3 # To roll your own milter, create a class that extends Milter. Installation steps for Ubuntu 20.04 (Milters can be on a separate VM, so it doesn’t matter if Zimbra is on a different OS than Ubuntu): Milters can be installed on your Zimbra server or on a dedicated server. You can also use LDAP and MariaDB in Python if you need to.

The advantage of using Python in this scenario is that it avoids the need to compile (C/Java), which makes it easier to debug. While there are Java, C and NodeJS implementations of Milters, the one used in this article is based on Python 3. This is not a problem as you can have multiple Milters on Zimbra Postfix. Milters are also used in other Zimbra components such as DKIM and SpamAssasin.
#ZIMBRA DESKTOP DISPLAY HEADER HOW TO#
Today I will show you how to create an extension to Postfix. By Barry de Graaff on Main Product News, Community, Did You Know, Partners, PowerTips – Admins, Zimbra Server
