Skip to main content

How can I copy autoresponders from one cPanel account to another one?

Comments

7 comments

  • cPanelMichael
    Hello Kent, The export option for forwarders is intended for use with the same account username. You can still use it to import the autoresponder aliases, but you'll also need to modify the /etc/valiases/aliased-domain.tld file after the import completes to change the account username (you could likely use a "replace" command to make this task easier). Also, ensure the files you copy to the .autorespond directory on the new account have the correct ownership values. Thank you.
    0
  • Kent Brockman
    Great. Thanks Michael. The account B will hold an addon domain of A. So that, I have to export the aliases from A and download a copy of .autorespond folder. Then Delete A account. Create an addon domain, A, on B account. Then upload the files to .autorespond folder, chown all of it with B's user:group, then import the aliases using the mass import feature. Is this correct or am I missing something?
    0
  • cPanelMichael
    Hello, That's correct, except you'd also need to modify /etc/valiases/aliased-domain.tld after importing the email aliases in cPanel so that it reflects the new account username. It's also a good idea to make a backup of both accounts before making any changes in-case something goes wrong. Thanks!
    0
  • Kent Brockman
    Ok, but having the target domain previously loaded as an addon domain wouldn't suffice?
    0
  • cPanelMichael
    The import process creates a /etc/valiases/domain.tld file with entries such as this:
    1234@cptest.tld: "|/usr/local/cpanel/bin/autorespond 1234@cptest.tld /home/cptest/.autorespond"
    Thus, the last part of the entry ("/home/cptest/.autorespond") needs to reflect the username of the new account instead of the username of the account it was exported from. Thank you.
    0
  • Kent Brockman
    OOHHHHHH OK OK OK. So, I can replace the usernames in the exported textfile, then import it and I should be ok, right?
    0
  • cPanelMichael
    OOHHHHHH OK OK OK. So, I can replace the usernames in the exported textfile, then import it and I should be ok, right?

    Yes, that's correct. Thanks!
    0

Please sign in to leave a comment.