Results 1 to 4 of 4

Thread: restoring e-mail forwarders form cpbackup?

  1. #1
    Member
    Join Date
    Jun 2003
    Posts
    24

    Question restoring e-mail forwarders form cpbackup?

    I had to restore a couple of accounts on my server form cpbackups today and now I'm noticing that e-mail forwarders were not restored on some accounts.

    I have a couple of older cpbackups of the accounts but I'm unable to find any files in the backups that contain the forwarders.


    How do i restore e-mail forwarders only form a cpbackup (what file do i copy to the users account)?


    Any help is appreciated!

  2. #2
    Member
    Join Date
    Mar 2006
    Posts
    379

    Default

    there is an option in the WHM Backup > restore backup function that shows " Restore Mail Config", try that out.
    Tweakservers | Professional Server Setup & Security Hardening
    Authorised SmarterTools Reseller, SSL Certificate & PRTG Network Monitor

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge Messiah's Avatar
    Join Date
    Jul 2006
    Posts
    22

    Default

    Mail forwarders are listed in text files contained within /etc/valiases/. For example, an alias blahblah@google.com that forwards to postmaster@google.com would be recorded as the following entry in /etc/valiases/google.com
    blahblah@google.com: postmaster@google.com

    So basically, all the forwarders for example.com are contained within /etc/valiases/example.com. The entire valiases directory is backed up with cpbackups. You'll need to extract the tarball then copy the domain's valias file to /etc/valiases/. Here's an example:
    I'll pretend you're restoring forwarders for example.com, and that your backup directory is /backup, and that you are restoring the daily backup:
    tar -xzf /backup/cpbackup/daily/dirs/_etc_valiases.tar.gz
    cp -p /backup/cpbackup/daily/dirs/etc/valiases/example.com /etc/valiases/example.com

    You'll be prompted to overwrite. Confirm. That should do it.

  4. #4
    Member
    Join Date
    Jun 2003
    Posts
    24

    Default

    Thanks Messiah, found the forwarders !!

    Strange though, that only some accounts were affected.

Similar Threads

  1. PHP Form Mail script does not send mail
    By fr0gman in forum New User Questions
    Replies: 11
    Last Post: 12-08-2007, 10:48 PM
  2. restoring backups from cpbackup on /backup drive
    By radical in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 11-10-2005, 12:00 PM
  3. Mail forwarders
    By azcappy in forum New User Questions
    Replies: 1
    Last Post: 05-27-2005, 04:14 PM
  4. Restoring from cpbackup.tar
    By meganet in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 03-31-2005, 08:55 AM
  5. Problem with e-mail and form mail script
    By dappadan in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 02-10-2005, 03:02 AM