Harry Putnam <[EMAIL PROTECTED]> wrote:

>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&

See http://Web.InfoAve.Net/~dsill/lwq.html#procmail for some tips for
running procmail under 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.

Curious...

>  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/

This appears to a case where qmail and procmail disagree about the
meaning of "success". See the link above. Basically, what's happening
is that the procmail delivery failed for some reason (see procmail's
logs), but procmail isn't returning an exit status that qmail
interprets as indicating a failure.

>Further, eventhough I've symlinked `binmail' to the
>/var/qmail/bin/sendmail binary.

Huh? binmail should be calling /usr/lib/sendmail, which should be
linked to /var/qmail/bin/sendmail. Linking /var/qmail/bin/sendmail to
binmail is wrong.

>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.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/

Again, see the procmail logs.

-Dave

Reply via email to