LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2011, 11:29 PM   #1
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Rep: Reputation: 34
Add my ISP mail relay to my DNS configuration


Hi, I am trying to get ISP to relay mails for me if my mail server is not available and they are sking me to add their relay name in to my DNS configuration as
;; ANSWER SECTION:
mydomain.com. 82798 IN MX 10 relay.my_isp.net.mydomain.com. <== Wrong
mydomain.com. 82798 IN MX 5 server. mydomain.com.

Please correct this as

mydomain.com. 82798 IN MX 10 relay.my_isp.net.

Please tell me what I am doing wrong, my DNS configuration is as follows
$TTL 86400
$ORIGIN mydomain.com.
@ IN SOA ns1. mydomain.com. root. mydomain.com. (
2011072614 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

IN NS ns1. mydomain.com.
IN MX 5 dn. mydomain.com.
IN MX 10 relay.my_isp.net.

IN A 203.143.41.98
ns1 IN A 203.143.41.98
dn IN A 203.143.41.98
…………………….. etc
 
Old 07-27-2011, 03:00 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,
Quote:
;; ANSWER SECTION:
mydomain.com. 82798 IN MX 10 relay.my_isp.net.mydomain.com. <== Wrong
This happens if you forget the trailing dot after the FQDN of the mail exchange. In your case you have the dot, so it should work
Anyway you can increase the serial, reload bind flush cache and check:
Code:
rndc reload
rndc flush
dig MX mydomain.com @ns1.mydomain.com.
 
Old 07-27-2011, 04:28 AM   #3
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
Hi bathory, thanks for the reply but its still the same!
 
Old 07-27-2011, 07:23 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Are you sure you're querying your name server? What's in /etc/resolv.conf?
Also, since you didn't used CODE tags to post the zone file, I cannot understand there are any blank space(s) in the NS, MX lines. Also there are blank spaces in the various hostnames (like ns1. mydomain.com. dn. mydomain.com.), that should not exist. You can try the following:
Code:
$TTL 86400
$ORIGIN mydomain.com.
@ IN SOA ns1.mydomain.com. root.mydomain.com. (
                                                   2011072615 ; Don't forget to increase it serial (d. adams)
                                                   3H ; refresh
                                                   15M ; retry
                                                   1W ; expiry
                                                   1D ) ; minimum

                                                   IN NS ns1.mydomain.com.
                                                   IN MX 5 dn.mydomain.com.
                                                   IN MX 10 relay.my_isp.net.

                                                   IN A 203.143.41.98
ns1                                             IN A 203.143.41.98
dn                                               IN A 203.143.41.98
Reload and run
Code:
dig SOA mydomain.com @ns1.mydomain.com
dig MX mydomain.com @ns1.mydomain.com
From the first you should check if you're using the correct zone file

Regards
 
Old 08-03-2011, 06:11 AM   #5
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 651

Original Poster
Rep: Reputation: 34
Hi bathory, sorry took long to reply, there was a problem with the ISP side and they have rectified it

Thanks for your help

Best Regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using sendmail to relay mail to ISP mail server Swift&Smart Linux - Software 26 11-09-2008 03:00 PM
DNS client relay mail configurations. Bharat Kumar pankaj Linux - Server 1 08-05-2008 03:19 AM
Postfix user@domain restricted mail relay configuration bntawil Linux - Server 1 07-22-2008 05:35 PM
Moving ISP's... mail/web/dns server move to new IP's flamewalker Linux - Networking 16 11-06-2007 10:55 AM
DNS - mail relay error wazza4610 Linux - Networking 4 03-14-2006 08:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration