Prev | Current Page 2135 | Next

Bryan Costales, Claus Assmann, George Jansen, Gregory Shapiro

"sendmail, 4th Edition"


This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
26.5 smfi_ Routine Reference | 1193
If a new header was added, the following message will be logged if the sendmail configuration
file??™s Milter.LogLevel option (?§24.9.76.1 on page 1053) has a value of nine or more:
Milter add: header: name: value
Note that the current Milter may not have the opportunity to add a header if a prior Milter
has rejected the message. Therefore, never use a custom-added header with the expectation
that it could convey information to subsequent Milters.
26.5.10 Milter smfi_main()
Run the Milter All sendmail versions
The smfi_main() routine starts Milter running and, if you have not already called the smfi_
opensocket() routine (?§26.5.11 on page 1193), establishes the listening socket. The smfi_
main() routine takes no argument and is called like this:
ret = smfi_main();
Here, the returned integer value ret will contain either MI_FAILURE if the Milter failed to
start, or MI_SUCCESS if the Milter ran and exited normally. A Milter can fail to start up
because it could not establisha listening socket, or because of a system or memory error.
Usually, failure to start is logged with syslog().
Note that smfi_main() does not put your program into the background to run as a daemon.
You need to write that code yourself.


Pages:
2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147
gry on line życzenia ślubne gustowne meble katowice felgi aluminiowe poznań katalog firm