I see I managed to confuse you :-)
What you said earlier is actually right:
however you should also have a record like
h1870666 IN A 220.127.116.11
in your zone
Strato, my root server provider, delivers each of their root servers with a domain name, i.e. h1870666 within the domain managed by them: stratoserver.net
I have no control over this domain since its theirs, therefore I cannot add h1870666 IN A 18.104.22.168. so I guess its easier to simply have postfix use only my first IP for which they added the A record.
To answer your questions above:
- h1870666.stratoserver.net is the root server hostname and domain as assigned by the ISP
- on this root server I run web server/dns/mail server
- all domains I host are properly configured
The point is that postfix is configured like this:
myhostname = h1870666.stratoserver.net
myorigin = /etc/mailname
/etc/mailname contains: h1870666.stratoserver.net
so I would have to reconfigure postfix completely if I were to replace h1870666.stratoserver.net with a domain I own and host.
Therefore, I tried putting the problem like this:
So in my quest to elegantly solve this I came across this thread: http://www.faqforge.com/linux/send-a...ss-in-postfix/ explaining how to stop postfix sending emails through a particular IP but in the comment below, a user explains that that solution screws up AMAVIS and suggests a new solution.
Does anyone know if the solution in the comment is the best way to go?
for those too lazy to click the link, the suggested solution is to add
smtp_bind_address = 192.168.0.1
to bind postfix to one IP but that seems to stop AMAVIS from working.
The counter-solution in the comment section suggests editing /etc/postfix/master.cf:
smtp unix – – – – – smtp
127.0.0.1:25 unix – – – – – smtp