I need some help the following problem:
I have two servers
- server1 with the domain server1.tld
- server2 with the domain server2.tld
- server1 is better than Server2 performance wise
- server1 is a server running personal applications and server2 is running a public website.
I have a running mailcow installation on server1 with the hostname mail.server1.tld. No problems here. Now I don’t want to install mailcow again on server2 to save performance and handle only one install. However, I want to be able to send and receive emails from the domain server2.tld using the mailcow installation on server1.
I am using mailcow dockerized
What I want:
- Mail send to *@server2.tld should be proxied/relayed on server2 and send to server1. Mailcow should then receive the mail in mailcow and place it in the corresponding mailbox for the *@server2.tld
- Ability to send a mail out of Mailcow as *@server2.tld. The Email should then be proxied/relayed on server2 to set the correct headers.
- Nobody sending or receiving mail to/from *@server2.tld should be able to see the existence of server1. Server2 should behave like there is an own mailbox server installed at mail.server2.tld.
Does anybody have some useful information where I could get started to solve my problem? Does anybody have a similar setup and would like to share their setup? Or is my problem not solvable and I should stick to running to mailcow instances.
Thanks a lot in advance