No milters with command line message submission? (v8.14.1)
- From: - <kd6lvw@xxxxxxxxx>
- Date: Thu, 27 Sep 2007 13:23:37 -0700
If I'm reading "sendmail/main.c" correctly, milters only seem to be
invoked if in "daemon mode" or "smtp stdin/stdout mode" ("-bd" and "-
bs" respectively), but not when sendmail is used for command-lne
message submission. Milters wll be invoked if one submits a message
via port 587 because that is really "daemon mode."
The problem I noted is that PHP submits to sendmail via the command-
line interface, not port 587. This means that milters such as those
which perform domainkeys SIGNING of messages don't get invoked - even
if listed in "submit.cf". That further means that web mail
submissions don't get DK-signed. I would suggest that this behavior
be changable as follows:
A command-line message submission will be in "OpMode MD_DELIVER" but
will not invoke any milters. This usage implies that "submit.cf" be
used to process the message. Therefore, specifying "-Ac" should be
redundant - but could be used to force milter processing for these
messages. An alternative would be to assign an optional argument to
force milter processing, but I believe that such might not be
necessary if "-Ac" could do it.
The change: sendmail/main.c - about line 1905 - reads:
#if MILTER
/* sanity checks on milter filters */
if (OpMode == MD_DAEMON || OpMode == MD_SMTP)
{
milter_config(InputFilterList, InputFilters,
MAXFILTERS);
setup_daemon_milters();
}
#endif /* MILTER */
if we add a third conditional, I believe that will accomplish the
goal:
if (OpMode == MD_DAEMON || OpMode == MD_SMTP || cftype ==
SM_GET_SUBMIT_CF)
I have not tested this modification (I shall be doing so shortly). It
would only affect sendmail command-line submission invocations with "-
Ac" specified and binaries compiled with milters enabled.
Comments? Any other way to do this?
.
- Follow-Ups:
- Re: No milters with command line message submission? (v8.14.1)
- From: Per Hedeland
- Re: No milters with command line message submission? (v8.14.1)
- Prev by Date: Re: Secondary MX [dumb v. smart]
- Next by Date: Re: Secondary MX [dumb v. smart]
- Previous by thread: sendmail.cf.rpmnew, but no sendmail.mc.rpmnew?
- Next by thread: Re: No milters with command line message submission? (v8.14.1)
- Index(es):
Relevant Pages
|