So I have a company.com domain and company.net which is alias to company.com.

I've set zimbraMailCatchAllForwardingAddress for company.net, like:
zimbraMailCatchAllForwardingAddress: @company.com

I have an external smtp, where I do ldap query like "give me the server where I should put emails for address foobar@company.com".

I can get this result back by using zimbraMailHost attribute, but there is no such attribute when using alias-domains.

So any ideas how can I get alias domains to return the server name where user/domain is?

Now I've forced zimbraMailHost attribute to alias domain, but afaik it's not a good solution... and it's a manual job.