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
To: amavis-user@lists.sourceforge.net

Tim,

> I've got a bunch of different domains, and some of them have aliases.
>
> For example, domain.com should share the same settings with domain.net,
> domain.org, and anotherdomain.com
>
> The users have aliases. So flast@domain.com, might also use
> first_last@domain.com, first_last@domain.org, flast@anotherdomain.com.
>
> 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.

  Mark

------------------------------------------------------------------------------
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
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot org