Excellent! Thanks. I just did this on my mail relay and it works.
I did manage to get it to work a few moments ago with canonical_maps also.

Now, what about a step further?

I have a a number of systems (under NIS) with the same user. When they
generate email,
is goes to [email protected] where myusr and mydomain are the same, but
the host portion is different. is there a way to collapse say:

[email protected]  [email protected]
[email protected]  [email protected]
[email protected]  [email protected]

into a single line? i.e. wildcard it some how
I have not found any working examples of a wildcard in the "host"
position above.

Thanks


--tmac


On Thu, Jan 24, 2013 at 7:56 AM, Noel Jones <[email protected]> wrote:
> On 1/24/2013 6:42 AM, tmac wrote:
>> I have a local host configured to relay through a mailhost.
>> There is a local user (call it test) that I want all the email sent to me 
>> (tmac)
>>
>> in other words, any email sent to
>> [email protected] (or [email protected]) should go to [email protected]
>>
>> I have tried relocated users, but it does not seem to be working.
>> Is there a better (working) solution with postfix without having to
>> deal with .forward files?
>>
>
> Use virtual_alias_maps to redirect mail.
>
> # virtual_alias
> [email protected]  [email protected]
>
> Run "postmap virtual_alias" after editing that file.
>
> # main.cf
> virtual_alias_maps = hash:/etc/postfix/virtual_alias
>
> Run "postfix reload" after editing main.cf
>
>
> http://www.postfix.org/ADDRESS_REWRITING_README.html#virtual
> http://www.postfix.org/postconf.5.html#virtual_alias_maps
>
>
>
>   -- Noel Jones

Reply via email to