Issues with address not listed for hostname

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

Issues with address not listed for hostname

staticsafe
Hi,

Over the last week or so I've noticed many instances of the following
message in my mail.log. This warning is triggered everytime the local
Nagios daemon performs to check if the smtpd is ok.

Oct  7 06:45:38 bender postfix/smtpd[12981]: warning:
2600:3c03::f03c:91ff:fedf:219a: address not listed for hostname
bender.entropynet.net

DNS is correct:
$ dig +short AAAA bender.entropynet.net
2600:3c03::f03c:91ff:fedf:219a
$ dig +short -x 2600:3c03::f03c:91ff:fedf:219a
bender.entropynet.net.

Am I missing something? Please advise.

--
staticsafe
http://staticsafe.ca
Reply | Threaded
Open this post in threaded view
|

Re: Issues with address not listed for hostname

Wietse Venema
staticsafe:

> Hi,
>
> Over the last week or so I've noticed many instances of the following
> message in my mail.log. This warning is triggered everytime the local
> Nagios daemon performs to check if the smtpd is ok.
>
> Oct  7 06:45:38 bender postfix/smtpd[12981]: warning:
> 2600:3c03::f03c:91ff:fedf:219a: address not listed for hostname
> bender.entropynet.net
>
> DNS is correct:
> $ dig +short AAAA bender.entropynet.net
> 2600:3c03::f03c:91ff:fedf:219a
> $ dig +short -x 2600:3c03::f03c:91ff:fedf:219a
> bender.entropynet.net.
>
> Am I missing something? Please advise.

Turn on multi-address support.

http://www.postfix.org/LINUX_README.html

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: Issues with address not listed for hostname

staticsafe
On 10/11/2012 10:08, Wietse Venema wrote:

> staticsafe:
>> Hi,
>>
>> Over the last week or so I've noticed many instances of the following
>> message in my mail.log. This warning is triggered everytime the local
>> Nagios daemon performs to check if the smtpd is ok.
>>
>> Oct  7 06:45:38 bender postfix/smtpd[12981]: warning:
>> 2600:3c03::f03c:91ff:fedf:219a: address not listed for hostname
>> bender.entropynet.net
>>
>> DNS is correct:
>> $ dig +short AAAA bender.entropynet.net
>> 2600:3c03::f03c:91ff:fedf:219a
>> $ dig +short -x 2600:3c03::f03c:91ff:fedf:219a
>> bender.entropynet.net.
>>
>> Am I missing something? Please advise.
>
> Turn on multi-address support.
>
> http://www.postfix.org/LINUX_README.html
>
> Wietse
>
Thank you. I have just checked /etc/host.conf and it already says `multi
on`. My server is running Debian Squeeze running postfix version
2.7.1-1+squeeze1.

--
staticsafe
http://staticsafe.ca
Reply | Threaded
Open this post in threaded view
|

Re: Issues with address not listed for hostname

Wietse Venema
staticsafe:

> On 10/11/2012 10:08, Wietse Venema wrote:
> > staticsafe:
> >> Hi,
> >>
> >> Over the last week or so I've noticed many instances of the following
> >> message in my mail.log. This warning is triggered everytime the local
> >> Nagios daemon performs to check if the smtpd is ok.
> >>
> >> Oct  7 06:45:38 bender postfix/smtpd[12981]: warning:
> >> 2600:3c03::f03c:91ff:fedf:219a: address not listed for hostname
> >> bender.entropynet.net
> >>
> >> DNS is correct:
> >> $ dig +short AAAA bender.entropynet.net
> >> 2600:3c03::f03c:91ff:fedf:219a
> >> $ dig +short -x 2600:3c03::f03c:91ff:fedf:219a
> >> bender.entropynet.net.
> >>
> >> Am I missing something? Please advise.
> >
> > Turn on multi-address support.
> >
> > http://www.postfix.org/LINUX_README.html
> >
> > Wietse
> >
> Thank you. I have just checked /etc/host.conf and it already says `multi
> on`. My server is running Debian Squeeze running postfix version
> 2.7.1-1+squeeze1.
First check the host.conf, hosts, and resolv.conf files in
/var/spool/postfix/etc.

If that does not cause the coin to drop, compile and run the attached
getaddrinfo and getnameinfo programs. Postfix requires that the
hostname from getnameinfo() will resolve with getaddrinfo() to the
client IP address.

        Wietse

getaddrinfo.c (1K) Download Attachment
getnameinfo.c (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Issues with address not listed for hostname

staticsafe
On 10/11/2012 10:27, Wietse Venema wrote:

> staticsafe:
>> On 10/11/2012 10:08, Wietse Venema wrote:
>>> staticsafe:
>>>> Hi,
>>>>
>>>> Over the last week or so I've noticed many instances of the following
>>>> message in my mail.log. This warning is triggered everytime the local
>>>> Nagios daemon performs to check if the smtpd is ok.
>>>>
>>>> Oct  7 06:45:38 bender postfix/smtpd[12981]: warning:
>>>> 2600:3c03::f03c:91ff:fedf:219a: address not listed for hostname
>>>> bender.entropynet.net
>>>>
>>>> DNS is correct:
>>>> $ dig +short AAAA bender.entropynet.net
>>>> 2600:3c03::f03c:91ff:fedf:219a
>>>> $ dig +short -x 2600:3c03::f03c:91ff:fedf:219a
>>>> bender.entropynet.net.
>>>>
>>>> Am I missing something? Please advise.
>>>
>>> Turn on multi-address support.
>>>
>>> http://www.postfix.org/LINUX_README.html
>>>
>>> Wietse
>>>
>> Thank you. I have just checked /etc/host.conf and it already says `multi
>> on`. My server is running Debian Squeeze running postfix version
>> 2.7.1-1+squeeze1.
>
> First check the host.conf, hosts, and resolv.conf files in
> /var/spool/postfix/etc.
>
> If that does not cause the coin to drop, compile and run the attached
> getaddrinfo and getnameinfo programs. Postfix requires that the
> hostname from getnameinfo() will resolve with getaddrinfo() to the
> client IP address.
>
> Wietse
>

Interesting. There is no host.conf file in /var/spool/postfix/etc, only
hosts and resolv.conf, perhaps this is the issue?
--
staticsafe
http://staticsafe.ca
Reply | Threaded
Open this post in threaded view
|

Re: Issues with address not listed for hostname

Wietse Venema
staticsafe:

> > First check the host.conf, hosts, and resolv.conf files in
> > /var/spool/postfix/etc.
> >
> > If that does not cause the coin to drop, compile and run the attached
> > getaddrinfo and getnameinfo programs. Postfix requires that the
> > hostname from getnameinfo() will resolve with getaddrinfo() to the
> > client IP address.
>
> Interesting. There is no host.conf file in /var/spool/postfix/etc, only
> hosts and resolv.conf, perhaps this is the issue?

They are needed only if chroot is turned on. For example:

/etc/postfix/master.cf:
    # =============================================================
    # service type  private unpriv  chroot  wakeup  maxproc command
    #               (yes)   (yes)   (yes)   (never) (100)
    # =============================================================
    smtp      inet  n       -       -       -       -       smtpd

Otherwise the files are ignored.

Oh, and you should run my getaddrinfo/getnameinfo programs as
a non-root user.

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: Issues with address not listed for hostname

staticsafe
On 10/11/2012 10:42, Wietse Venema wrote:

> staticsafe:
>>> First check the host.conf, hosts, and resolv.conf files in
>>> /var/spool/postfix/etc.
>>>
>>> If that does not cause the coin to drop, compile and run the attached
>>> getaddrinfo and getnameinfo programs. Postfix requires that the
>>> hostname from getnameinfo() will resolve with getaddrinfo() to the
>>> client IP address.
>>
>> Interesting. There is no host.conf file in /var/spool/postfix/etc, only
>> hosts and resolv.conf, perhaps this is the issue?
>
> They are needed only if chroot is turned on. For example:
>
> /etc/postfix/master.cf:
>     # =============================================================
>     # service type  private unpriv  chroot  wakeup  maxproc command
>     #               (yes)   (yes)   (yes)   (never) (100)
>     # =============================================================
>     smtp      inet  n       -       -       -       -       smtpd
>
> Otherwise the files are ignored.
>
> Oh, and you should run my getaddrinfo/getnameinfo programs as
> a non-root user.
>
> Wietse
>

I have run your programs as a non-root user.

Results:
./getnameinfo 2600:3c03::f03c:91ff:fedf:219a
Hostname:       bender.entropynet.net
Address:        2600:3c03::f03c:91ff:fedf:219a

./getaddrinfo bender.entropynet.net
Hostname:       bender.entropynet.net
Addresses:      2600:3c03::f03c:91ff:fedf:219a 97.107.141.59
--
staticsafe
http://staticsafe.ca
Reply | Threaded
Open this post in threaded view
|

Re: Issues with address not listed for hostname

staticsafe
In reply to this post by Wietse Venema
On 10/11/2012 10:42, Wietse Venema wrote:

> staticsafe:
>>> First check the host.conf, hosts, and resolv.conf files in
>>> /var/spool/postfix/etc.
>>>
>>> If that does not cause the coin to drop, compile and run the attached
>>> getaddrinfo and getnameinfo programs. Postfix requires that the
>>> hostname from getnameinfo() will resolve with getaddrinfo() to the
>>> client IP address.
>>
>> Interesting. There is no host.conf file in /var/spool/postfix/etc, only
>> hosts and resolv.conf, perhaps this is the issue?
>
> They are needed only if chroot is turned on. For example:
>
> /etc/postfix/master.cf:
>     # =============================================================
>     # service type  private unpriv  chroot  wakeup  maxproc command
>     #               (yes)   (yes)   (yes)   (never) (100)
>     # =============================================================
>     smtp      inet  n       -       -       -       -       smtpd
>
> Otherwise the files are ignored.
>
> Oh, and you should run my getaddrinfo/getnameinfo programs as
> a non-root user.
>
> Wietse
>
Also these are the values in my master.conf:

#==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
#
#==========================================================================
smtp      inet  n       -       -       -       -       smtpd

--
staticsafe
http://staticsafe.ca
Reply | Threaded
Open this post in threaded view
|

Re: Issues with address not listed for hostname

Wietse Venema
staticsafe:
> ./getnameinfo 2600:3c03::f03c:91ff:fedf:219a
> Hostname:       bender.entropynet.net
> Address:        2600:3c03::f03c:91ff:fedf:219a
>
> ./getaddrinfo bender.entropynet.net
> Hostname:       bender.entropynet.net
> Addresses:      2600:3c03::f03c:91ff:fedf:219a 97.107.141.59

I presume that these results are correct.

> Also these are the values in my master.conf:
>
> #==========================================================================
> # service type  private unpriv  chroot  wakeup  maxproc command + args
> #               (yes)   (yes)   (yes)   (never) (100)
> #
> #==========================================================================
> smtp      inet  n       -       -       -       -       smtpd

Turn the chroot off, and see if that fixes the problem.

  smtp      inet  n       -       n       -       -       smtpd

Don't forget to do "postfix reload".

To make chroot work requires a lot more than populating
/var/spool/postfix/etc.

This is why Postfix as shipped by me does not turn on chroot,

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: Issues with address not listed for hostname

staticsafe
On 11/10/2012 11:51 AM, Wietse Venema wrote:

> staticsafe:
>> ./getnameinfo 2600:3c03::f03c:91ff:fedf:219a
>> Hostname:       bender.entropynet.net
>> Address:        2600:3c03::f03c:91ff:fedf:219a
>>
>> ./getaddrinfo bender.entropynet.net
>> Hostname:       bender.entropynet.net
>> Addresses:      2600:3c03::f03c:91ff:fedf:219a 97.107.141.59
>
> I presume that these results are correct.
>
>> Also these are the values in my master.conf:
>>
>> #==========================================================================
>> # service type  private unpriv  chroot  wakeup  maxproc command + args
>> #               (yes)   (yes)   (yes)   (never) (100)
>> #
>> #==========================================================================
>> smtp      inet  n       -       -       -       -       smtpd
>
> Turn the chroot off, and see if that fixes the problem.
>
>    smtp      inet  n       -       n       -       -       smtpd
>
> Don't forget to do "postfix reload".
>
> To make chroot work requires a lot more than populating
> /var/spool/postfix/etc.
>
> This is why Postfix as shipped by me does not turn on chroot,
>
> Wietse
>

That has fixed the issue. Thanks for all the help. I do find it a bit
weird that the Debian postfix maintainer decided to leave that turned on
in the default master.cf that ships with the squeeze package.

--
staticsafe
http://staticsafe.ca
Reply | Threaded
Open this post in threaded view
|

Re: Issues with address not listed for hostname

Reindl Harald-2


Am 11.10.2012 19:39, schrieb staticsafe:
> That has fixed the issue. Thanks for all the help. I do find it a bit weird that the Debian postfix maintainer
> decided to leave that turned on in the default master.cf that ships with the squeeze package.

make a bugreport!

Wietse has blamed him many times here the last years


signature.asc (267 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Issues with address not listed for hostname

Scott Kitterman-4
On Thursday, October 11, 2012 07:46:22 PM Reindl Harald wrote:
> Am 11.10.2012 19:39, schrieb staticsafe:
> > That has fixed the issue. Thanks for all the help. I do find it a bit
> > weird that the Debian postfix maintainer decided to leave that turned on
> > in the default master.cf that ships with the squeeze package.
> make a bugreport!
>
> Wietse has blamed him many times here the last years

Don't bother.  It's not going to change.

A bug report explaining what didn't work when chroot'ed would be useful.

Scott K
Reply | Threaded
Open this post in threaded view
|

Re: Issues with address not listed for hostname

Wietse Venema
Scott Kitterman:

> On Thursday, October 11, 2012 07:46:22 PM Reindl Harald wrote:
> > Am 11.10.2012 19:39, schrieb staticsafe:
> > > That has fixed the issue. Thanks for all the help. I do find it a bit
> > > weird that the Debian postfix maintainer decided to leave that turned on
> > > in the default master.cf that ships with the squeeze package.
> > make a bugreport!
> >
> > Wietse has blamed him many times here the last years
>
> Don't bother.  It's not going to change.

What if I change the built-in default (as opposed to the configured
default as distributed from postfix.org source code mirrors)?

> A bug report explaining what didn't work when chroot'ed would be useful.

I'll leave that up to the original poster.

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: Issues with address not listed for hostname

Scott Kitterman-4
On Thursday, October 11, 2012 01:58:31 PM Wietse Venema wrote:

> Scott Kitterman:
> > On Thursday, October 11, 2012 07:46:22 PM Reindl Harald wrote:
> > > Am 11.10.2012 19:39, schrieb staticsafe:
> > > > That has fixed the issue. Thanks for all the help. I do find it a bit
> > > > weird that the Debian postfix maintainer decided to leave that turned
> > > > on
> > > > in the default master.cf that ships with the squeeze package.
> > >
> > > make a bugreport!
> > >
> > > Wietse has blamed him many times here the last years
> >
> > Don't bother.  It's not going to change.
>
> What if I change the built-in default (as opposed to the configured
> default as distributed from postfix.org source code mirrors)?

Lamont would have to answer that.  He and I had discussed this in general
terms several times and I know he has a strong opinion on the appropriate
default.  I can't speak for him on this point though.

Scott K
Reply | Threaded
Open this post in threaded view
|

Re: Issues with address not listed for hostname

Wietse Venema
Scott Kitterman:

> On Thursday, October 11, 2012 01:58:31 PM Wietse Venema wrote:
> > Scott Kitterman:
> > > On Thursday, October 11, 2012 07:46:22 PM Reindl Harald wrote:
> > > > Am 11.10.2012 19:39, schrieb staticsafe:
> > > > > That has fixed the issue. Thanks for all the help. I do find it a bit
> > > > > weird that the Debian postfix maintainer decided to leave that turned
> > > > > on
> > > > > in the default master.cf that ships with the squeeze package.
> > > >
> > > > make a bugreport!
> > > >
> > > > Wietse has blamed him many times here the last years
> > >
> > > Don't bother.  It's not going to change.
> >
> > What if I change the built-in default (as opposed to the configured
> > default as distributed from postfix.org source code mirrors)?
>
> Lamont would have to answer that.  He and I had discussed this in general
> terms several times and I know he has a strong opinion on the appropriate
> default.  I can't speak for him on this point though.

It would be a strong hint - that's all it can be.

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: Issues with address not listed for hostname

Robert Schetterer
In reply to this post by Scott Kitterman-4
Am 11.10.2012 20:05, schrieb Scott Kitterman:

> On Thursday, October 11, 2012 01:58:31 PM Wietse Venema wrote:
>> Scott Kitterman:
>>> On Thursday, October 11, 2012 07:46:22 PM Reindl Harald wrote:
>>>> Am 11.10.2012 19:39, schrieb staticsafe:
>>>>> That has fixed the issue. Thanks for all the help. I do find it a bit
>>>>> weird that the Debian postfix maintainer decided to leave that turned
>>>>> on
>>>>> in the default master.cf that ships with the squeeze package.
>>>>
>>>> make a bugreport!
>>>>
>>>> Wietse has blamed him many times here the last years
>>>
>>> Don't bother.  It's not going to change.
>>
>> What if I change the built-in default (as opposed to the configured
>> default as distributed from postfix.org source code mirrors)?
>
> Lamont would have to answer that.  He and I had discussed this in general
> terms several times and I know he has a strong opinion on the appropriate
> default.  I can't speak for him on this point though.
>
> Scott K
>

by the way , thx Scott for release work on ubuntu packs ppa etc,

the default chroot setting for postfix leads to much questions here by
postfix starters

why not make it choosable at install, you have smarthost , local etc too
there

...my meaning


--
Best Regards
MfG Robert Schetterer