Loading ...
Sorry, an error occurred while loading the content.
 

Re: aliases before mailboxes?

Expand Messages
  • Noel Jones
    ... Yes, that s how it s supposed to work. Even stranger, the documentation says this is how it s supposed to work. ... No, wildcards are really wild. ...
    Message 1 of 2 , Jan 31, 2011
      On 1/31/2011 5:26 PM, Dan wrote:
      >
      >
      > 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 =
      > mysql:$config_directory/mysql_domains.cf
      > 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
      > virtual_mailbox_maps!
      >
      > Meaning if i say something like everything @... go to
      > blah@...
      > in virtual_alias_maps and then I have test@... go to this
      > Maildir location in virtual_mailbox_maps, the @...
      > overrides an actual mailbox location,


      Yes, that's how it's supposed to work. Even stranger, the
      documentation says this is how it's supposed to work.


      > you would think
      > @... should wildcard after the fact.

      No, wildcards are really wild.

      >
      > Anyway around this?

      choices:
      1. don't use wildcards.
      2. use a 1-1 identity mapping in virtual_alias_maps. ie.
      test@... test@...




      -- Noel Jones
    Your message has been successfully submitted and would be delivered to recipients shortly.