We are using OpenXhange (Express Edition) on a local machine. But as this is a question rather about Postfix I will post it here.
I will explain it with example values:
Let's say our domain is example.tld
Our remote mail server is provided by our ISP on IP 111.111.111.111
(mail.example.tld, relay.example.tld)
Our OpenXchange Installation is installed locally, and can be reached by web on IP 222.222.222.222:1000
I created two users in Ox:
user1 (user1@example.tld)
user2 (user2@example.tld)
I configured SMTP Auth to be able to connect to our relay host at relay.example.tld.
With that, I can send mails to any remote mail address like foo@mailservice.com
I can send mails to existing local users, but they will only be transported locally. Bad if someone tries to fetch his mail directly from the mail server.
But when I try to send mails to user3@example.tld (who exists on the remote mail server, but not as an Ox user), I get an error that the user is not existant. Which is natural, because Ox is looking for it locally.
How can I configure Postfix (or the SMTP module) so it will sent mails always via the relay server?
I will explain it with example values:
Let's say our domain is example.tld
Our remote mail server is provided by our ISP on IP 111.111.111.111
(mail.example.tld, relay.example.tld)
Our OpenXchange Installation is installed locally, and can be reached by web on IP 222.222.222.222:1000
I created two users in Ox:
user1 (user1@example.tld)
user2 (user2@example.tld)
I configured SMTP Auth to be able to connect to our relay host at relay.example.tld.
With that, I can send mails to any remote mail address like foo@mailservice.com
I can send mails to existing local users, but they will only be transported locally. Bad if someone tries to fetch his mail directly from the mail server.
But when I try to send mails to user3@example.tld (who exists on the remote mail server, but not as an Ox user), I get an error that the user is not existant. Which is natural, because Ox is looking for it locally.
How can I configure Postfix (or the SMTP module) so it will sent mails always via the relay server?
Comment