Hi Richard and Franck,
Thanks for your messages about the parameters given to sendmail.
All of the current parameters used in the sendmail command run by
news2mail seem useful to keep.
I've seen that we have an exception with the news2mail gatewaying program, which uses additional flags:
<mta without %s> -ee -odq -fxxx -pNNTP:pathhost addresses
I don't know what "-ee" means. Does someone know? Is it still a useful flag?
-eX is a historical synonym for -oeX, and -oee means that if an error in
is encountered when sending the message then it should be reported by an email, with the exit status always being 0. Contrast -oem where you get errors by mail but (presumably) also a nonzero exit status.
Thanks for the pointer to "-oee"!
(Assuming the administrator actually wants to see errors) it should
probably be -oee or -oem depending on what the calling process expects
from the MTA’s exit status.
Indeed, the "-oee" fits better in the logic of how news2mail treats the
return statut of the command.
To prevent conflicts in the arguments given to sendmail, I plan on
ensuring -oem and -f are stripped from the mta command line
(parameterized in inn.conf), as news2mail uses different values.
my $sendmail = $INN::Config::mta;
+ # Remove %s and -f from the mta command line (we'll explicitly set
+ # recipients and an envelope sender below).
+ # Remove -oem as we'll set -oee so that sendmail exits with a
+ # non-zero status only if the mail cannot be sent.
$sendmail =~ s!\s*%s!!;
+ $sendmail =~ s!\s*-f\s*\S*!!;
+ $sendmail =~ s!\s*-oem!!;
my @command = (
- split(' ', $sendmail), '-ee', '-odq', "-f$s",
+ split(' ', $sendmail), '-oee', '-odq', "-f$s",
"-pNNTP:$INN::Config::pathhost", @a
);
--
Julien ÉLIE
« Traversez la rivière en foule, le crocodile ne vous mangera pas. »
(proverbe malgache)
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)