On Friday, November 16, 2012, Noel Jones wrote: > On 11/16/2012 2:30 PM, Gerald Vogt wrote: > > > 1. deliver mails to account locally. > > 2. forward all local mails for any other account to relayhost > > # main.cf > mydestination = localhost > virtual_alias_maps = hash:/etc/postfix/virtual > > # virtual > acco...@example.com <javascript:;> account@localhost > > This doesn't work. Mails for account are still forwarded to the mail relay. Even if I add another line for acco...@hostname.example.com, account and acco...@localhost.example.com it won't be delivered locally.
Gerald