Ville Walveranta a écrit :
> On Tue, Nov 18, 2008 at 12:25 PM, Darren Pilgrim <[EMAIL PROTECTED]> wrote:
>> You have different lookup types in the same table. The pcre line goes in a
>> second lookup table (i.e., virtual_alias_maps.pcre) added to
>> virtual_alias_maps:
>>
>> virtual_alias_maps =
>> hash:${config_directory}/tables/virtual_alias_maps
>> pcre:${config_directory}/tables/virtual_alias_maps.pcre
>>
>
> That works! The domains in question have about 20 users that would
> need to be aliased through a dozen or so domains. So while not exactly
> pretty and probably not terribly powerful, it'll save the typing. I
> can have 20 of these:
>
> /^(user1|user2|user3|user4|user5|user6|user7|user8|user9|user10|user11|user12|user13|user14|user15|user16|user17|user18|user19|user20)@aliasdomain1\.com$/
> [EMAIL PROTECTED]
>
> .. instead of 240 individual alias lines (and since the users are the
> same for all 20 domains, just the "aliasdomain" name needs to be
> modified on each line).
>
after some time, a script will save more...
# cat alias-target.users
user1
user2
...
# cat myscript
#!/bin/sh
grep -v "^#" alias-target.users | while read _user; do
echo "[EMAIL PROTECTED] [EMAIL PROTECTED]"
done
> ACL through policy daemon or some sort of SQL setup may be the
> ultimate solution but this will work well for starters.
>