View Single Post
  #6  
Old 21st June 2012, 00:36
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,259
Thanks: 76
Thanked 23 Times in 19 Posts
Default

I see I managed to confuse you :-)

What you said earlier is actually right:
Quote:
however you should also have a record like

h1870666 IN A 85.214.249.219

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 85.214.249.219. 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:

Quote:
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
Quote:
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:
Quote:
smtp unix – – – – – smtp
-o smtp_bind_address=217.14.118.60
127.0.0.1:25 unix – – – – – smtp
Reply With Quote