Subject: Local mail delivery not working on 2.0
To: None <netbsd-help@netbsd.org>
From: Gary Thorpe <gathorpe79@yahoo.com>
List: netbsd-help
Date: 02/21/2005 14:23:40
Hi,

I put sendmail=NO and smmsp=YES in /etc/rc.conf (I didn't want 
a daemon running because I only need local delivery on the machine) 
but that resulted in mail accumulating in /var/spool/clientmqueue and
messages in /var/log/mailog looking like:

Feb 21 13:02:46 host sendmail[1868]: j1LI2kZw001868: from=myusername,
size=29305
9, class=0, nrcpts=1,
msgid=<200502211802.j1LI2kZw001868@host.local.noinet>, rel
ay=myusername@localhost
Feb 21 13:02:46 host sendmail[1868]: j1LI2kZw001868: to=myusername,
ctladdr=myus
ername (1000/100), delay=00:00:00, xdelay=00:00:00, mailer=relay,
pri=323059, re
lay=localhost.local.noinet. [127.0.0.1], dsn=4.0.0, stat=Deferred:
Connection re
fused by localhost.local.noinet.

Ok, so I messed up here: I then commented out both lines for sendmail
and smmsp in /etc/rc.conf so it should go back to the install default, 
right? So now when I try to test out local delivery:

host 1% mail -vs "Local delivery email test" myusername^M
This is a test.
EOT
myusername... Connecting to localhost.local.noinet. via relay...
220 host.local.noinet ESMTP Sendmail 8.12.11/8.12.11; Mon, 21 Feb 2005
14:00:01 
-0500 (EST)
>>> EHLO host.local.noinet
250-host.local.noinet Hello localhost [127.0.0.1], pleased to meet you
250 ENHANCEDSTATUSCODES
>>> MAIL From:<myusername@host.local.noinet>
550 5.0.0 Access denied
/home/myusername/dead.letter... Saved message in
/home/myusername/dead.letter
Closing connection to localhost.local.noinet.
>>> QUIT
221 2.0.0 host.local.noinet closing connection

So it seems that the daemon refuses to accept mail from the local 
machine by default. Exactly how am I supposed to get local mail
working? Why is this necessary at all: in 1.6 no knobs where needed 
for local mail. also, what can I do about all the backup up messages 
in /var/spool/clientmqueue? Sendmail seems to ignore them (it looks 
at /var/spool/mqueue). The manual page for sendmail doesn't mention 
smmsp or the clientmqueue. Can anyone offer pointers on how to 
proceed?

______________________________________________________________________ 
Post your free ad now! http://personals.yahoo.ca