I'm new to postfix so I maybe simply attacking my problem wrong. I was
asked to setup an instance so the users
could send an email to spam@<our.domain>, have that email run through
spamassassin and have the results emailed
back to the user.
After setting everything up I found that
mailbox_command = /usr/local/bin/spamc -s 2000000 -y -R --pipe-to
/usr/bin/mail -s spam-report mi...@example.com
works great. I can send an email, spamassassin does it thing, and the
results are returned to mi...@example.com
mailbox_command = /usr/local/bin/spamc -s 2000000 -y -R --pipe-to
/usr/bin/mail -s spam-report "{$sender)"
However, regardless of the value in "{$<value>}", the emails are always
returned to mailer-da...@example.com
"$<value>" could be "{$sender}", "${receipient}",
"${original_recipient}" it does not matter, they are returned
to mailer-dom...@example.com
If I remove the quotes, I get an error "not found" instead of an
expansion.
Dec 17 14:33:44 charon postfix/local[84697]: A2A4D1E521:
to=<s...@charon.example.com>, relay=local, delay=0.12,
delays=0.1/0/0/0.01, dsn=5.3.0, status=bounced (Command died with status
127: ""/usr/local/bin/spamc -s 2000000 -y -R --pipe-to /usr/bin/mail -s
spam-report ${recipient}"". Command output: /usr/local/bin/spamc -s
2000000 -y -R --pipe-to /usr/bin/mail -s spam-report : not found )
The emails originate from a Exchange 2007 server, I don't think that
should matter.
The postfix version is 2.11.7
I'll be happy to supply additional information and thank you all for any
pointers.
--mikej