I am trying to understand how to register milters with Sendmail.
I have found this tutorial suggesting that milters must be referenced in hostname.mc and that the specific values to insert will always be mentioned in the man pages of the specific milters. However, the only milter's man page I have found providing .mc instructions is the one used by the author of the tutorial: milter-regex.
The rest I've seen, for example opendkim(8), filter-clamav(8), filter-dkim-signer(8) do not provide any instruction with regards to the .mc file. At the same time, I have seen that smtpd.conf(5) provides a syntax to register filter calls and hook them at the right place (however apparently nothing to indicate the location of the binary of the filter). So here are my questions:
Such a T=S, R:2m etc.... I am also wondering which other macros are available apart from INPUT_MAIL_FILTER. I tried to search sendmail documentation but couldn't find anything regarding this file.
Thank you
I have found this tutorial suggesting that milters must be referenced in hostname.mc and that the specific values to insert will always be mentioned in the man pages of the specific milters. However, the only milter's man page I have found providing .mc instructions is the one used by the author of the tutorial: milter-regex.
The rest I've seen, for example opendkim(8), filter-clamav(8), filter-dkim-signer(8) do not provide any instruction with regards to the .mc file. At the same time, I have seen that smtpd.conf(5) provides a syntax to register filter calls and hook them at the right place (however apparently nothing to indicate the location of the binary of the filter). So here are my questions:
- Would it be correct to assume that if a filter does not provide .mc instructions, then the filter must be registered in smtpd.conf?
- Why would some filters need to be registered in hostname.mc and why would other be able to be used without being registed in hostname.mc ?
- Where can I find documentation for the syntax used in hostname.mc?
Code:
INPUT_MAIL_FILTER(`milter-regex', `S=unix:/var/spool/milter-regex, T=S:30s;R:2m')
Such a T=S, R:2m etc.... I am also wondering which other macros are available apart from INPUT_MAIL_FILTER. I tried to search sendmail documentation but couldn't find anything regarding this file.
Thank you