amavis-user October 2010 archive
Main Archive Page > Month Archives  > amavis-user archives
amavis-user: Re: [AMaViS-user] Users, user aliases, domains, dom

Re: [AMaViS-user] Users, user aliases, domains, domain aliases

From: Mark Martinec <Mark.Martinec+amavis_at_nospam>
Date: Fri Oct 29 2010 - 18:47:10 GMT


> I've got a bunch of different domains, and some of them have aliases.
> For example, should share the same settings with,
>, and
> The users have aliases. So, might also use
> I don't want to add separate entries for every possible variation into the
> users table.

If using amavisd in a post-queue filtering setup, one way of avoiding
the problem is to let an MTA perform all the necessary mappings
before content filtering. That would mean using virtual alias maps,
instead of plain aliases, as the later are only interpreted by a
local delivery agent.

> Has anyone else tackled this? I think we're going to need to create
> domain, domain_alias, localpart and localpart alias tables, aren't we?
> And then somehow adjust the amavisd-new query, right?
> I'd love to hear from anyone else who has dealt with this.

It should be possible to do it with some SQL magic, adjusting
the $sql_select_policy, if user data and mappings are already
available in SQL. I haven't attempted it yet.


Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
AMaViS-user mailing list
 Please visit regularly
 For administrativa requests please send email to rainer at openantivirus dot org