Running two (or more) instances of ze-filter in the same machine

You may need this if, e.g., you're running two instances of sendmail in the same machine and filtering options of the two MTA aren't the same, or if you're running sendmail on different machines, but you want to place filters on a single machine. It's possible to do this if you follow the two rules bellow :

Only resources opened in Read Only mode can be shared.

/usr/sbin/ze-filter -c /etc/ze-filter-1/ze-filter.cf
/usr/sbin/ze-filter -c /etc/ze-filter-2/ze-filter.cf
  • As long as all files inside configuration file are opened in read-only mode, you can put everything in the same directory, if you want to share some configuration/data files. It may be interesting to share huge data files such as ze-urlbl.db or ze-bayes.db.
  • Location of all other resources needed by ze-filter can (and should) be defined at ze-filter.cf configuration file.
If you're running, in the same machine, more than one sendmail instance, each one have to listen on a different pair IP address/port, and must use different configuration files (sendmail.cf) to be able to attach the right filter.