View Single Post
Old 21st June 2012, 01:36
Ovidiu Ovidiu is offline
Senior Member
Join Date: Sep 2005
Posts: 1,269
Thanks: 84
Thanked 25 Times in 21 Posts

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

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:

I have no control over this domain since its theirs, therefore I cannot add h1870666 IN A 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:
- 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 =
myorigin = /etc/mailname
/etc/mailname contains:

so I would have to reconfigure postfix completely if I were to replace 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: 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 =
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/
smtp unix – – – – – smtp
-o smtp_bind_address= unix – – – – – smtp
Reply With Quote