Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[partly solved] postfix start fails due to getaddrinfo: ...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Thiemo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2002
Posts: 138

PostPosted: Sun Feb 29, 2004 12:29 am    Post subject: [partly solved] postfix start fails due to getaddrinfo: ... Reply with quote

Hi,

I had postfix running and upgraded to postfix-2.0.16-r1 and now it fails on start due to "getaddrinfo: Servname not support" I also tried 2.0.18 and downgraded to 2.0.11 with the same result.

Does somebody have a clue?

Cheers

Thiemo
_________________
root ist die wurzel allen uebels


Last edited by Thiemo on Sun Mar 07, 2004 5:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
EvilTwinSkippy
n00b
n00b


Joined: 20 Feb 2003
Posts: 63
Location: Philadelphia, PA

PostPosted: Sun Feb 29, 2004 2:55 am    Post subject: Sounds like a hostname issue Reply with quote

Did you program in a hostname into your postfix configuration? If not, does your computer have a name in /etc/hostname? In either case, are your DNS settings in /etc/resolv.conf up to date and correct?

I vaguely recall getting this error in the past, and it turned out to be some strangeness with the way I had my address records in the DNS. Or Portage overwriting my /etc/hostname file. I don't recall clearly.[/b]
_________________
I've found that people will take what you say more seriously if you tell them Ben Franklin said it first.
Back to top
View user's profile Send private message
gautamg
n00b
n00b


Joined: 23 Feb 2004
Posts: 27
Location: New York, NY

PostPosted: Sun Feb 29, 2004 3:59 am    Post subject: ipv6? Reply with quote

are you using ipv6?
If so it could be related to the bug listed over at

http://www.ipnet6.org/postfix/IPv6-ChangeLog
Back to top
View user's profile Send private message
Thiemo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2002
Posts: 138

PostPosted: Sun Feb 29, 2004 9:07 am    Post subject: Re: Sounds like a hostname issue Reply with quote

EvilTwinSkippy wrote:
Did you program in a hostname into your postfix configuration? If not, does your computer have a name in /etc/hostname? In either case, are your DNS settings in /etc/resolv.conf up to date and correct?

I vaguely recall getting this error in the past, and it turned out to be some strangeness with the way I had my address records in the DNS. Or Portage overwriting my /etc/hostname file. I don't recall clearly.[/b]

nyffeltrach root # cat /etc/hostname
nyffeltrach.thiam.ch
nyffeltrach root # cat /etc/resolv.conf
domain thiam.ch
search thiam.ch
nameserver localhost
nameserver 192.168.1.1
nameserver 81.221.252.10
nameserver 81.221.250.10
nyffeltrach root # cat /etc/hosts
# /etc/hosts: This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses
# and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8 2003/08/04 20:12:25 azarah Exp $
#

127.0.0.1 localhost
# IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

# Thiemo Kellner, thiemo@thiam.ch, 2003-09-26
192.168.0.253 nyffeltrach.thiam.ch
nyffeltrach root # host limbo
limbo.thiam.ch has address 192.168.0.249


This looks all good to me.
_________________
root ist die wurzel allen uebels
Back to top
View user's profile Send private message
Thiemo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2002
Posts: 138

PostPosted: Sun Feb 29, 2004 9:09 am    Post subject: Re: ipv6? Reply with quote

gautamg wrote:
are you using ipv6?
If so it could be related to the bug listed over at

http://www.ipnet6.org/postfix/IPv6-ChangeLog


I use USE="IPV6". However, I did that before. I'll check your link, however.

[edit] I am affraid, I could not get usefull information from above link. Though there is a bug mentionned giving "getaddrinfo: Servname not support", it seems to be related only to clients connections and fixed at least with 2.0.18, but my problem happens at server start up and from 2.0.11 to 2.0.18 ebuilds. However, I do know that postfix can act as client as well, but I assume this hardly could matter at start up. Maybe somebody more knowledgable than I can give me a hint.

Thanks
_________________
root ist die wurzel allen uebels
Back to top
View user's profile Send private message
Thiemo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2002
Posts: 138

PostPosted: Thu Mar 04, 2004 10:06 pm    Post subject: Reply with quote

BTW "postfix check" didn't return anything...

Thiemo
_________________
root ist die wurzel allen uebels
Back to top
View user's profile Send private message
Thiemo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Nov 2002
Posts: 138

PostPosted: Sun Mar 07, 2004 5:36 pm    Post subject: solution part Reply with quote

I found what kept postfix from running.

I put two instruction into master.cf. I forgot to remove them.

Code:
smtps    inet  n       -       n       -       -       smtpd
  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
submission     inet    n       -       n       -       -       smtpd
  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes



However, my postfix is running again but still without authentication - and apparingly blocking all mails from outside. :(

Cheers

Thiemo
_________________
root ist die wurzel allen uebels
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum