Hi,
We've a hosting account for example.com with web hosting company, with 3 locations sharing the same domain name.
At location 1, we have
L1user1@example.com,
L1user2@example.com etc. If I send mail to
L2user1@example.com it returns
550 5.1.1 <L2user1@example.com>: Recipient address rejected: User unknown in virtual alias table
I've tried
/etc/postfix/main.cf:
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = example.com
transport_maps = hash:/etc/postfix/transport
relay_host = smtp.somewebhostingcompany.com
/etc/postfix/transport:
example.com relay:[smtp.somewebhostingcompany.com]
/etc/postfix/virtual:
L1user1@example.com L1user1.localvirtual
L1user2@example.com L1user2.localvirtual
What i'd like to achieve is whenever L1user1 sending emails to (anyone)@example.com it will be relayed to smtp.somewebhostingcompany.com whenever the user is not found in local virtual table.
Thanks.
Regards,
Adam