Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th June 2012, 10:08
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,269
Thanks: 84
Thanked 25 Times in 21 Posts
Default how to fix: address not listed for hostname?

Debian perfect server installation with ISPCFG3 and 2 IPs.
I added the second IP to my server as advised by Falko in another thread, then I started getting these warnings in my mail logs. To fix them, I added a reverse DNS entry for the second IP and thought I got rid of them but every now and then, these warnings still appear in my logs.


85.214.249.219: address not listed for hostname h1870666.stratoserver.net

My primary IP for this server is: 85.214.229.212
Anything I forgot besides the reverse DNS?

I also added the second IP to /etc/hosts like this but I am unsure if this is right:

cat /etc/hosts
127.0.0.1 localhost
85.214.229.212 h1870666.stratoserver.net h1870666
85.214.249.219 h1870666.stratoserver.net h1870666
Reply With Quote
Sponsored Links
  #2  
Old 19th June 2012, 10:26
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,269
Thanks: 84
Thanked 25 Times in 21 Posts
Default

this might be related to the failures of the RIPe reverse DNS servers a few days ago:

http://www.ripe.net/lir-services/ser...ervices-issues
http://www.heise.de/netze/meldung/Re...t-1617619.html
Reply With Quote
  #3  
Old 19th June 2012, 11:52
TiTex TiTex is offline
Senior Member
 
Join Date: Aug 2011
Location: Cluj-Napoca,Romania
Posts: 125
Thanks: 0
Thanked 18 Times in 17 Posts
Send a message via Skype™ to TiTex
Default

do you have an A record for h1870666.stratoserver.net pointing to 85.214.249.219 ?
your reverse dns is set up correctly both 85.214.249.219 and 85.214.229.212 are pointing back to h1870666.stratoserver.net , however you should also have a record like

h1870666 IN A 85.214.249.219

in your zone
Reply With Quote
The Following User Says Thank You to TiTex For This Useful Post:
Ovidiu (20th June 2012)
  #4  
Old 20th June 2012, 12:05
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,269
Thanks: 84
Thanked 25 Times in 21 Posts
Default

Just figured out the same thing! Chatted with my server provider's help desk and it turns out they suggest using one of my own domains.

Not sure I understand this:

they provide me with a server and a generic hostname, i.e. h1870666.stratoserver.net and 2 IPs but I can't use the second IP for sending emails because of the problem I reported in this thread.
The problem is that you have absolutely no control over the DNS settings for hte domain they provide me with, i.e. I can't set up an A-record for h1870666.stratoserver.net

Now my question is, if I use one of my own domains, to set up A-records and reverse DNS pointers, that would solve the problem, but I guess I would also need to change a lot of postfix configuration, right?

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
  #5  
Old 20th June 2012, 12:35
TiTex TiTex is offline
Senior Member
 
Join Date: Aug 2011
Location: Cluj-Napoca,Romania
Posts: 125
Thanks: 0
Thanked 18 Times in 17 Posts
Send a message via Skype™ to TiTex
Default

tell me if i understand your setup

you have bought a domain from a service provider
that h1870666.stratoserver.net is one of the provider default NS's for your domain
you are hosting your domain (zone) with the provider
you are hosting your web/mail server on your own server or rented dedicated/vps
you have an A and MX record in your zone pointing to your mail server IP

is this correct ?
Reply With Quote
  #6  
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
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
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How cai remove amavis from postfix ? gabrix Server Operation 16 2nd October 2012 10:58
Postfix/courier/Centos 6 cant send email to external email servers maxtorzito Installation/Configuration 14 7th October 2011 11:56
Odd Spam behaviour itsnedkeren Installation/Configuration 1 11th December 2010 15:20
Sending emails with custom FROM email address merisor Installation/Configuration 4 8th February 2010 17:27
CGI and FormMail Cracklefish Installation/Configuration 17 13th October 2009 14:40


All times are GMT +2. The time now is 06:28.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.