Michael Jung:
> On 2015-12-17 20:06, wie...@porcupine.org wrote:
> > Michael Jung:
> >> mailbox_command = /usr/local/bin/spamc -s 2000000 -y -R  --pipe-to
> >> /usr/bin/mail -s spam-report "{$sender)"
> > 
> > "{$sender)" looks like a syntax error to me.
> > 
> > Regardless, $sender is not defined.  The valid names are documented
> > in http://www.postfix.org/postconf.5.html#mailbox_command
> > 
> >     Wietse
> 
> Indeed.
> 
> mailbox_command = /usr/local/bin/spamc -s 2000000 -y -R  --pipe-to 
> /usr/bin/mail -s spam-report ${SENDER}
> 
> Corrected my issue.
> 
> Thank you.

Two more things:

1) SENDER may be "empty" (the null sender address of delivery status
notifications) so it is slightly better to use

    .... /usr/bin/mail -s spam-report "${SENDER:-postmaster}"

2) However, if this sends email to arbitrary senders then you're likely
to harass people who didn't send the email in question.

        Wietse

Reply via email to