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.

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:
    6
    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
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    /etc/valiases/yourdomain.com

    In that file you'll find the forwarder you seek I believe.
     
  3. paulkoan

    paulkoan Well-Known Member

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

    I just quoted this part on its own to be clearer...
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    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?
     
  5. paulkoan

    paulkoan Well-Known Member

    Joined:
    Nov 24, 2006
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    6
    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
     
Loading...

Share This Page