The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Parked Domains - Forwarding Emails

Discussion in 'E-mail Discussions' started by WeinBar, Oct 19, 2001.

  1. WeinBar

    WeinBar Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    79
    Likes Received:
    0
    Trophy Points:
    6
    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 info@abc.com, it goes to the default address on def.com, not to the account info@def.com. If I edit the /etc/valiases file for abc.com, I could add in:

    info@abc.com: info@def.com

    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?
     
  2. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  3. WeinBar

    WeinBar Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    79
    Likes Received:
    0
    Trophy Points:
    6
    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]
     
  4. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  5. WeinBar

    WeinBar Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    79
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
  6. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    I know, it requires some manual tweaking - but these are the little things we live with until the world is a perfect place. :)
     
  7. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  8. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    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 ?
     
  9. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    When u create a new account in WHM, it will remove the line you add for your parked domain.
     
  10. jameshsi

    jameshsi Well-Known Member

    Joined:
    Oct 22, 2001
    Messages:
    347
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  11. AlaskanWolf

    AlaskanWolf Well-Known Member

    Joined:
    Aug 11, 2001
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Fremont CA
    works great (after you add the domain in WHM under park)
     
  12. SplashHost.com

    SplashHost.com Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    Ok.. im lost. How do i get this to work step by step.
     
  13. AlaskanWolf

    AlaskanWolf Well-Known Member

    Joined:
    Aug 11, 2001
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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

    garyp@enchanted-images.com now forwards to garyp@www-hosting.net

    xxxxxxxxxxxxxxxxxxxxxxxxxx)
     
  14. teck

    teck Well-Known Member

    Joined:
    Aug 10, 2001
    Messages:
    164
    Likes Received:
    0
    Trophy Points:
    16
    this is a thread for the bookmarks.. now only if its done automatically.
     
  15. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    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 emailaccount@parkeddomain.com ] and checking the results from the exim logs.
     
  16. AlaskanWolf

    AlaskanWolf Well-Known Member

    Joined:
    Aug 11, 2001
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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
     
  17. BC

    BC Member

    Joined:
    Feb 15, 2002
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Hi:
    I'm a newbie to WHM/CPanel.

    I have many accounts with many parked domains. Obviously, I'd like all mail for abc@parkeddomain.com be sent to the abc@primarydomain.com 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
     
  18. blackisha

    blackisha Member

    Joined:
    Apr 22, 2003
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    being able to check mail from user@parked.domain.com

    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:
     
  19. khoonchee

    khoonchee Well-Known Member
    PartnerNOC

    Joined:
    Oct 2, 2002
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    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 andy@parkdomain.org.

    When I try to send an email to andy@parkdomain.org , 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:

    andy@parkdomain.org
    unknown local-part "andy" in domain "parkdomain.org"

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


    2. Can the email account andy@parkdomain.org check the mail via webmail or POP3 ?


    Thanks

    cPanel.net Support Ticket Number:
     
  20. jdawes

    jdawes Well-Known Member

    Joined:
    Aug 7, 2003
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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>
     
Loading...

Share This Page