Parked Domains - Forwarding Emails

WeinBar

Well-Known Member
Aug 13, 2001
79
0
306
When a parked domain is configured, it seems that ALL the email for that parked domain gets routed ONLY to the default address on the domain it was parked on top of.

Now, you can manually edit this in /etc/valiases to include where you ant the mail to get forwarded to, however, this is a real hassle.

For example, you park domain abc.com on top of def.com. Everything works fine as far as http access goes. However, if I have an email address that I want called [email protected], it goes to the default address on def.com, not to the account [email protected] If I edit the /etc/valiases file for abc.com, I could add in:

[email protected]: [email protected]

and it would work.

---
The question is (finally):
Why can\'t the email accounts for the parked domain be automatically forwarded to their respective accounts on the domain it was parked on top of. Editting the file is extremely cumbersome, and with all of the resellers and other users, it makes this job almost full time in itself. I know we had this feature in the Alabanza servers, and it worked flawlessly. Is there any way to have this done?
 

Annette

Well-Known Member
PartnerNOC
Aug 12, 2001
445
0
316
It actually does get done if you add the parked domain to /etc/localdomains and /etc/userdomains. With the /etc/valiases/domain.com file set to

*: master_domain_user

the functionality under exim is much like that of sendmail.

That said, we are currently tracking an issue where the entries we make for pointed/parked domains in /etc/*domains get wiped out. It happens to every one that we set up lately, and it only just started hapenning in the past two weeks. Some change in exim? Some change in cPanel/WHM and the way it reloads those files? Beats me. Previous to that, it was working flawlessly to route mail to the appropriately named mailbox on the master account if it existed per the addressing on the pointed/parked domain.
 

WeinBar

Well-Known Member
Aug 13, 2001
79
0
306
Really? I did not know that. So, if we just add in manually the entry into localdomains and userdomains, no other modification would be necessary? I will look right into that.

Thanks Annette --

If that is the case, I wonder why it was not put in that way in the first place, as I would think this would be the ipso facto standard that people would want.

[Edited on 10/20/01 by WeinBar]
 

Annette

Well-Known Member
PartnerNOC
Aug 12, 2001
445
0
316
Assuming that the other thread (too lazy to dig it up at this hour, sorry) is correct, where Nick indicated a fix where localdomains would not be overwritten every night, the only thing likely to be necessary is an actual valias file for the parked/pointed domain. For some reason, WHM doesn\'t appear to actually create the alias file. In userdomains, I see that it will create an entry for subdomains - it seems to me that if it can create that entry, then it should be able to create an entry for a domain when it is parked on top of a subdomain (for pointing a domain, say). We tried making the entry only in localdomains, but it didn\'t work consistently, so now we just make entries in both and be done with it. I haven\'t checked after this morning\'s updates to see if our tests are still intact, so can\'t report on that yet.

As to why it wasn\'t there before: exim update, it appears. That\'s what allowed this issue to finally catch up with sendmail in that regard.
 

WeinBar

Well-Known Member
Aug 13, 2001
79
0
306
Annette:

Thank you very much. It works perfectly now. The problem is that the forwarder does not add the entry to the userdomains file. It does, however, add it correctly to the localdomains file.
 

Annette

Well-Known Member
PartnerNOC
Aug 12, 2001
445
0
316
I know, it requires some manual tweaking - but these are the little things we live with until the world is a perfect place. :)
 

jameshsi

Well-Known Member
Oct 22, 2001
347
0
316
How can we let WHM do it auto ?

I really don\'t want to do it every time.

BTW, I was with alabanza.com 2 months ago, I am new here.
 

jameshsi

Well-Known Member
Oct 22, 2001
347
0
316
I found WHM seems will remove what you added in there, I add the line there 2 days ago, and now I found it disapear!! Why ?
 

jameshsi

Well-Known Member
Oct 22, 2001
347
0
316
When u create a new account in WHM, it will remove the line you add for your parked domain.
 

jameshsi

Well-Known Member
Oct 22, 2001
347
0
316
I am glad I finally found a way to solve this out.
You need to edit /var/cpanel/users/username
file, and add a line like this:
DNS1=park_domain.com
Then, you edit the userdomains file and add
park_domain.com: username
Then you don\'t have to worry about it when next time you create a new account on this server.
 

AlaskanWolf

Well-Known Member
Aug 11, 2001
537
0
316
Fremont CA
Example: @enchanted-images.com email to be forwarded to @www-hosting.net
(*) add parked domain info as normal in WHM (enchanted-images.com ---> www-hosting.net)

(*) edit /var/cpanel/users/primary-username and add
DNS1=enchanted-images.com (DNS1 or DNS2 in that order if there is already existing DNSx)

(*) Then, you edit the /etc/valiases/enchanted-images.com file and add
*: wwwhost

(*) Confirm the /etc/userdomains information matches the primary sites user name
enchanted-images.com: wwwhost

(*) Confirm the /etc/localdomains information has the parked domain listed
enchanted-images.com

(*) test it by sending a email that already exists on www-hosting.net with enchanted-images.com, example

[email protected] now forwards to [email protected]

xxxxxxxxxxxxxxxxxxxxxxxxxx)
 

teck

Well-Known Member
Aug 10, 2001
164
0
316
this is a thread for the bookmarks.. now only if its done automatically.
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
I\'d be slightly cautious about this. We don\'t sem to get consistent results with every mailbox. The first mailbox in the email accounts list in cpanel at the primary domain seems to be working flawlessly, forwarding the mail from the same alias at the parked domain consistently.

The email accounts futher down the list don\'t seem to work consistently, delivering roughly half of the mail to the email account as it should be and half of it to the main user account.

Maybe someone may want to confirm this by sending out say 8 emails, each at approx. 1 hour interval, to a couple of email accounts [ as [email protected] ] and checking the results from the exim logs.
 

AlaskanWolf

Well-Known Member
Aug 11, 2001
537
0
316
Fremont CA
thats weird because i been sending random emails in the last 4 days since creating the alias and its work flawlessly on all of my accounts, top or bottom
 

BC

Member
Feb 15, 2002
12
0
301
Hi:
I'm a newbie to WHM/CPanel.

I have many accounts with many parked domains. Obviously, I'd like all mail for [email protected] be sent to the [email protected] mailbox.

I am amazed this doesn't happen automatically!

I've read this thread and have concluded people are performing several manual steps to make it work. Perhaps they are all needed so changes don't get wiped....

In my testing, I've learned that only one manual entry needs to be made in the /etc/userdomains file:

parkeddomain.com: master_account

where master_account is the owner name for masterdomain.com.

I'm hoping that this is it. Time will tell if it gets wiped out or not when CPanel updates.

If that's all, then how do I get WHM to add this entry automatically when parking the domain?

Thanks,
Brian C. Hammond
HATS Software
 

blackisha

Member
Apr 22, 2003
8
0
151
being able to check mail from [email protected]

This configuratoin seems to work flawlessly on a fresh WHM box, without adding all the /var/cpanel/users & localdomains and /etc/valiases. WHM seems to do this itself these days .. just park the domain.

What my users (damn users!) want is to be able to check mail for their parked domain, using the parked domain's email address. also have viewable all email send to the master address viewable in the parked domain.

Is this possible?

Thanks

cPanel.net Support Ticket Number:
 

khoonchee

Well-Known Member
PartnerNOC
Oct 2, 2002
134
0
166
Hi,

1.I have park the domain parkdomain.org on top of the original domain and create an email account for the parkdomain.org as [email protected].

When I try to send an email to [email protected] , I get the bounce back :

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

[email protected]
unknown local-part "andy" in domain "parkdomain.org"

Do I have to perform the above modification to the file ?


2. Can the email account [email protected] check the mail via webmail or POP3 ?


Thanks

cPanel.net Support Ticket Number:
 

jdawes

Well-Known Member
Aug 7, 2003
59
0
156
Australia
Could someone clarify how this works now. I've a number of parked domains setup and the email just seems to vaporise. Im not sure what mailbox it goes to be doesnt seem to be the one of the equivalent mailbox on the master domain>