You cannot replace qmail-inject with a symlink to datemail. datemail uses
/var/qmail/bin/sendmail which simply calls qmail-inject.
Change your original scripts to call datemail directly.
On Mon, Mar 26, 2001 at 11:43:50AM -0800, Matt Simonsen wrote:
> >Strange... Try running this by hand:
> >
> >"/var/qmail/bin/predate /var/qmail/bin/sendmail"
> >
> >What do you get? The same error? The above line is what datemail does.
>
>
> Here it is:
>
> [root@wrapguy bin]# /var/qmail/bin/predate /var/qmail/bin/sendmail -t
> To: [EMAIL PROTECTED]
> Subject: testing
> test from wrapguy...
>
>
> And it worked perfectly while qmail-inject was the standard file. It gave
> the below error as soon as I replaced qmail-inject with datemail.
>
> So, to reiterate, here's the problem. When I run the datemail script it
> works perfectly, too. But when I add a symbolic link or replace the file
> qmail-inject with datemail I get an error. Here's a series of commands that
> should clearly show what I mean:
>
> [root@wrapguy bin]# cp datemail qmail-inject
> cp: overwrite `qmail-inject'? y
> [root@wrapguy bin]# ./qmail-inject
> sendmail: illegal option -- a
> sendmail: usage: sendmail [ -t ] [ -fsender ] [ -Fname ] [ -bp ] [ -bs ] [
> arg ... ]
>
> [root@wrapguy bin]# ls -l | grep qmail-inject
> -rwxr-xr-x 1 root root 72 Mar 26 11:35 qmail-inject
> -rwxr-xr-x 1 root root 34748 Mar 26 11:22 qmail-inject.orig
> [root@wrapguy bin]# cat qmail-inject
> #!/bin/sh
> exec /var/qmail/bin/predate /var/qmail/bin/sendmail ${1+"$@"}
> [root@wrapguy bin]# ./qmail-inject
> sendmail: illegal option -- a
> sendmail: usage: sendmail [ -t ] [ -fsender ] [ -Fname ] [ -bp ] [ -bs ] [
> arg ... ]
>
>
>
> Thanks for the help, all-
>
> Matt
>
--
---------------------------------
Timothy L. Mayo mailto:[EMAIL PROTECTED]
Senior System Administrator
The National Business Network Inc.
localconnect(sm)
http://www.localconnect.net/
The National Business Network Inc. http://www.nb.net/
One Monroeville Center, Suite 850
Monroeville, PA 15146
(412) 810-8888 Phone
(412) 810-8886 Fax