Kev said: > im seting up a scrip pipe for postfix + spamassassin as a filter in > postfix. > > this really works how ever i have a prb with the FWD depending on the > recipent, can any one help me with this line > > if $EGREP -q -i "To: *kav@xxxxxxxxxx*" < /var/tempfs/out.$$ > > how can i tell egrep to check for any format of To: in the email heder. You did. Perhaps something else in your query is blocking you, or maybe you just want grep, it doesn't look like you are using "Extended Regex" here. 'man grep' might be some more help to you. However, why reinvent the wheel? http://www.procmail.org/ GL -- Scott - : send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html