cannot send mail from one domain to another
I have two internal sendmail servers which are running successfully. Both the servers have their own dns. One is x.com (192.168.2.5) and another is y.com (192.168.2.21). I can not send mail from x.com to y.com.
Please help me to configure the servers. |
Do you have MX records in you zone files?
Try changing you thread title to something vaguely dexcriptive of your problem rather than "Pls help me" |
Would you please instruct me how to do the mx record?
|
$TTL 86400
@ IN SOA dns.bipl.com. root@bipl.com. ( 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum @ IN NS dns.bipl.com. IN MX 10 mail.bipl.com. IN A 127.0.0.1 dns IN A 192.168.2.5 mail IN A 192.168.2.5 www IN CNAME bipl.com. $TTL 86400 @ IN SOA dns.hbcl.com. root@hbcl.com. ( 49 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum @ IN NS dns.hbcl.com. IN MX 20 mail.hbcl.com. IN A 127.0.0.1 dns IN A 192.168.2.21 mail IN A 192.168.2.21 |
check if things are working first with
dig bipl.com MX |
|
[root@mail ~]# dig bipl.com mx
; <<>> DiG 9.2.4 <<>> bipl.com mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10568 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3 ;; QUESTION SECTION: ;bipl.com. IN MX ;; ANSWER SECTION: bipl.com. 258012 IN MX 10 smtp.getontheweb.com. ;; AUTHORITY SECTION: bipl.com. 67561 IN NS ns2.dnsnameservice.com. bipl.com. 67561 IN NS ns1.dnsnameservice.com. ;; ADDITIONAL SECTION: smtp.getontheweb.com. 258792 IN A 66.36.236.47 ns1.dnsnameservice.com. 238763 IN A 209.61.212.151 ns2.dnsnameservice.com. 6414 IN A 209.61.212.88 ;; Query time: 488 msec ;; SERVER: 69.88.13.5#53(69.88.13.5) ;; WHEN: Thu Mar 20 15:31:00 2008 ;; MSG SIZE rcvd: 158 [root@hbclmail ~]# dig hbcl.com mx ; <<>> DiG 9.2.4 <<>> hbcl.com mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 65470 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 2 ;; QUESTION SECTION: ;hbcl.com. IN MX ;; ANSWER SECTION: hbcl.com. 86400 IN MX 20 mail.hbcl.com. hbcl.com. 86400 IN MX 10 mail.bipl.com. ;; AUTHORITY SECTION: hbcl.com. 86400 IN NS dns.hbcl.com. ;; ADDITIONAL SECTION: mail.hbcl.com. 86400 IN A 192.168.2.21 dns.hbcl.com. 86400 IN A 192.168.2.21 ;; Query time: 6 msec ;; SERVER: 192.168.2.21#53(192.168.2.21) ;; WHEN: Thu Mar 20 15:19:06 2008 ;; MSG SIZE rcvd: 123 |
[root@mail ~]# dig bipl.com mx
; <<>> DiG 9.2.4 <<>> bipl.com mx ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19130 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 2 ;; QUESTION SECTION: ;bipl.com. IN MX ;; ANSWER SECTION: bipl.com. 86400 IN MX 10 mail.bipl.com. bipl.com. 86400 IN MX 20 mail.hbcl.com. ;; AUTHORITY SECTION: bipl.com. 86400 IN NS dns.bipl.com. ;; ADDITIONAL SECTION: mail.bipl.com. 86400 IN A 192.168.2.5 dns.bipl.com. 86400 IN A 192.168.2.5 ;; Query time: 4 msec ;; SERVER: 192.168.2.5#53(192.168.2.5) ;; WHEN: Thu Mar 20 15:41:28 2008 ;; MSG SIZE rcvd: 123 |
All times are GMT -5. The time now is 11:39 PM. |