PDA

View Full Version : Sending mail to subdomains?


P_W
2003-10-01, 13:48 PM
Just curiosity... is there any way to setup mail accounts to be deliverable to a submdomain?

e.g. johndoe@members.mydomain.com

Thanks!
- PDubya

QT
2003-10-01, 14:01 PM
Originally posted by P_W
Just curiosity... is there any way to setup mail accounts to be deliverable to a submdomain?

e.g. johndoe@members.mydomain.com

Thanks!
- PDubya

Yes, you need to set up an MX record for the subdomain. :)

P_W
2003-10-01, 14:11 PM
QT, your the best!

Do you recommend any resources to get a better understanding of DNS/MX?

Thanks!
- PDubya

QT
2003-10-01, 14:13 PM
A great start would be to read "DNS & Bind" by O'Reilly. :)

altp
2003-10-01, 15:04 PM
Yes, you need to set up an MX record for the subdomain.


Ugh. you don't need to do that at all.

You can do all the setup via webmin in the sendmail config area.

from the sendmail screen:

Apart from mail to server1.foobar.com, sendmail will only accept for local delivery mail for domains and hostnames listed in the text box to the left. If you want your mail server to handle multiple email domains, they must all be listed on this form.

Note that merely including a domain in the list is not usually enough. You must also make sure that a DNS record for the domain exists, and points to your system.


If you setup all the domains in the "local domains" tab in the sendmail config, it will accept mail for whatever domain you have pointed at your server.

So as long as "members.mydomain.com" is pointer to mydomain.com and not some other server somewhere, you don't need to mess with the MX records in DNS.

Altp.

knightfoo
2003-10-01, 15:09 PM
Originally posted by altp
Ugh. you don't need to do that at all.

You can do all the setup via webmin in the sendmail config area.

from the sendmail screen:


If you setup all the domains in the "local domains" tab in the sendmail config, it will accept mail for whatever domain you have pointed at your server.

So as long as "members.mydomain.com" is pointer to mydomain.com and not some other server somewhere, you don't need to mess with the MX records in DNS.

Altp.

I believe P_W has a WHM/cPanel server .. Webmin and WHM do not get installed together, and modifying mail settings through Webmin woulud most likely break whatever WHM/cPanel configured for mail. It is a good idea to set up the MX record so that mail for bob@members.domain.com doesn't get misrouted to bob@domain.com .. some SMTP servers are completely braindead and will do this.

-knightfoo

QT
2003-10-02, 06:59 AM
Originally posted by knightfoo
I believe P_W has a WHM/cPanel server .. Webmin and WHM do not get installed together, and modifying mail settings through Webmin woulud most likely break whatever WHM/cPanel configured for mail. It is a good idea to set up the MX record so that mail for bob@members.domain.com doesn't get misrouted to bob@domain.com .. some SMTP servers are completely braindead and will do this.

-knightfoo


I was assuming so since P_W's other posts/questions were regarding cPanel.

I always make it a point to check out some of the history of a users posts before trying to answer one of their questions. :)

P_W
2003-10-07, 18:58 PM
You guys are great... thank you so much for all of your help. It definately means a lot for the customers that know just enough to be dangerous...

Mwuwhhhahaha...

Oh sorry,
- PDubya