OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
master pipe variables

From: Steven King (skingkingrst.com)
Date: Fri May 23 2008 - 01:06:44 CDT


I have a script I am using to pipe mail to SpamAssassin.

This is what I have in my master.cf

spamassassin unix - n n - - pipe
        flags=Rhq user=spamfilter argv=/etc/postfix/sa-filter ${domain}
${sender} ${recipient}

At the end this script pipes the results back into postfix with the
sendmail command as follows

| /usr/sbin/sendmail -oi -f $sender -- $recip

The issue is when I check the results of domain, sender and recipient...
the sender and recipient end up being the same address.

I have narrowed this down to being either a script problem or a Postfix
problem. I am leaning towards postfix because the bash parameter
variables also hold the same information.

Does anyone have any ideas what could be the cause of this?

Thanks,

Steve King