Hello,
As I said I am trying to say something like:
if X-Spam-Flag: Yes
copy to local-user which forwards to trustic
and copy destination user on mail (don't want to be accused of
'stealing' email)
else
send mail to destination user
my problem is that not all of my users have $HOME's they are virtual so
there is no reading of a $HOME/.maildroprc file
So I need to do the filtering globally, then regardless of the filtering
outcome, get the mail to the user.
I appreciate you taking the time to read this.
Brian
James Turnbull wrote:
Brian D. Cook wrote:
I'm trying to find a way to send all incoming mail to Spam Assassin
for tagging and processing after it's gotten through the 'gauntlet'
of RBL's that I have in postfix.
I'm using maildir style directories, and I can't seem to say something
like this:
new message?
yes go to spamassassin
no go to local delivery agent
Brian
Sorry. Can you explain what you mean by 'new message' in the above
workflow? If it has come through Postfix and then hit the mailbox command
stage, ie. maildrop or procmail etc etc how can it be a new or old message?
Could you not just use the standard style of:
xfilter "/usr/bin/spamc"
if (/^X-Spam-Flag: YES/)
{
to "$HOME/Maildir/.SPAM"
}
or the like?
Apologies if I have missed something significant.
Regards