Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Aug 2000 09:56:13 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        Thomas Good <tomg@mailhost.nrnet.org>
Cc:        Jonathan Chen <jonathan.chen@itouch.co.nz>, questions@FreeBSD.ORG
Subject:   Re: Nobody versus FreeBSD
Message-ID:  <20000810095613.A3892@dan.emsphone.com>
In-Reply-To: <Pine.LNX.4.10.10008100951180.3139-100000@mailhost.nrnet.org>; from "Thomas Good" on Thu Aug 10 09:57:34 GMT 2000
References:  <20000809162417.B21946@dan.emsphone.com> <Pine.LNX.4.10.10008100951180.3139-100000@mailhost.nrnet.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <args>"
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000810095613.A3892>