Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What wrong ?
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
hama
n00b
n00b


Joined: 17 Jan 2004
Posts: 42

PostPosted: Mon Feb 16, 2004 3:14 pm    Post subject: What wrong ? Reply with quote

In /var/log/everything/current:

Feb 16 16:41:19 [postfix/qmgr] 24921C2761: to=<postmaster@_HOSTNAME_.mydomain.net>, relay=none, delay=240077, status=deferred (Name service error for name=_hostname_.mydomain.net type=MX: Host not found, try again)
Feb 16 16:41:19 [postfix/qmgr] 2C92E20B7F: to=<root@_HOSTNAME_.mydomain.net>, relay=none, delay=55001, status=deferred (Name service error for name=_hostname_.mydomain.net type=MX: Host not found, try again)
Feb 16 17:00:02 [postfix/smtp] 9C48121999: to=<postmaster@_HOSTNAME_.mydomain.net>, relay=none, delay=21270, status=deferred (Name service error for name=_hostname_.mydomain.net type=MX: Host not found, try again)
Feb 16 17:00:02 [postfix/smtp] 50B26C68AC: to=<postmaster@_HOSTNAME_.mydomain.net>, relay=none, delay=81560, status=deferred (Name service error for name=_hostname_.mydomain.net type=MX: Host not found, try again)


I can't find where is "_hostname_" in configfile;

# grep -r _hostname_ /etc
and
# grep -r _HOSTNAME_ /etc

but I can't find it.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Feb 16, 2004 3:42 pm    Post subject: Reply with quote

have you configured the host names in /etc/postfix/main.cf correctly?
Back to top
View user's profile Send private message
Janne Pikkarainen
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1143
Location: Helsinki, Finland

PostPosted: Mon Feb 16, 2004 5:15 pm    Post subject: Reply with quote

Today I saw this same message when I emerged mailx. The Gentoo installation in question has some pretty tight compiler settings and I suspect those messed up made my mailx installation. I didn't have time to debug it, but anyway the very same version of mailx installed flawlessly to another computer, which has more normal compiler flags.

So I suspect that due the compiler flags that _HOSTNAME_ thing isn't getting parsed as it usually is.

Edit: Whoops, it was the Postfix queue manager and not mail command which was throwing the error. Maybe the same problem I just described still applies and calming down the compiler flags could make all work?
_________________
Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.".
Back to top
View user's profile Send private message
RoeR
Tux's lil' helper
Tux's lil' helper


Joined: 11 Aug 2002
Posts: 99
Location: Vienna, Austria

PostPosted: Fri Mar 19, 2004 11:50 pm    Post subject: Reply with quote

well, i had the same problem but editing the

Quote:
/etc/ssmtp/ssmtp.conf


file and setting _HOSTNAME_ to my qualified hostname worked well

allthough i dont have a "real" smtp app here - this is my working machine and mailx is more than enough to send the most important messages

maybe that helps
_________________
Unix is user friendly, it's just very picky about who its friends are.
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