This only works if mydomain.com is not the domain configured in Postfix. Because Postfix thinks everything is local when you configured it to be local.
To fix this problem modify Postfix main.cf file:
mydestination = localhost.localdomain, localhost
fallback_transport = relay