I've written a before-queue milter that I'm trying to integrate with Postfix, but there doesn't seem to be any specific documentation on how to do this. During development, I ran the milter manually, listening on port 7950, with nothing in master.cf, and this in main.cf:

smtpd_milters = inet:localhost:7950
non_smtpd_milters = $smtpd_milters

This works. For production, I'd like to get Postfix to run the milter, so I've added this to master.cf:

7950  inet  n  y  n  0  - samilter { -p inet:7950@localhost }

In other words, I want Postfix to run program 'samilter', with arguments '-p inet:7950@localhost'. This doesn't work, because 'samilter' is actually run with lots of additional arguments that I don't recognise. When samilter fails it adds this to the system mail log:

usage error (samilter -n 7950 -t inet -u -o stress= -s 2 -p inet:7950@localhost)

So Postfix is running it with additional arguments '-n 7950 -t inet -u -o stress= -s 2'.

Is there a list of additional arguments that I can ignore? Or do I actually need any of these arguments? I can run the milter as a service, if necessary, instead of adding an entry in master.cf, but this feels like the wrong way to do this. Thanks.

_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to