Daniel: Checking application/pgp-signature: FAILURE -- Start of PGP signed section. > Hi again. > > On 06/06/17 12:11, Daniel Bareiro wrote: > > > I am gradually migrating the accounts of a server (let's say > > mail1.domain.com) to another server (let's say mail2.domain.com). > > > > In mail2.domain.com I'm using something like this: > > > > ---------------------------------------------------------------- > > virtual_alias_domains = domain.com > > virtual_alias_maps = hash:/etc/postfix/virtual > > ---------------------------------------------------------------- > > > > Where /etc/postfix/virtual has something like this: > > > > ---------------------------------------------------------------- > > j...@domain.com john > > ---------------------------------------------------------------- > > > > John is a SASL user (fortunately I was able to get this to work. I will > > soon respond to my other thread indicating what the problem was). > > Delivery on this way is working. The current MX is mail1.domain.com and > > mail2.domain.com is receiving emails via fetchmail. > > > > The issue arises when a mailbox migrated to be used from > > mail2.domain.com wants to send an email to a non-migrated mailbox. I get > > something like this: > > > > ---------------------------------------------------------------- > > An error occurred while sending mail. The mail server responded: > > 5.1.1 <nat...@domain.com>: Recipient address rejected: User unknown in > > virtual alias table. > > Please check the message recipient "nat...@domain.com" and try again. > > ---------------------------------------------------------------- > > > > Is there a way to get Postfix at mail2.domain.com knows that the > > mailboxes of domain.com for non-migrated accounts are at > > mail1.domain.com? Maybe using a transport table? > > > > > > Thanks in advance for your time. > > I've tried something like this: > > ---------------------------------------------------------------- > nat...@domain.com smtp:mail1.domain.com:25 > ---------------------------------------------------------------- > > and adding: > > ---------------------------------------------------------------- > transport_maps = hash:/etc/postfix/transport > ---------------------------------------------------------------- > > But I'm still getting the "Recipient address rejected: User unknown in > virtual alias table" message.
Instead of removing the user from virtual_alias_maps, replace it with a 1:1 mapping: nat...@domain.com nat...@domain.com Wietse