From owner-freebsd-questions Thu Aug 10 7:57:50 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id BE13537BEEE for ; Thu, 10 Aug 2000 07:57:45 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id JAA09779; Thu, 10 Aug 2000 09:56:13 -0500 (CDT) (envelope-from dan) Date: Thu, 10 Aug 2000 09:56:13 -0500 From: Dan Nelson To: Thomas Good Cc: Jonathan Chen , questions@FreeBSD.ORG Subject: Re: Nobody versus FreeBSD Message-ID: <20000810095613.A3892@dan.emsphone.com> References: <20000809162417.B21946@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.3.7i In-Reply-To: ; from "Thomas Good" on Thu Aug 10 09:57:34 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Aug 10), Thomas Good said: > On Wed, 9 Aug 2000, Dan Nelson wrote: > > > Here is my /var/log/maillog complaint: > > > > > > Aug 9 16:43:25 postman sendmail[309]: NOQUEUE: SYSERR(nobody): queuename: Cannot create "qfQAA00309" in "/var/spool/mqueue" (euid=65534): Permission denied > > > > This looks like whatever program that's calling sendmail is using > > the wrong command-line args. Most likely, it's trying to run > > "sendmail -s mysubject user@host.com". This is a /usr/bin/mail > > commandline, not a sendmail line. Sendmail expects the subject to > > be passed into stdin as a header, like "Subject: mysubject". > > Right! I had a pipe happening: open MAIL " | /usr/bin/mail " > Yet, somehow or other sendmail was summoned rather than my old buddy > mail. To verfy this, you can run your perl script with "ktrace -di myprogram", then run "kdump" to see exactly what your script executed. > I must say, getting the subject line in the header was some feat. > Even the docs (Allman's book) were incorrect. I had to use a blank > line with one whitespace followed by a blank line (no whitespace or > tabs) to delimit the header from the body. That shouldn't be necessary. You should just need a single empty line between headers and body. > No offense to sendmail but the old Berkeley mail program works alot > better when called from Perl...dunno how I can force FBSD to use it > tho. It exists on my FBSD box but sendmail has precedence apparently. Hm. I've always used sendmail, since bin/mail can only set the subject header, whereas you can put any header in (reply-to, etc) if you call sendmail directly. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message