
spf at misc
Mar 23, 2004, 12:38 PM
Post #2 of 4
(1845 views)
Permalink
|
begin Tuesday 23 March 2004 20:25, Stuart D. Gathman quote: > [root [at] spide mail]# /usr/lib/sendmail -bt -Cspidey.cf > WARNING: Ruleset ParseLocal=98 has multiple definitions > WARNING: Ruleset EnvFromSMTP has multiple definitions > ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) > Enter <ruleset> <address> > > > I was amazed that the cf macros were smart enough to merge lines > from multiple features for a subroutine. But I apparently didn't > need to be. :-) > > Or is sendmail smart enough to do this, even though it complains with > a warning? Or does it use the last definition? It is sendmail that is smart enough to do the merging. If there are several S lines with the same ruleset name, all rules are merged within that same ruleset. The warning also only occurs for sendmail -bt (testing mode), not for actually running sendmail in queue or daemon mode. Probably, the reasoning is that the multiple definitions might be accidental, and that's why testmode warns about it. However, if you know that it is intentional, you can safely ignore the warning. http://www.busan.edu/~nic/networking/sendmail/ch29_01.htm#SML2-CH-29-SECT-1-5 Rule sets need not be declared in any particular order. Any order that clarifies the intention of the configuration file as a whole is acceptable. If a rule set appears more than once in a configuration file, V8 sendmail will print a warning: WARNING: Ruleset name redefined Prior to V8.8 WARNING: Ruleset name has multiple definitions V8.8 ... Note that the warning is given in all cases prior to V8.8, but beginning with V8.8, it is issued only in -bt rule-testing mode or if the -d37.1 debugging switch is set. Alain
|