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.

Manually changing forwards on server

Discussion in 'General Discussion' started by gawotn, Aug 26, 2007.

  1. gawotn

    gawotn Registered

    Joined:
    Aug 26, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hello All-

    I have recently had the need to change all of my "forwarding to" addresses that I had previously set up in cpanel's "Forwarding Maintenance" feature under the "email" section.

    I logged into my server and went to etc/valiases/mydomain and copied the file to my desktop. Then I used notepad to mass change all of my forward to addresses. I copied
    the file back to my server and all of the changes showed up in cpanel + the new forwards worked.

    However, If I now want to add a new forward via cpanel, it gives me the following message:
    Fatal! Write Failure: /etc/valiases/mydomain. Ignore any messages of success this can only result in failure!

    and the new forward does not show up in the master list.

    I looked at the write permissions for the other files and they were all 644, so I re-cmoded
    my domain's file to that, but that still didn't work.

    I also restarted BIND, Apache, Exim & pop3 server in my WHM, but that also didn't change anything.

    Does anyone know of another file that also may need to be changed in order for this to work again? Or should I just delete the file and manually re-enter all of my forwards through cpanel again (not my first option, but will do if the only way to get this fixed again)?

    Thanks to anyone for your answer on this :)
     
  2. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,281
    Likes Received:
    37
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    On a Cpanel 11 machine with maildir, the files in /etc/valiases are chowned:

    user:mail

    so if the domain is abc.com and the account for abc.com is abc, the file /etc/valiases/abc.com is chowned abc:mail

    Might want to check who owns the file.

    Mike
     
  3. gawotn

    gawotn Registered

    Joined:
    Aug 26, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    On a Cpanel 11 machine with maildir, the files in /etc/valiases are chowned:

    user:mail

    so if the domain is abc.com and the account for abc.com is abc, the file /etc/valiases/abc.com is chowned abc:mail

    *** I looked and the files were just named after the domain name only (ie: abc.com)

    Might want to check who owns the file.

    *** I do, unless your talking about something else??

    Thanks for your reply.
     
Loading...

Share This Page