Mail alias failing when hostname of server is same as virtual server

So I have mailboxes functioning without issue for the virtual server I’m hosting but the alias setup under the virtual server fails

Errors in maillog have entries like this:
Feb 19 19:34:38 hostname postfix/trivial-rewrite[32500]: warning: do not list domain domain.tld in BOTH mydestination and virtual_alias_domains
Feb 19 19:34:38 hostname postfix/local[32502]: 5E92AB056E: to=username@domain.tld, orig_to=info@domain.tld, relay=local, delay=0.18, delays=0.15/0.01/0/0.02, dsn=5.1.1, status=bounced (unknown user: “username”)

The /etc/aliases file seems to be set correctly. I assume postfix is seeing the alias from the virtual server and trying to map it to local users since the hostname of the server and the hostname in the virtual server are identitical

Hi,

It’s been discussed already.

  1. https://serverfault.com/questions/491601/postfix-do-not-list-domain-example-com-in-both-mydestination-and-virtual-alias
  2. https://www.virtualmin.com/node/41704