Re: Question about Virtual Users On Sun, Feb 10, 2008 at 06:22:05PM +0100, mouss wrote:
> Dominik wrote:
> >Hi,
> >
> >i have the following task to do at my postfix virtual setup:
> >
> >uiaregi@example.com should be treated as a local user and any other
> >E-Mail address at this domain should be threaded as none local.
> >
> >Does anyone know how to do this?
> 
> virtual_alias_maps:
> 
> uiaregi@example.com      gjebvuspsdn@localhost.example.net
> 
> where
> - someaccount is a unix user, and
> - localhost.example.net is a domain listed in mydestination

Simply "someaccount" (without @localhost.blabla or just with @localhost)
should be ok, according to the virtual(5) manpage:

RESULT ADDRESS REWRITING
       The lookup result is subject to address rewriting:

       o      When the result  has  the  form  @otherdomain,  the
              result  becomes the same user in otherdomain.  This
              works only for the first address in a multi-address
              lookup result.

       o      When  "append_at_myorigin=yes", append "@$myorigin"
              to addresses without "@domain".

       o      When "append_dot_mydomain=yes", 

(both append_* settings are "yes" by default")

	Geert


