Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Delete forwarder for non-existent domain

Discussion in 'General Discussion' started by paulkoan, Dec 8, 2010.

  1. paulkoan

    paulkoan Well-Known Member

    Joined:
    Nov 24, 2006
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    156
    Hello,

    I have a cpanel account that contains a forwarder like this:

    notarealaddress@gmail.com -> mainaccount


    Note that is a gmail address being forwarded to the main account address. Obviously gmail does not exist as a domain on the server, and now we need to delete it.

    There is no gmail.com in /var/valiases, so the error is:

    "Fatal! Write Failure: /etc/valiases/gmail.com. Ignore any messages of success this can only result in failure!"

    Creating this file doesn't help. Does anyone know where the forwarders are defined for cpanel - is there a file somewhere?

    Thanks,

    Paul
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    /etc/valiases/yourdomain.com

    In that file you'll find the forwarder you seek I believe.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. paulkoan

    paulkoan Well-Known Member

    Joined:
    Nov 24, 2006
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    156
    Thanks infopro

    I just quoted this part on its own to be clearer...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I apologize, I thought I understood this:
    What is the domain name on that account, have you checked the file for it at that location?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. paulkoan

    paulkoan Well-Known Member

    Joined:
    Nov 24, 2006
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    156
    Ooops.

    It was in the valias for the account domain. So you were right anyway!

    I did a grep across all of the valiases previously to make sure it wasn't there, but I am guessing that the '@' messed up the grep which is why it wasn't found.

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice