LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-28-2007, 09:56 PM   #1
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
Not sure if can be done NAMED/BIND question


Hi all,

I have a quite funky situation and I think we can manage it if I can pull (with your help) this one off.

I have a DNS server as a master for our Domain(running bind), from there everything goes down, DNSs for subdomains and AD forrests, websites, demosites, etc...

Now I have on a different location an Asterisk, I want to make it send the voicemail messages, and I have succeded, now here is the problem.

The asterisk and the mail server are on different locations, for reasons beyond my control I cannot force the mail server to relay on the machine that the asterisk is running so when the mail server does a reverse lookup it bounces the voicemail mails.

Now if I make the asterisk send it to another address that is not in the same domain, there is no problem.

What I want to do, if possible is to create a subdomain on the DNS server with an specific and for this subdomain only MX record.

In other words:

Create a A record such as pbx.mydomain.com.
Create an MX record that answers only for pbx.mydomain.com, I know it sounds funky but seems to be the only option besides getting a new domain.

Any ideas, thoughts or confirmation about the imposibility of this are welcome.
I spent some time trying to figure it out but with no luck, and honestly I doubt it can be done but I rather have the community to confirm this hunch


Thanks so much.
 
Old 06-28-2007, 10:57 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
I think you're way off in space on this one. It is not at all a DNS problem. I've been receiving asterisk emails on my qmail system since 2004 without issue. I didn't configure the asterisk box, but I did configure the qmail box.

The asterisk box was configured with a username/password on the mail server. The asterisk box was told to use that username and password to send every email through the mail server, which is does. Earlier, before I build the mail server, the asterisk box ran its own exim mail server, and mailed out that way. That sounds like your current config. All you'd need to do to receive those emails is to add the asterisk servers' info into the whitelist for your spam checker. Most mail servers allow you to say, "any mail from this server is good, do not treat as spam." Also, you should be able to set your mail server to automatically relay mail for specific IP addresses. Tell your mail server to relay all mail coming from the real world IP of the asterisk, and again the problem will be solved.

On the DNS side, you can easily create a subdomain (pbx.mydomain.com) with its own zonefile (identified in named.conf) and its own MX record. That is easy to do, but again, the problem is not a DNS one, it is poorly configured mail servers.

Peace,
JimBass
 
  


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
named not bind to IP noir911 *BSD 4 02-17-2007 04:12 PM
BIND not loading named.ca Flawless Linux - Newbie 1 12-17-2004 11:29 AM
bind and named Red Squirrel Linux - Software 3 04-25-2004 09:49 PM
BIND / named r3ekon Linux - Newbie 6 10-16-2003 05:33 PM
Bind / named 80s Linux - Networking 3 03-20-2003 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:08 AM.

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