LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-14-2006, 03:32 PM   #1
spindley
Member
 
Registered: Mar 2003
Location: Calgary, AB Canada
Distribution: Slackware 14.0
Posts: 32

Rep: Reputation: 15
Exim4/DNS/Hostname Problems


I'm running Debian Sarge, with Exim4 as my mailserver. I am also running Bind9 to host my own DNS for my domain. Basically, the problem is that Exim doesn't like the way I've setup DNS (or at least I think that's what's wrong). My zone file for my domain looks like this:
Code:
$ORIGIN mydomain.ca.
$TTL 1D
@                       IN      SOA     ns1.mydomain.ca. postmaster.mydomain.ca. (
                                2006061426      ; serial, todays date + todays serial 
                                21600           ; refresh, seconds
                                3600            ; retry, seconds
                                1728000         ; expire, seconds
                                21600 )         ; minimum, seconds
;
                        IN      NS      ns1.mydomain.ca.              
                        IN      NS      ns1.secondarynameserver.org.
                        IN      TXT     "v=spf1 a mx -all"
                        IN      MX      5 mail
;
localhost               IN      A       127.0.0.1
ns1                     IN      A       my.v4.ip.address
@                       IN      A       my.v4.ip.address
@                       IN      AAAA    my:v6::address
www                     IN      A       my.v4.ip.address
mail                    IN      A       my.v4.ip.address
Now, where I have "mydomain.ca" is obviously the domain that I've purchased, and host the DNS for. The "my.v4.ip.address" is the IP address assigned to me by my ISP, and v6 is the v6 block for that same IP.
Anyway, everything resolves fine, webpage works, etc.
The problem is, exim wants my /etc/hosts file to look like this
Code:
127.0.0.1    mydomain.ca
192.168.0.1  server.mydomain.ca    server
and not this way (which I think is proper)
Code:
127.0.0.1    localhost.localdomain    localhost
192.168.0.1  server.mydomain.ca    server
It needs to have the domain name as 127.0.0.1, else it returns:
Code:
2006-06-14 09:27:47 lowest numbered MX record points to local host: mydomain.ca (while verifying <myusername@mydomain.ca> from host (host name from which the email is coming in from)
2006-06-14 09:27:47 temporarily rejected RCPT <myusername@mydomain.ca>: lowest numbered MX record points to local host
After some googling, I think I know what this error "means", but I'm not sure what to do to correct it. As you can see in my zone file above, my MX record does not point to localhost or 127.0.0.1, so I'm really not sure what the problem could be. Unless Exim doesn't like the fact that mail.mydomain.ca and mydomain.ca have the same IP address? Exim will send mail outside the local network just fine, it's incoming mail that is not allowed through.
Thanks in advance for any suggestions.

Mike
 
Old 06-16-2006, 09:55 AM   #2
spindley
Member
 
Registered: Mar 2003
Location: Calgary, AB Canada
Distribution: Slackware 14.0
Posts: 32

Original Poster
Rep: Reputation: 15
Well, after about a week of frustration I finally gave up on exim and tried postfix. I got it setup and working properly very quickly. It's a lot easier to configure, and works flawlessly with spamassassin.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS bind cant resolve IP and hostname dwarf007 Linux - Software 1 01-14-2006 08:42 AM
dhcpcd, dns, and the local hostname celejar Linux - Networking 3 10-23-2005 03:40 PM
Linux Server Hostname/Dns name? Logarithim Slackware 1 05-21-2005 08:01 PM
exim4 exim4, setup debian tongueroo Linux - Networking 1 11-09-2004 04:12 AM
Slow resolving DNS Hostname rmainville Linux - Networking 3 09-03-2004 11:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration