Le mercredi 30 août 2000 à 4:11:49 PM, [EMAIL PROTECTED] a écris:
> On Wed, Aug 30, 2000 at 03:14:19PM +0200, Audouy J?r?me wrote:
>> > I have a problem with the /var/qmail/bin/sendmail program
>> > i try to send a mail via a script (AMaViS) but the command line doesn't work :
>> > #!/bin/sh
>> > cat <<EOF | /usr/lib/sendmail -i -t
>> > From: [EMAIL PROTECTED]
>> > To: [EMAIL PROTECTED]
>> > Subject: test
>> >
>> > my test text.
>> > EOF
>> 
>> i find my problem !
>> there is a little bug in qmail !
>> 
>> if you use qmail-inject as a link to datemail (to put the date)

> If I understand you correctly, then this is not the way you are
> meant to arrange these programs.

> You might link /var/qmail/bin/datemail to sendmail or maybe
> link /var/qmail/bin/sendmail to sendmail but definitely *do not* link
> anything to /var/qmail/bin/qmail-inject.

> Show us the output of: ls -l /var/qmail/bin
now i have (normal way):
/var/qmail/bin:
...
-rwxr-xr-x   1 root     qmail         126 Aug 30 15:30 datemail
...
-rwxr-xr-x   1 root     qmail        33244 Aug 30 15:34 qmail-inject
...
-rwxr-xr-x   1 root     qmail        8700 Aug 30 15:35 sendmail
...


but when i had the problem, i had (wrong way):
/var/qmail/bin:
...
-rwxr-xr-x   1 root     qmail         126 Aug 30 15:30 datemail
...
lrwxrwxrwx   1 root     qmail        33244 Aug 30 15:34 qmail-inject -> datemail
...
-rwxr-xr-x   1 root     qmail        8700 Aug 30 15:35 sendmail
...

and i try :

cat << EOF | /usr/sbin/sendmail -i -t
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: test

test text.
EOF


of course in /usr/sbin :

...
lrwxrwxrwx   1 root     root           23 Aug 24 16:25 sendmail -> 
/var/qmail/bin/sendmail
...

it tells me:
sendmail: illegal option -- H
sendmail: usage: sendmail [ -t ] [ -fsender ] [ -Fname ] [ -bp ] [ -bs ] [ arg ... ]


>> BUG (or bad utilisation) reported :)
> If I understand you correctly, then "bad utilisation".
no really because if i want to put the local date in all mails i could use:

ln -s /var/qmail/bin/datemail /var/qmail/bin/qmail-inject

without any problem with /var/qmail/bin/sendmail no ?
(i saw this solution somewhere but i don't remind where exactly)


Dji.
-- 
Audouy Jérôme - 3rd year student in E.S.S.I. (Ecole Supérieure en Sciences 
Informatiques)
e-mail : [EMAIL PROTECTED] / [EMAIL PROTECTED]
www    : http://djidji.citeweb.net / http://www.essi.fr/~audouy


Reply via email to