On Wed, Jun 28, 2000 at 03:38:32PM -0500, Dan Liston wrote:
> If your test.msg includes properly formatted header lines, you can do
> this;
>
> cat test.msg | sendmail -t
>
> or
>
> sendmail -t < test.msg
>
> If you do these commands as the majordomo user, you risk getting punt
> and bounce messages about not replying to myself.
I found the error I mentioned was due to a misunderstanding of the msg
displayed. I thought it was a problem running sendmail, whereas it was one
of location. When I defined $sendmail_command as /usr/sbin/sendmail.exe
the problem disappeared.
> Dan Liston
>
> John Poltorak wrote:
> >
> > I am trying to get Majordomo 1.94.5.1 working under OS/2 and have come
> > across a problem I don't understand. Not surprising really as I've
> > never done any Perl programming. Hopefully someone can explain what
> > I've done wrong...
> >
> > I'm trying to post to a list from the command line:-
> >
> > sendmail testlist <test.msg
> >
> > and I get this error:-
> >
> > resend.cmd: main'sendmail: Sender owner-testlist, mail_cmd = sendmail -f owner-testlist -t
> > mj_resend: ABORT
> > mj_resend: do_exec_sendmail, mailer sendmail not executing
> > resend.cmd: main'log()
> >
> > This seems to come from here:-
> >
> > majordomo.pl
> > ~~~~~~~~~~~~
> > # Exec a mailer process
> > sub main'do_exec_sendmail {
> > &main'abort("do_exec_sendmail, number of args <= 1 unsafe to exec")
> > if scalar(@_) <= 1;
> > # It makes sense to check to see that the mailer is valid here, but the
> > # abort routine must make certain that recursion doesn't develop,
> > # because abort calls this routine.
> > &main'abort("$main'program_name: do_exec_sendmail, mailer $_[0] not executing")
> > unless (-x $_[0]);
> > exec(@_);
> > die("Failed to exec mailer \"@_\": $!");
> > }
> >
> > sendmail is on the path and works fine, so why does it stop here?
> >
> > $sendmail_command is defined as "sendmail" in majordomo.cf.
> >
> > I have had some success trying to run an older version of
> > majordomo which was slightly ammended to run under OS/2, so I
> > believe it should be possible to get it working..
> >
> > --
> > John
--
John
References:
|
|