Hi,
NEVER setup one domain with two ip addresses :-), this is
the 'wrong' solution to almost any problem.
The
'domain' IS the mechanism to find the destination serve -
that's it's actual purpose :-).
Good,
now we've clarified that. You do it like this:
Add
a g_gateway rule to send all email to server1 for that
domain
Add a g_route rule for each user on server2
or
Add a new domain 's2.domain' and redirect users that live
at server2 to user@s2.domain
then add a rewrite rule to change the destination from
s2.domain to .domain when sent. (g_send_rewrite) (or
configure server2 to accept s2.domain as an alias)
Then
ensure all email users on server1 and server2 use
gateway.server as their outgoing smtp server and not
server1,2
Or
you can do something similar on both server1 and
server2... each one individually listing the users to send
to the other system (yucky)
All
solutions are complicated, messey and bad. It's very easy
to kick yourself in the foot and end up with a loop or
messages bouncing in certain situations depending on who
sends them etc...
Instead,
simply establish a second domain name for the other
server, and all these problems go away. e.g.
user1@main.domain
(server1)
user2@corp.main.domain
(server2)
user3@main.domain
(server1)
user4@corp.main.domain
(server2)
Then
on 'server1' add some redirect rules for 'server2' users,
just to help with transition.
I
know you're probably gonna have to ignore this advice
because of some corporate type decision that means you
have no choice, but I'm giving it anyway :-) :-).
ChrisP.
On 21/02/2023 8:38 am, James Bryan wrote:
Hi,
Is there any setting of surgemail to do email
gateway solutions where there are more than one
platforms or mail servers combined in a single domain?
For example
I have email @
email.com
and there have 2 location of server
How to forward / reroute / rewrite email messages
on gateway or server1 or server2 to transfer messages
to a real mailbox on the server?
Thank you
James