Configuring DNS/Apache for MX?

Tiembo

Senior member
Aug 25, 2002
528
0
0
I currently have a site (let's call it blah.com) that I registered through Registrar ABC (I don't want this to sound like an advertisement). ABC lets me create subdomains (*.blah.com) through their web interface, but they pretty much just act like cloak redirections. Pretty cool at first, but then I started to play with DNS entries, because I wanted to learn Apache and php on my own box. Everything seemed properly pointed, except the MX - any sent mail to *@blah.com is returned to the sender with the error message "Relaying is denied".

ABC offers a 10MB mailbox (which is checked through mail.abc.com), and email forwarding. How should I set up the MX so that the email to *@blah.com is still handled by ABC, but the rest of the blah.com traffic is pointed to my box? Is this done through the DNS entry, or does Apache's httpd.conf process it?

On another note - the freeDNS service I used doesn't seem to be around anymore. One that I've found is www.zoneedit.com - are they good? Anyone recommend another freeDNS service?

[Edit] One more thing - I know that I can tell the DNS to forward just blah.com to my box, and have Apache's httpd.conf set up the subdomains. How do I go about editing the httpd.conf file to do this? I think it has something to do with Section 3 and the Virtual Hosts...correct?

Thanks.
 

N11

Senior member
Mar 5, 2002
309
0
0
I would recommend the following

An A record to point blah.com to the IP address of your box.
An A record to point mail.blah.com to the IP address of ABC's mail server.
An MX record for mail.blah.com

This mail handling is done via DNS, not through apache's config file. You will only want to edit apache's config file when you want to change how http/https traffic is handled by your server.

When setting up subdomains you will add virtual host entries -- section 3 is intended for this. There should be a sample entry for you. The only directives you should be concerned with are DocumentRoot and ServerName. The rest you can do without. I would however recommed a directive for error logging so that you can see what is going on when you are having difficulties with your php scripts.

-N11
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |