1Sendmail::Milter(3) User Contributed Perl Documentation Sendmail::Milter(3)
2
3
4
6 use Sendmail::Milter;
7
8 Sendmail::Milter::auto_setconn(NAME);
9 Sendmail::Milter::register(NAME, { CALLBACKS }, FLAGS);
10 Sendmail::Milter::main();
11
13 This is a compatibility interface which emulates the "standard"
14 Sendmail::Milter API.
15
17 The following functions are available in this module. Unlike
18 "Sendmail::PMilter", this interface involves a single, global instance
19 of milter data, so these functions are called without an object
20 reference.
21
22 For each function, see the description of its object-based counterpart
23 in Sendmail::PMilter.
24
25 Sendmail::Milter::auto_getconn(NAME[, CONFIG])
26 Sendmail::Milter::auto_setconn(NAME[, CONFIG])
27 Sendmail::Milter::main([MAXCHILDREN[, MAXREQ]])
28 Sendmail::Milter::register(NAME, CALLBACKS[, FLAGS])
29 Sendmail::Milter::setconn(DESC)
30
31 One extension function is provided by this implementation.
32
33 Sendmail::Milter::get_milter()
34 Returns the "Sendmail::PMilter" instance underlying this emulation
35 layer. This allows mostly-unmodified milter scripts to set PMilter
36 extensions (such as dispatcher and sendmail.cf values). It is
37 recommended, however, that new code use the object instance methods
38 described in Sendmail::PMilter.
39
41 In order to preserve compatibility with the standard "Sendmail::Milter"
42 interface, all SMFI* constants described in Sendmail::PMilter are
43 exported into the caller's namespace by default.
44
45 (Note that "Sendmail::PMilter" itself does not export these symbols by
46 default.)
47
48
49
50perl v5.32.0 2020-07-28 Sendmail::Milter(3)