Re: aliases before mailboxes?
- On 1/31/2011 5:26 PM, Dan wrote:
>Yes, that's how it's supposed to work. Even stranger, the
> I have following snippet config:
> #mysql /etc/aliases
> virtual_alias_maps = mysql:$config_directory/mysql_aliases.cf
> #no sense in extra database calls for this
> #virtual_uid_maps = mysql:$config_directory/mysql_uids.cf
> #virtual_gid_maps = mysql:$config_directory/mysql_gids.cf
> virtual_uid_maps = static:2001
> virtual_gid_maps = static:2001
> #basically for base directory, we get addon to complete
> maildir from virtual_mailbox_domains below
> virtual_mailbox_base = /website/vuser
> #this is basically our allowed list of domains
> virtual_mailbox_domains =
> virtual_mailbox_limit = 51200000
> #this is basically getting maildir field and adding it onto
> $virtual_mailbox_base a few lines above
> virtual_mailbox_maps = mysql:$config_directory/mysql_mailbox.cf
> #just don't do something stupid like change vuser to something
> lower than 2001 or it won't deliver mail to them. Just a
> security precaution more than anything
> virtual_minimum_uid = 2001
> Which works fine except that virtual_alias_maps overrides
> Meaning if i say something like everything @... go to
> in virtual_alias_maps and then I have test@... go to this
> Maildir location in virtual_mailbox_maps, the @...
> overrides an actual mailbox location,
documentation says this is how it's supposed to work.
> you would thinkNo, wildcards are really wild.
> @... should wildcard after the fact.
> Anyway around this?
1. don't use wildcards.
2. use a 1-1 identity mapping in virtual_alias_maps. ie.
-- Noel Jones