Hi,
I'm using the latest spamassassin from swerts-knudsen. Some of my users have to forward their mails to an external address. When this is done through the server-manager, procmail-filter stops for that user and no spam is filtered anymore.
This has been discussed before but I haven't seen a more or less workable solution. (We have about 1500 users)
What I am trying to do is take the forwardaddress from the "accounts-db" and via a new template (98forward - /etc/e-smith/templates-users/.procmailrc) build a new .procmailrc file. Whenever a new user is being added with a forward address, I only have to activate his procmail again. When spamassassin is restarted, the mail forwards will also be correct again (I hope

)
Something is wrong but I cannot seem to find it.
Any help is welcome!
The content of 98forward is:
{
use esmith::config;
use esmith::db;
my %accounts;
tie %accounts, 'esmith::config', '/home/e-smith/accounts';
# get $USERNAME from esmith::config - put there by the
# email-update-user action as a temporary variable
die "Username criterion missing." unless defined ($USERNAME);
my $type = db_get_type(\%accounts, $USERNAME);
die
"Account $USERNAME is not a user account; "
. "update email forwarding failed.\n"
unless $type eq 'user';
my $ForwardAddress = db_get_prop(\%accounts, $USERNAME, "ForwardAddress");
if ($ForwardAddress eq '')
{
$OUT = "./"$MAILDIR"/\n";
}
else
{
$OUT = "#-------------------\n";
$OUT = "#Forward a copy\n";
$OUT = "#-------------------\n";
$OUT = ":0c\n":
$OUT = "!".$ForwardAddress."\n";
$OUT = "./"$MAILDIR"/\n";
$OUT = "\n";
}
}