use Sendmail::Milter; Sendmail::Milter::auto_setconn(NAME); Sendmail::Milter::register(NAME, { CALLBACKS }, FLAGS); Sendmail::Milter::main();
This is a compatibility interface which emulates the "standard" Sendmail::Milter API.
The following functions are available in this module. Unlike Sendmail::PMilter, this interface involves a single, global instance of milter data, so these functions are called without an object reference.
Sendmail::PMilter
For each function, see the description of its object-based counterpart in Sendmail::PMilter.
One extension function is provided by this implementation.
Returns the Sendmail::PMilter instance underlying this emulation layer. This allows mostly-unmodified milter scripts to set PMilter extensions (such as dispatcher and sendmail.cf values). It is recommended, however, that new code use the object instance methods described in Sendmail::PMilter.
In order to preserve compatibility with the standard Sendmail::Milter interface, all SMFI* constants described in Sendmail::PMilter are exported into the caller's namespace by default.
Sendmail::Milter
(Note that Sendmail::PMilter itself does not export these symbols by default.)
To install Sendmail::PMilter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sendmail::PMilter
CPAN shell
perl -MCPAN -e shell install Sendmail::PMilter
For more information on module installation, please visit the detailed CPAN module installation guide.