hi fatima2007,
So let me see if I understand you correctly.
Question 1:
mail to
user@x.com works correctly, but mail to
user@y.x.com is rejected?
The first thing I would check is your DNS. Your DNS server should be able to resolve your domains MX record. If it cannot resolve the domain, or the domain has no MX record, then it's hard to deliver mail.
See the following:
$ nslookup
> set type=mx
> gmail.com
Server: 10.10.1.1
Address: 10.10.1.1#53
Non-authoritative answer:
gmail.com mail exchanger = 10 alt1.gmail-smtp-in.l.google.com.
gmail.com mail exchanger = 20 alt2.gmail-smtp-in.l.google.com.
gmail.com mail exchanger = 5 gmail-smtp-in.l.google.com.
gmail.com mail exchanger = 30 alt3.gmail-smtp-in.l.google.com.
gmail.com mail exchanger = 40 alt4.gmail-smtp-in.l.google.com.
This shows I can properly resolve the gmail.com domain and find the MX records.
Now let's check your x.com domain for comparison
> x.com
Server: 10.10.1.1
Address: 10.10.1.1#53
Non-authoritative answer:
x.com mail exchanger = 10
www.efa.x.com.
x.com mail exchanger = 10 efal.x.com.
So, your x.com domain is resolving properly and I can find the mx records, and those mx records should resolve to an IP address properly
Let's test that shall we?
> set type=A
>
www.efa.x.com
Server: 10.10.1.1
Address: 10.10.1.1#53
Non-authoritative answer:
Name:
www.efa.x.com
Address: 217.219.165.17
> efal.x.com
Server: 10.10.1.1
Address: 10.10.1.1#53
** server can't find efal.x.com: NXDOMAIN
> efal.x.com
Server: 10.10.1.1
Address: 10.10.1.1#53
** server can't find efal.x.com: NXDOMAIN
So efal.x.com doesn't exist. Is that a typo?
> efa.x.com
;; Got SERVFAIL reply from 10.10.1.1, trying next server
Server: 10.10.1.11
Address: 10.10.1.11#53
Non-authoritative answer:
Name: efa.x.com
Address: 217.219.165.17
So yes, I think that's a typo.
Given your mx records are of equal weight, then half the time a mail system is going to have issues with delivering your mail to x.com. Fix this.
Now your domain y.x.com is acting a bit strange
> y.x.com
;; Got SERVFAIL reply from 10.10.1.1, trying next server
Server: 10.10.1.11
Address: 10.10.1.11#53
Non-authoritative answer:
y.x.com mail exchanger = 10 mail.x.com.
It resolves, eventually, but not before getting an error, so it seems to me that there is a DNS configuration problem for your subdomain. Exactly what, I'm not sure. It doesn't seem to happen all the time, but intermittently.
Let's have a closer look:
$ nslookup
> set type=ns
> x.com
;; Got SERVFAIL reply from 10.10.1.1, trying next server
Server: 10.10.1.11
Address: 10.10.1.11#53
Non-authoritative answer:
nit.ac.ir nameserver = dns4.x.com.
nit.ac.ir nameserver = dns1.x.com.
nit.ac.ir nameserver = dns2.x.com.
nit.ac.ir nameserver = ftpservertakmil.
nit.ac.ir nameserver = dns3.x.com.
Question 2:
So, one of your name servers defined for this domain does not look like the others. Is that a mistake? Is ftpservertakmil one of your domain name servers?
The moral of this story is - first make sure your domain is correctly configured before trying to debug problems with EFA.
Let me know what you find out.
(PS: if you want to use x.com and y.x.com, you might want to edit your post above and remove the domains you actually listed.)