mouss wrote:
Ulrich Mierendorff a écrit :
Hi,
My email is handled by two servers A and B with different IPs.
If someone sends an email to my domain "example.com", it will be
received by server A and then stored on that server.
If I send an email to someone else from {userna...@example.com, I will
connect to server B that will then send this email.
On server B a postfix instance is running that handles the mail.
Everything I have described is working correctly, but I have a problem:
If I want to send an email from {userna...@{example.com|localhost} to
{userna...@{example.com|localhost}, it has to be relayed to server A,
because this is my "inbox-server".
So the question is, how can I configure postfix on my server B so that
it relays all inbound mail (mail sent to example.com/localhost) to
server A?
Is this possible?
if you don't configure B to deliver mail for example.com, then it should
lookup DNS and pass the mail to A.
if at loss, you can still use transport_maps:
example.com relay:[serverA]
.example.com relay:[serverA]
localhost relay:[serverA]
But how can I configure that?
My current configuration looks like this one:
...
myhostname = example.com
myorigin = /etc/mailname
mydomain = example.com
mydestination = $mydomain, localhost
relayhost =
relay_domains = $mydestination
mynetworks = 127.0.0.0/8
inet_interfaces = all
inet_protocols = ipv4
...
Kind regards,
Ulrich