>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