[ R.K.Hillman writes: ]
>
> I'm new to majordomo, and have been having a problem with setting up this
> particular alias. I've installed 1.93 on a Digital Unix 4.0 system.
> I've set up all the aliases as described in the documentation.
> However when mailing the -request address no reply is received.
> The alias I have is:
>
> cands-l-request:"|/local/bin/majordomo/wrapper request-answer cands-l"
>
> I've checked my mail.log and sendmail appears to be correctly dealing with
> the incoming request by piping to the wrapper but there is no
> response at all.
*Someone* should be getting some sort of message. Have you checked with
the "Postmaster"? Have you applied these fixes?
[This is a canned message.]
The request-answer program in Mj 1.93 needs some patches to work at all.
If you don't have the patch program installed (why not?), you'll have to
edit request-answer by hand to make these changes. NOTE THAT IN EITHER
CASE YOU MAY NEED TO CHANGE THE SENDMAIL PATH IN THE do_exec_sendmail
CALL TO BE WHATEVER'S CORRECT FOR YOUR SYSTEM.
If you're not familiar with unified diffs, this is how to interpret
the patch. The first character of each line is a type indicator and
is not part of the patched line it describes. Lines beginning with
'@@' are location information and are not part of the patch itself, so
ignore them other than to help locate the changes in the source file. A
space in the first column means the line doesn't change, it's there to
establish context to help you identify the changed lines. A '-' in the
first column means the line is to be deleted. A '+' in the first column
means the line is to be inserted.
[BEGINNING OF PATCH]
@@ -10,10 +10,8 @@
# $Locker: $
# set our path explicitly
-$ENV{'PATH'} = "/bin:/usr/bin:/usr/ucb";
-
-# What shall we use for temporary files?
-$tmp = "/tmp/majordomo.$$";
+# PATH it is set in the wrapper, so there is no need to set it here.
+#$ENV{'PATH'} = "/bin:/usr/bin:/usr/ucb";
# Read and execute the .cf file
$cf = $ENV{"MAJORDOMO_CF"} || "/etc/majordomo.cf";
@@ -29,6 +27,7 @@
chdir($homedir) || die("Can't chdir(\"$homedir\"): $!");
unshift(@INC, $homedir);
+require "shlock.pl";
require "majordomo.pl";
&ParseMailHeader(STDIN, *hdrs);
@@ -37,22 +36,22 @@
$in_reply_to = $hdrs{"message-id"} . ", from " . $hdrs{"from"};
$list = $ARGV[0];
-sub do_exec_sendmail {
- exec("/usr/lib/sendmail", "-f$list-request", "-t") ||
- die("Failed to exec sendmail");
+if (defined($isParent = open(MAIL, "|-"))) {
+ &do_exec_sendmail("/usr/lib/sendmail", "-f$list-approval", "-t")
+ unless $isParent;
+} else {
+ &abort("Failed to fork prior to mailer exec");
}
-open(MAIL, "|-") || &do_exec_sendmail();
-
print MAIL <<"EOM";
To: $reply_to
From: $list-request
-Subject: Your mail to $list-request@$whereami
+Subject: Your mail to $list-request\@$whereami
In-Reply-To: $in_reply_to
-Reply-To: $list-approval@$whereami
+Reply-To: $list-approval\@$whereami
This pre-recorded message is being sent in response to your recent
-email to $list-request@$whereami.
+email to $list-request\@$whereami.
All routine administrative requests (including subscriptions and
unsubscriptions) concerning this mailing list are handled by an
[END OF PATCH}
--
Dave Wolfe *Not a spokesman for Motorola*
Motorola MMTG 6501 Wm. Cannon Dr. W. OE112 Austin TX 78735-8598
References:
|
|