On Sun, Mar 11, 2001 at 11:07:57AM -0700, Avery Brooks wrote:
> I am still having an issue where I can't send mail from a script.  I
> currently use: /var/qmail/bin/qmail-inject   ... as my qmail absolute path.
> 
> Now here is what I can do:
> 
> 1) I can send an empty message to local users, and remote users.
> 2) I can send messages from PINE.
> 3) I can send messages from everything but a script.
> 4) All test in the, TEST.deliver and TEST.receive DO WORK!

This means that qmail is working. Good.
> 
> Here is what Qmail doesn't seem to do:
> 
> 1) Qmail doesn't log anything at all, I can't find anything about qmail in
> the:  /var/log/messages  OR  /var/log/maillog

Not possible -- it always logs _somewhere_. Even if you've badly bungled
the install instructions, it will log to the console... Whose
instructions did you follow for installing qmail? IIRC, the default
instructions in the tarball result in syslog messages using splogger
(ugh) and LWQ's instructions result in logs in /var/log/qmail/*.
>
> 
> 2) Qmail will not send a message from script at all.

Please send the list an example of what you're trying to use to
send mail from a script. I personally speak shell and perl.
Alternatively, if you followed the directions in LWQ and/or the
INSTALL.* files, try the following from the command line:

cat << EOF | /var/qmail/bin/qmail-inject 
From: root
To: root
Subject: Testing script
 
Testing
EOF

The above is all you need to send mail in a shell script. You can, of
course, get fancier.

SNIP

HTH,

-- 
Greg White
Those who make peaceful revolution impossible will make violent
revolution inevitable.
                -- John F. Kennedy

Reply via email to