Defining default value for sa_username_maps

"Ain" <[email protected]>
Newsgroups gmane.mail.virus.amavis.user
Message-ID <[email protected]>
Hello!

I have many users with different domains, so I have my users in MariaDB
database (accordingly to
https://svn.apache.org/repos/asf/spamassassin/trunk/sql/README.bayes) and
my sa_username_maps is defined as follows:

@sa_username_maps = new_RE (
  [ qr'^([^@]+@.*)'i => '${1}' ]
);

That seems work pretty fine, except when user don't exists in bayes_vars
table. Amavis still tries use nonexisting user, spamassassin seems simply
ignore bayes tests in that case.
I like amavis or spamassassin fallback to default user, like when
sa_username_maps don't have relevant match.
I tried define "bayes_sql_override_username" in local.cf, but this of
course overwrites user, even when match is found in bayes_vars.

What are my options?

Any clarifying questions welcome, my brain is pretty foggy after 6 hours
of debuging and testing :(
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.