Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I use postfix and dovecot with two virtual domain. the first domain use cloudflare.com for dns and second one use bind. now domain1.com can receive email but the domain2.com have problem to receive emails.

here is my bind config for domain2.com:

/var/named/chroot/etc/named.conf :

zone  "domain2.com" { type master; file "/var/named/domain2.com.zone";};

/var/named/chroot/var/named/domain2.com.zone :

$TTL 14400
@       IN      SOA     ns2.nameserver.com.      info.nameserver.com. (
                                                2012091500
                                                14400
                                                3600
                                                1209600
                                                86400 )

domain2.com.        14400   IN      NS      ns1.nameserver.com.
domain2.com.        14400   IN      NS      ns2.nameserver.com.

ftp     14400   IN      A       1.1.111.111
localhost       14400   IN      A       127.0.0.1
mail    14400   IN      A       1.1.111.111
pop     14400   IN      A       1.1.111.111
smtp    14400   IN      A       1.1.111.111
domain2.com.        14400   IN      A       1.1.111.111
www     14400   IN      A       1.1.111.111

domain2.com.        14400   IN      MX      10 mail



domain2.com.        14400   IN      TXT     "v=spf1 a mx ip4:1.1.111.111 ~all"

localhost       14400   IN      AAAA    ::1

below you can see return of 'dig domain2.com' :

Amir:~ amir$ dig mx domain2.com

; <<>> DiG 9.7.6-P1 <<>> mx domain2.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37749
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

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

;; ANSWER SECTION:
domain2.com.        14362   IN  MX  10 mail.domain2.com.

;; AUTHORITY SECTION:
domain2.com.        3650    IN  NS  ns1.nameserver.com.
domain2.com.        3650    IN  NS  ns2.nameserver.com.

;; ADDITIONAL SECTION:
mail.domain2.com.       14362   IN  A   1.1.111.111

;; Query time: 3 msec
;; SERVER: 4.2.2.4#53(4.2.2.4)
;; WHEN: Wed Dec 26 18:14:26 2012
;; MSG SIZE  rcvd: 108
share|improve this question
1  
How did you come to the conclusion that DNS is the problem? –  faker Dec 26 '12 at 15:09
    
because all thing is the same for these two domains. i can receive email with domain1.com ... –  Amir Molaa Dec 26 '12 at 15:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.