Linux: Wierd problem

rahvin

Elite Member
Oct 10, 1999
8,475
1
0
Ok, both my cron output and my logsentry output is getting mailed to the wrong domain:

Return-Path: <root@.hansonclan.net>
Received: (qmail 26050 invoked by uid 0); 11 Nov 2004 17:00:02 -0700
Date: 11 Nov 2004 17:00:02 -0700
Message-ID: <20041112000002.26046.qmail@hansonclan.net>
From: root@.hansonclan.net
To: root@.hansonclan.net
Subject: hansonclan.net 11/11/04:17.00 system check

As you can see it's putting a . in front of the domain name, this is causing a double bounce which makes it to me but the messages are always titled failed delivery. This is terribly annoying! I have checked everything I can think of, I even grep'd every file in /etc for the domain name to see if there were any lines where there was a period in front in some config file I'm not aware of.

Anyone have a clue what's going on? The system is a Gentoo build and I can post the contents of any file .conf that will help in the diagnosis.
 

rahvin

Elite Member
Oct 10, 1999
8,475
1
0
hansonclan.net

(with no carriage return/line feed in the file /etc/hostname)

The output of running the command hostname is hansonclan.net. See screencap below.

hansonclan ~ # cat /etc/hostname
hansonclan.nethansonclan ~ # hostname
hansonclan.net
hansonclan ~ #
 

rahvin

Elite Member
Oct 10, 1999
8,475
1
0
No help? I'm totally stumped on this, and although it's not a deal killer it's terribly annoying.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
I'm pretty stumped too. Have you checked the sendmail configs? Is it using DNS or hosts file?
 

rahvin

Elite Member
Oct 10, 1999
8,475
1
0
Originally posted by: n0cmonkey
I'm pretty stumped too. Have you checked the sendmail configs? Is it using DNS or hosts file?

As Nothingman noted I'm using qmail. In particular I'm using qmail,vpopmail,courier-imap(pop3d) and qmailadmin. I have been through all the qmail files and can't find anything wrong but I do have a vauge recollection of some config file requireing ending periods but as best I can recall that was bind zone files, not the qmail config files.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: rahvin
Originally posted by: n0cmonkey
I'm pretty stumped too. Have you checked the sendmail configs? Is it using DNS or hosts file?

As Nothingman noted I'm using qmail. In particular I'm using qmail,vpopmail,courier-imap(pop3d) and qmailadmin. I have been through all the qmail files and can't find anything wrong but I do have a vauge recollection of some config file requireing ending periods but as best I can recall that was bind zone files, not the qmail config files.

Try to mail something manually. Don't run a script to do it, just use mail or whatever. That should narrow it down to script or qmail.

I haven't setup qmail in a while, but the configs are a bit wierd. I remember having to setup dns to get the setup scripts to work properly. :confused:
 

rahvin

Elite Member
Oct 10, 1999
8,475
1
0
The only email problem I have is in the automated emails. I just set them up as part of revamping my security policy to be more what it was a couple years ago when I was on redhat instead of Gentoo. Otherwise qmail works flawlessly(have been sending and receiving for a year), this is what makes me think it's some bizzare configuration variable in the automated logs. I thought it was just the cron log for the cron daily but now that I have installed logsentry and it's doing the same thing I'm completely confused. I have checked all my hostname, hosts and config files and can't find anything. AFAIK my MX on my DNS entry is set up right but I don't see how that could play into it. I'm stumped, and thought as a last ditch I would see if both of you guys had any ideas, otherwise I may chock it up to a Gentoo quirck.