Help configuring this DNS Server please

Hi everybody.

I’m configuring a Mail/DNS server using Postfix and Bind (named).

After a while, i have managed to get the outgoing mail working and the DNS resolving the services, but the incoming mail still doesn’t work…

I think its a DNS problem, so I need help to find what its the problem in the first place.

So i have my zone configured at: /etc/bind/db.domain.com


$TTL    604800
domain.com.   IN      SOA     domain.com. root.localhost. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;

@       IN      NS      dns.domain.com.
@       IN      A       90.90.90.90
@       IN      MX      10 mail.domain.com
dns     IN      A       90.90.90.90
mail    IN      A       90.90.90.90
www     IN      CNAME   dns

And then added that zone to /etc/bind/named.conf


zone "domain.com" {
        type master;
        file "/etc/bind/db.domain.com";
}

The domain first dns its pointing to dns.domain.com

When I make a alex@altair:~> dig domain.com MX


; <<>> DiG 9.7.1 <<>> domain.com MX
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44001
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;domain.com.                  IN      MX

;; ANSWER SECTION:
domain.com.           3600    IN      MX      10 mail.domain.com.

;; Query time: 463 msec
;; SERVER: 90.90.90.90#53(90.90.90.90)
;; WHEN: Tue Aug 31 16:03:19 2010
;; MSG SIZE  rcvd: 53


It appears correct (i guess), so what do I am missing?

Thanks in advance.

alexbariv wrote:

>
> Hi everybody.
>
> I’m configuring a Mail/DNS server using Postfix and Bind (named).
>
> After a while, i have managed to get the outgoing mail working and the
> DNS resolving the services, but the incoming mail still doesn’t
> work…
>
>
> I think its a DNS problem, so I need help to find what its the problem
> in the first place.
>
[snip]
>
> It appears correct (i guess), so what do I am missing?
>

Perhaps you can explain to us exactly what it is that doesn’t work?
I.e. in what particular way does your incoming mail not work?


Per Jessen, Zürich (10.0°C)
http://en.opensuse.org/User:pjessen

Well, if i send a mail from gmail, yahoo or hotmail to the server, the mail never comes, and the mailerdaemon for all the services appear in a while.

alexbariv wrote:

>
> Well, if i send a mail from gmail, yahoo or hotmail to the server, the
> mail never comes, and the mailerdaemon for all the services appear in
> a while.
>

Have you had a look in the mail log to try to determine what is
happening?


Per Jessen, Zürich (10.2°C)
http://en.opensuse.org/User:pjessen

@       IN      MX      10 mail.domain.com

I bet you can’t see the dot at the end, right after ‘com’[NO-DOT-HERE] Well, it’s missing.

To test your setup try to dig domain.com MX from the outside and try to telnet to your mail server from the outside as well. This will show you what happens.