mouss wrote:
Ulrich Mierendorff a écrit :
mouss wrote:
Ulrich Mierendorff a écrit :
Magnus Bäck wrote:
On Sunday, June 07, 2009 at 17:02 CEST,
     Ulrich Mierendorff <ulrich.mierendo...@gmx.net> wrote:

My current configuration looks like this one:
...
myhostname = example.com
myorigin = /etc/mailname
mydomain = example.com
mydestination = $mydomain, localhost
Is this server B? If so, why does it think it's the final destination
for example.com when that's server A's assignment
Yes it's server B.. So should I write
mydestination =
?
The log file then says something like

Jun  7 1:2:3 example postfix/smtp[123]: 456: to=<u...@example.com>,
relay=mx0.example.com[ipA]:25, [...], status=bounced (host
mx0.example.com[ipA] refused to talk to me: 550 Forged HELO: you are not
example.com)

I think this is not a problem of server B's postfix configuration, or am
I wrong? By the way: I do not have access to the configuration of
server A.

Then change the hostname of server B. why do you set
myhostname = example.com

try with something like

myhostname = joe.example.com

where joe.example.com resolves in DNS. Ideally it should resolve to the
public IP of server B.
Well, example.com is the domain for serverB.
DNS configuration is like this
example.com
A-record -> IP of server B
MX-record -> IP of server A

Reverse DNS for IP of server B -> example.com

we don't really care for the reverse dns here. we are about getting a
hostname that is accepted. There is no requirement that such a hostname
be the reverse dns of any IP at all.

(IPs are public IPs)

I do not see, how joe.example.com could solve the problem.

it will solve the problem because server A will not reject the mail.
but if joe.example.com does not resolve in DNS, then other servers may
reject your mail.

so use a name that resolves (ideally to the IP of server B). if server B
has other names, use one of these (but try to avoid www.example.com,
web.example.com, ... etc). otherwise, you'll need to add a name to DNS.
Ok, I am now using ex1.example.com as myhostname and it works perfectly. Mouss, Magnus, thank you so much!
But I do not understand one thing: Do I also have to add ex1 to DNS?

Kind regards,
Ulrich

Reply via email to