> On Apr 27, 2021, at 6:31 PM, Neil Farmstrong <[email protected]> 
> wrote:
> 
> I had been looking at mydestination as the cause earlier, however my
> working server does not set this so I gave up on that. When I try
> mydestination = localhost this now changes the error to "User unknown
> in virtual alias table".
> 
> The suggested fix for this online is to also change myorigin to
> "localhost", but this has not worked for me, and again this was not
> necessary on the other server. I get the same error as above.
> 
> What is really confusing me is that the Postfix configurations are
> basically the same on both servers, is there any way Dovecot, Clamav
> or Amavis configurations might have broken something?

You're likely forgetting that the default value of virtual_mailbox_domains
is $virtual_mailbox_maps and that one or the other server may be getting
its list of virtual mailbox domains from the mailbox table.

Pay attention to the error messages.  If the error message says user unknown
in some address class foo (see ADDRESS_CLASS_README), then the domain is
in that address class, perhaps incorrectly.

For virtual delivery with virtual_mailbox_maps, the domain has to match
(only) virtual_mailbox_domains.

-- 
        Viktor.

Reply via email to