Great Circle Associates Majordomo-Users
(June 2000)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: What's wrong with this?
From: John Poltorak <jp @ mail . eyup . org>
Date: Wed, 28 Jun 2000 22:31:35 +0100
To: majordomo-users @ GreatCircle . COM
In-reply-to: <395A6248.A58D7FE2@netscape.com>; from Dan Liston on Wed, Jun 28, 2000 at 03:38:32PM -0500
References: <20000627210327.H430@mail.eyup.org> <395A6248.A58D7FE2@netscape.com>

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:
Indexed By Date Previous: Looking For MD List Service
From: "John Gattuso" <info@gatman.com>
Next: Re: Aliasing/Forward Loop Broken..
From: dliston@netscape.com (Dan Liston)
Indexed By Thread Previous: Re: What's wrong with this?
From: dliston@netscape.com (Dan Liston)
Next: Re: What's wrong with this?
From: Mike Oliver <Mike.Oliver@eng.sun.com>

Google
 
Search Internet Search www.greatcircle.com