ZhangHuangbin wrote:Amarantus wrote:When I send mail to user@subdomain.otherdomain.com I have in mailog file:
reject delivery to user@otherdomain.com
Show us full log related to this test email please, not just the line you think it's enough.
Thx for replay.
Today I test again and user@subdomain.otherdomain.com works well from several public mail server and gmail.
I think, problem was in domain intercharge comunication. Gmail and my mail server interchange DNS
information very fast (in dozen seconds), other domain mail server ( with whom I sent testing mail and not work properly) interchange DNS information very slow (I think 48h or longer).
What is best practice in DNS named.conf, for subdomain must be seperate registration, for examle named.conf:
zone "otherdomain.com" {
type master;
file "dynamic/otherdomain.com";
};
// subdomain
zone "subdomain.otherdomain.com" {
type master;
file "dynamic/subdomain";
};
and zone files for subdomain:
$ORIGIN subdomain.otherdomain.com
$TTL 86400
@ 1D IN SOA @ michal.maindomain.com (
2014032001
1200
1200
3600000
86400
)
@ IN NS ns2.maindomain.com.
IN MX 10 ns2.maindomain.com.
@ IN A 1.2.3.4
ns2 IN A 1.2.3.4
; SPF
subdomain.otherdomain.com. IN TXT "v=spfl include:maindomain.com -all"
subdomain.otherdomain.com. IN SPF "v=spfl include:maindomain.com -all"
www IN CNAME subdomain.otherdomain.com
or is enough only registration for otherdomain like this named.conf:
zone "otherdomain.com" {
type master;
file "dynamic/otherdomain.com";
};
and zone alias for subdomain in otherdomain.com
$ORIGIN otherdomain.com
$TTL 86400
@ 1D IN SOA @ michal.maindomain.com (
2014032001
1200
1200
3600000
86400
)
@ IN NS ns2.maindomain.com.
IN MX 10 ns2.maindomain.com.
@ IN A 1.2.3.4
ns2 IN A 1.2.3.4
; SPF
otherdomain.com. IN TXT "v=spfl include:maindomain.com -all"
otherdomain.com. IN SPF "v=spfl include:maindomain.com -all"
www IN CNAME otherdomain.com
subdomain IN CNAME otherdomain.com
www.subdomain IN CNAME otherdomain.com
Apache vhost works well in both cases.