Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
postfix error
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
brkdncr
Tux's lil' helper
Tux's lil' helper


Joined: 02 Aug 2003
Posts: 92

PostPosted: Sat Aug 02, 2003 7:21 am    Post subject: postfix error Reply with quote

Here is what I get

Code:

#postfix check
postfix: fatal: gethostbyname: No such file or directory


What am I doing wrong?
Back to top
View user's profile Send private message
ichaed
n00b
n00b


Joined: 30 Jul 2003
Posts: 2
Location: Denmark

PostPosted: Sat Aug 02, 2003 11:32 am    Post subject: Reply with quote

Hi

I had the exact same problem, I solved it by setting myhostname in /etc/postfix/main.cf
Back to top
View user's profile Send private message
tonycurtis
n00b
n00b


Joined: 12 Jul 2003
Posts: 58

PostPosted: Sat Aug 02, 2003 12:59 pm    Post subject: Reply with quote

Postfix is trying to resolve a hostname into an address through gethostbyname()
but cannot do so. Check /etc/postfix/main.cf and /etc/hosts (and DNS... or wherever
you pull your hosts repositories from in /etc/nsswitch.conf) to see if you're just making
a name up somewhere.

If you don't need this installation to receive mail from the outside, set inet_interfaces to just localhost in main.cf
Back to top
View user's profile Send private message
brkdncr
Tux's lil' helper
Tux's lil' helper


Joined: 02 Aug 2003
Posts: 92

PostPosted: Sat Aug 02, 2003 10:47 pm    Post subject: Reply with quote

Thanks, that fixed it.
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