You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by LuKreme <kr...@kreme.com> on 2015/02/16 10:32:29 UTC

spamass-milter and multiple local domains

I have several local domains that resolve (via virtual) to local users in addition to virtual domains that resolve to sql users.

with spamass-milter, these secondary local domains (like kreme.com) fail to find the user:

spamd: handle_user (userdir) unable to find user: 'kremels@kreme.com’

Other than converting these other domains to mysql virtual domains, is there anyway that I can get certain domains to simply pass ‘user’ while other domains pass ‘user@domain.tld’?

Since I have more than one of these domains, I can’t just use the -e flag.


-- 
Penny, I'm a physicist. I have a working knowledge of the entire
universe and everything it contains.


Re: spamass-milter and multiple local domains

Posted by Axb <ax...@gmail.com>.
On 02/16/2015 10:32 AM, LuKreme wrote:
> I have several local domains that resolve (via virtual) to local
> users in addition to virtual domains that resolve to sql users.
>
> with spamass-milter, these secondary local domains (like kreme.com)
> fail to find the user:
>
> spamd: handle_user (userdir) unable to find user:
> 'kremels@kreme.com’
>
> Other than converting these other domains to mysql virtual domains,
> is there anyway that I can get certain domains to simply pass ‘user’
> while other domains pass ‘user@domain.tld’?
>
> Since I have more than one of these domains, I can’t just use the -e
> flag.

spamd can't automagically "find" users unless you tell it to via
switches, at startup.

http://spamassassin.apache.org/full/3.4.x/doc/spamd.txt

either

-q, --sql-config                  Enable SQL config (needs -x)

  --ldap-config                     Enable LDAP config (needs -x)

-virtual-config-dir=dir          Enable pattern based Virtual configs 
(needs -x)

etc....


Re: spamass-milter and multiple local domains

Posted by LuKreme <kr...@kreme.com>.
On 16 Feb 2015, at 02:38 , Reindl Harald <h....@thelounge.net> wrote:
> Am 16.02.2015 um 10:32 schrieb LuKreme:
>> I have several local domains that resolve (via virtual) to local users in addition to virtual domains that resolve to sql users.
>> with spamass-milter, these secondary local domains (like kreme.com) fail to find the user:
>> spamd: handle_user (userdir) unable to find user: 'kremels@kreme.com’
> 
> you must have a strange setup

Yes, it sort of grew that way over time as I started with only local users many years ago even as I added domains before switching new domains over to a SQL setup. I suppose I should move all the accounts to SQL but there are several issues with that on some accounts.

> normally the milter uses a global bayes and settings living in the milter-users home (given the milter service and spamd are running as the same users) and hence it don't need to know anything about users

Well, it is using -u and e flags to process the mail as the user, but when it checks for the user ‘kremels@kreme.com’ it can’t find it, because the user is ‘kremels’. The SQL users show up just fine.

> postfix needs to know and would reject non existing email long before the milter and milters job is just pass or reject messages

These are real users. It’s just that spamass-milter is only setup to look at one local domain and assumes that all other users will be user@domain.tld.

Basically, the milter runs before the virtual expansion done by postfix. If I could run the milter after postfix checked virtual there wouldn’t be an issue, but I suspect that the virtual check is considerably later in the transaction phase and that I can’t change that ordering.

-- 
'I cannot! He has been kindness itself to me!' 'And you can be Death
itself to him.'


Re: spamass-milter and multiple local domains

Posted by Reindl Harald <h....@thelounge.net>.
Am 16.02.2015 um 10:32 schrieb LuKreme:
> I have several local domains that resolve (via virtual) to local users in addition to virtual domains that resolve to sql users.
> with spamass-milter, these secondary local domains (like kreme.com) fail to find the user:
> spamd: handle_user (userdir) unable to find user: 'kremels@kreme.com’

you must have a strange setup

normally the milter uses a global bayes and settings living in the 
milter-users home (given the milter service and spamd are running as the 
same users) and hence it don't need to know anything about users

postfix needs to know and would reject non existing email long before 
the milter and milters job is just pass or reject messages