"Chris, the Young One" <[EMAIL PROTECTED]> writes:
> On Wed, Jul 26, 2000 at 10:21:07PM -0700, Harry Putnam wrote:
> ! It appears that my `Sender' line is being rejected since it does not
> ! resolve.
>
> No, it's rejecting your envelope sender.
>
> ! How can I correct this without masquerading newsguy.com?
>
> Set the envelope sender to something the outside world can see.
>
> 3 ways to do that, all outlined in the qmail-inject manual page:
>
> 1. set QMAILSUSER and QMAILSHOST
> 2. use the -f option
> 3. put a Return-Path field in your message header
>
> Personally, I use the first option, since that doesn't rely on the
> good graces of my mail client.
OK, starting to get somewhere here. Setting QMAILHOST has stopped my
outgoing messages from bouncing. That now works.
With /var/qmail/rc containing the stock procmail usage rc file:
#!/bin/sh
# Using splogger to send the log through syslog.
# Using procmail to deliver messages to /var/spool/mail/$USER by default.
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start '|preline procmail' splogger qmail&
Local delivery still does not work as I expected. Logged in as reader
and calling:
echo to: reader | /var/qmail/bin/qmail-inject
Dutifully delivers a message to ~/Mailbox
However, if I su -l to root, get roots env, and then call:
echo to: reader | /var/qmail/bin/qmail-inject
The message is *not* dutifully delivered although the log messages look
as if it has been.
Jul 27 05:00:27 satellite qmail: 964699227.804189 new msg 87
Jul 27 05:00:27 satellite qmail: 964699227.806149 info msg 87: bytes
223 from <[EMAIL PROTECTED]> qp 2834 uid 0
Jul 27 05:00:27 satellite qmail: 964699227.815554 starting delivery
21: msg 87 to local [EMAIL PROTECTED]
Jul 27 05:00:27 satellite qmail: 964699227.816694 status: local 1/10
remote 0/20
Jul 27 05:00:27 satellite qmail: 964699227.933357 delivery 21:
success:
procmail:_[2844]_Thu_Jul_27_05:00:27_2000/procmail:_Assigning_"LOGFILE=/home/reader/.procmail.log"/procmail:_Opening_"/home/reader/.procmail.log"/did_0+0+1/
Jul 27 05:00:27 satellite qmail: 964699227.935894 status: local 0/10
remote 0/20
Jul 27 05:00:27 satellite qmail: 964699227.937410 end msg 87
Further, eventhough I've symlinked `binmail' to the
/var/qmail/bin/sendmail binary. And symlinked ~/Mailbox to the normal
FreeBSD delivery inbox /var/mail/reader.
cat .bashrc|mail -s TEST reader
No message appears in /home/reader/Mailbox
Although log messages look as if it has been delivered:
Jul 27 05:09:05 satellite qmail: 964699745.555035 new msg 87
Jul 27 05:09:05 satellite qmail: 964699745.558522 info msg 87:
bytes 513 from <[EMAIL PROTECTED]> qp 2937 uid 1000
Jul 27 05:09:05 satellite qmail: 964699745.565667 starting delivery
24: msg 87 to local [EMAIL PROTECTED]
Jul 27 05:09:05 satellite qmail: 964699745.567971 status: local 1/10 remote 0/20
Jul 27 05:09:05 satellite qmail: 964699745.660930 delivery 24:
success:
procmail:_[2946]_Thu_Jul_27_05:09:05_2000/procmail:_Assigning_"LOGFILE=/home/reader/.procmail.log"/procmail:_Opening_"/home/reader/.procmail.log"/did_0+0+1/
Jul 27 05:09:05 satellite qmail: 964699745.663445 status: local
0/10 remote 0/20
Jul 27 05:09:05 satellite qmail: 964699745.664973 end msg 87
This is starting to seem like too much heaving and hawing for something
as basic as local delivery to work. What is the trick I'm missing?