Hi

I created a file called /tmp/a with the following lines

Subject: Test
To: [EMAIL PROTECTED]
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Test

I then run the following as root on Redhat 7.1

Cat /tmp/a | /usr/lib/courier/bin/sendmail [EMAIL PROTECTED]

The following was returned

/usr/lib/courier/bin/sendmail: Subject:: command not found
/usr/lib/courier/bin/sendmail: To:: command not found
/usr/lib/courier/bin/sendmail: Mime-Version:: command not found
/usr/lib/courier/bin/sendmail: Content-Type:: command not found
/usr/lib/courier/bin/sendmail: Content-Transfer-Encoding:: command not
found


Have I configured courier incorrectly?

Am I missing some dependency?

Any ideas? 

Thanks

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Roland
Schneider
Sent: Thursday, January 17, 2002 2:51 PM
To: 'courier'
Subject: Re: [courier-users] Sending mail from the console


--Johannes Erdfelt wrote on 17.01.2002 15:58 -0500:
[...]
>> #!/bin/sh
>> 
>> ( echo "Subject: Whatever you want, 7bit-chars only
>> To: [EMAIL PROTECTED]
>> Mime-Version: 1.0
>> Content-Type: text/plain; charset=iso-8859-1
>> Content-Transfer-Encoding: 8bit
>> "; cat /var/log/my_log ) | sendmail [EMAIL PROTECTED]
> 
> Souldn't that be a function of 'mail'?

mail (and Mail which is a symlink) does not know anything
about mime, the only 'functionality' is wrapping the generated headers
after 72 characters and some checks if the connection is above or below
1200bps... (current FreeBSD)

Its basically the same as of 6/6/93, and the first draft about mime (rfc
1521) was published a few months later.

Roland


_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to