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

Kent Brockman

Well-Known Member
Jan 20, 2008
1,222
39
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Hello guys. I have this situation. One domain in account A has 150 autoresponders configured. Yes, they have a lot of traffic. This company have changed their domain name, thus we transfered in, this other account from a third party cPanel to our server. The new account will be called B.

The client need that domain from account A become an alias of domain in account B, and that all those autoresponders from A, get migrated to account B, so that they pay for just one hosting account.

Is this possible?
When I export email aliases from cPanel, the file has some info about the piping to /usr/local/cpanel/bin/autorespond command. Can I simply copy the /.autorespond folder from account A to acocunt B? and then import the exported aliases? That should be enough? I just want to be 101% sure; I don't want to make a mess because it's a huge and VIP customer.

Hope you can advice soon.

Best regards
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
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.
 

Kent Brockman

Well-Known Member
Jan 20, 2008
1,222
39
178
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
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?
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
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!
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
The import process creates a /etc/valiases/domain.tld file with entries such as this:

Code:
[email protected]: "|/usr/local/cpanel/bin/autorespond [email protected] /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.