View Single Post

  #5 (permalink)  
Old 08-08-2006
Andreas F. Borchert
 
Posts: n/a
Default Re: ".qmail" for all users

On 2006-08-07, Pawel Rutkowski <rutekp@moja-poczta.com.pl> wrote:
> So I change in /etc/init.d/qmail
> line:
> qmail-start ./Maildir/ splogger qmail &
> to:
> qmail-start '|qmail-rblchk -l /var/log/spam/log -r bl.spamcannibal.org
> ./Maildir/' splogger qmail &


This looks ok but you have to note that this is just the defaultdelivery
that is passed on to qmail-local, i.e. any ~/.qmail files that exist
take precedence.

> to:
> qmail-start `|qmail-rblchk -l /var/log/spam/log -r bl.spamcannibal.org
> ./Maildir/` splogger qmail &


These are back-ticks, they cause the shell that sees this command line to
invoke qmail-rblck immediately. And the shell will complain that a command
named ./Maildir/ does not exist. Please check out sh(1) or bash(1).

> to:
> qmail-start |qmail-rblchk -l /var/log/spam/log -r bl.spamcannibal.org
> ./Maildir/ splogger qmail &


This sets up a pipeline that feeds the standard output of qmail-start
to qmail-rblchk. This does not make sense and the shell will complain
again that ./Maildir/ does not exist.

These are shell scripts. You need to be familiar with the shell. Otherwise
you are entirely lost if you are using Unix or Linux.

Andreas.
Reply With Quote