Parked Domains - Forwarding Emails

TCSLEA

Active Member
Oct 29, 2003
36
0
156
Austin, T E X A S
Mine still doesn't work...

I've a number of parked domains setup and the email just seems to vaporise.
If it's like mine, it's going to the default email account for that domain....

Example:

Domain: SwizzleStickCollectors.com
Username: ssc

Check the mailbox for [email protected] (the password is the password for the account) and I bet all that missing email is there.

Having said that, I've also followed everyone's advice as far as making sure the various files have the correct entries (they all did, actually, pretty much without me needing to edit any of them) and it STILL does not work for me.... *sigh*

cPanel.net Support Ticket Number: 32640
 

jdawes

Well-Known Member
Aug 7, 2003
59
0
156
Australia
that appears to be the case. ive just been setting up the forwards manually, not that many to setup usually which is lucky. it would be good if there was an option to 'map' the parked domains email accounts when adding it.
 

bradandersen

Active Member
Oct 6, 2003
42
0
156
Parked Domains and Email

Thanks, I tried the steps above and they didn't work. It also made little sense. Can someone please verify my steps or correct me?

So if I have "main.domain" and "parked.domain":

Example: @parked.domain email to be forwarded to @main.domain

(*) add parked domain info as normal in WHM or CPanel (parked.domain --> main.domain)

Done

(*) edit /var/cpanel/users/main.domain-username and add
DNS1=parked.domain (DNS1 or DNS2 in that order if there is already existing DNSx)

This gets done automatically and there is a DNSx entry for every parked domain.

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

Is wwwhost the username of the main.domain or should it be the main.domain (e.g. *: main.domain or *: main.domain-username)

(*) Confirm the /etc/userdomains information matches the primary sites user name
parked.domain: wwwhost

Again is wwwhost the username of the main.domain or should it be the main.domain (e.g. parked.domain: main.domain or parked.domain: main.domain-username)

(*) Confirm the /etc/localdomains information has the parked domain listed
parked.domain

This gets done automatically

(*) test it by sending a email that already exists on main.domain with parked.domain, example

[email protected]in now forwards to [email protected]in

I've tried all combinations and everything just went to the default accounts.

Thanks for the help,
Brad
 

tawfiq

Active Member
Mar 13, 2004
37
0
156
i tried all suggestions in this thread and its still not working... something must have changed in cpanel since those posts were made.

any idea how to acomplish this now? have all mail for the parked domain forwarded to the same mail account on the primary domain?
 

ghough

Member
Jun 26, 2004
8
0
151
Australia
Doesnt seem to work in latest version - Whats wrong

Hi,
Hopefully someone can help. I have version 9.4.1-RELEASE 64 but everything keeps defaulting to main account when I follow the instructions.
 

cPDan

cPanel Staff
Staff member
Mar 9, 2004
724
15
243
To alias domains in email ([email protected] to goto [email protected]in instead of the default address), and do it autmatically when you create an email account for main.domain, do this:

put this in /etc/exim.conf right under "begin router"

alias_domain_file:
driver = redirect
domains = lsearch;/etc/aliasdomains
data = $local_part@${lookup {$domain} lsearch {/etc/aliasdomains}}

then in /etc/aliasdomains add these entries foreach aliased domain you want:

parked.domain: main.domain
parked2.domain: main.domain
parked3.domain: main2.domain
 

cPDan

cPanel Staff
Staff member
Mar 9, 2004
724
15
243
cpdan said:
To alias domains in email ([email protected] to goto [email protected]in instead of the default address), and do it autmatically when you create an email account for main.domain, do this:

put this in /etc/exim.conf right under "begin router"

alias_domain_file:
driver = redirect
domains = lsearch;/etc/aliasdomains
data = $local_part@${lookup {$domain} lsearch {/etc/aliasdomains}}

then in /etc/aliasdomains add these entries foreach aliased domain you want:

parked.domain: main.domain
parked2.domain: main.domain
parked3.domain: main2.domain
http://exim.org/exim-html-4.40/doc/html/spec_11.html#IX875

So it should be

Code:
alias_domain_file:
    driver = redirect
    domains = lsearch;/etc/aliasdomains
    data = ${quote_local_part:$local_part}@${lookup {$domain} lsearch {/etc/aliasdomains}}
 

aarmstrong

Member
Jun 14, 2004
18
0
151
Is there any possibility of this being added into the cpanel/whm interface so we don't have to manually edit the file every time we need to do this?
 

aarmstrong

Member
Jun 14, 2004
18
0
151
It seems that something has happened and something in the system has altered the exim.conf file and removed the aliasdomains section I added therefore clobbering my configuration. Is there a specific file I should add these changes to so that when exim is rebuilt it will keep these changes.
 

simoneast

Member
Mar 26, 2003
8
0
151
*thread bump* :cool:

I would really like this feature to somehow be implemented - even if WHM is patched so that manual entries aren't lost when configuration is updated.

At the moment automatic forwarding from a parked domain sounds impossible. Most suggestions given don't seem to be reliable since changes to config files are lost later. There's no point using a parked domain for email if it's not to be relied upon.

...What about procmail? Is there some rule you could setup there to auto-forward mail without specifying individual accounts (which is unweildy and prone to inconsistencies).

< Simon >