LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Sendmail doubling sender domain- ex. hostname.domain.net.domain.net (http://www.linuxquestions.org/questions/slackware-14/sendmail-doubling-sender-domain-ex-hostname-domain-net-domain-net-827838/)

halborr 08-22-2010 03:00 PM

Sendmail doubling sender domain- ex. hostname.domain.net.domain.net
 
I wasn't sure whether to post this in slackware or servers, but this is a personal project so I figured this would be better.

A forward note: I haven't been able to send mail outside the LAN yet because apparently my DNS is taking a really long time to update. All things mentioned in this post are on the local machine unless otherwise stated.

Slackware 12.2

Ok, now on to the interesting part. When I send mail from one user to another, (using the mail program... proof-of-concept type stuff) I send it to user@domain.net. When it is received, the from field lists "sender@hostname.domain.net.domain.net". I'm sure I have something configured wrong somewhere, but I have no idea where.

It works, but it's... weird. Anyone have any inkling what's going on?

If you want to see any config files, just ask.

EDIT: on second thought, might it be a DNS configuration error as well, even though it's entirely on the local machine?

dive 08-22-2010 04:27 PM

What do you have in your /etc/hosts for this box?

halborr 08-22-2010 06:41 PM

Code:

#
# 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...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine.  It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#

# For loopbacking.
127.0.0.1              localhost
192.168.1.100          bilbo.plrr.net bilbo

# End of hosts.


dive 08-22-2010 06:47 PM

Maybe something in sendmail.cf then?

halborr 08-22-2010 06:51 PM

So, possibly happy news, on a hunch I removed "bilbo.plrr.net" from the /etc/hosts file and it seems correct now! Will this configuration change mess with anything?

dive 08-22-2010 09:11 PM

Not sure if it will affect anything. For what it's worth I have always had the domain names in my hosts the same as you had but didn't get it doubled. I would still check sendmail.cf to see if domain is set there too.

halborr 08-23-2010 09:12 AM

Alright. thanks!

bathory 08-23-2010 09:37 AM

Hi,

This looks like a dns configuration error.
I guess you miss the trailing dot in the A (or CNAME) record of your host. Post the zone file here, or check it to see if you have a dot after bilbo.plrr.net like this:
Code:

bilbo.plrr.net. IN A 192.168.1.100
Or use the following that gives the same result:
Code:

bilbo IN A 192.1681.100
Regards


All times are GMT -5. The time now is 06:37 AM.