Web Hosting Talk







View Full Version : Cpanel email@subdomains


mpope
08-01-2001, 05:24 PM
Hello,

I have a customer who needs a bunch of different email addresses at subdomains. When I try to add email addresses in cpanel, It adds email addresses at all of the subdomains. (Ie... me@domain.com will ad me@sub1.domain.com and me@sub2.domain.com and me@sub3.domain.com, etc.)

I have been messing around with these, and can't for the life of me figure them out. I send an email to me@sub1.domain.com and the email just gets lost. It doesn't forward to me@domain.com or the catchall for the account or anything else. It doesn't even bounce back.

Is it even possible to setup email accounts at subdomains in cpanel? If someone could help me out with this, it would be VERY appreciated!

Thanks!

regier
08-01-2001, 10:40 PM
Cpanel doesn't actually get around to setting up the email addresses for the subdomains. You would need to create them by hand in order for them to work. It is annoying that they give the large list of emails when none of them work.

To add them manually, you would need to do the following.

Open up /etc/localdomains and add the subdomains manually to the list. Otherwise the server won't even look at email that comes in for the domain. Next you will need to create a file to tell the server which account to forward the mail to. Go to /etc/valiases. Create a file called subdomain.domain.com and add a single line that has

*: username

Then all email for the subdomain will be forwarded to this user.

If you want examples of other ways of forwarding the mail, just open up some of the other files in /etc/valiases. You can see how to forward to pop accounts, etc.

mpope
08-03-2001, 04:26 PM
Thanks for all of the info!

It's odd though, cpanel setup everything as you described, but it does not work! I tried setting things up to go to a specific email address, but that did not seem to work either!

Any suggestions?

Thanks!