Need some help.
I’m moving from a cPanel to Interworx. On cPanel I have nearly 200 email forwarders into a single email. It looks in Interworx they are called Aliases. Is there a way to import the forwarders from a file (csv for example) or do I need to type-in each one into Interworx?
Thanks
They should be imported I would say, but if not then it would be one by one.
Well…took the opportunity to learn about Interworx scripting. Came up with what I needed:
#!/bin/bash
while read p; do
echo $p
siteworx -u -n --login_domain=[domain] --controller EmailAlias -a add --username $p --forwardsto [mailbox]
done <aliases.txt
Where [mailbox] and [domain] (without brackets) are just that and aliases.txt contains the aliases. For example:
sales
information
webmaster
etc...
Second day using Interworx, and loving it.
Disclaimer: Im not a programmer. I just know how to read. So don’t blame if there are more [you name it here] ways of doing it!!!
d2d4j
April 16, 2015, 1:41am
4
Hi hampilot
Many thanks for sharing.
I never thought if CLI but to be honest, I have never had this issue to resolve.
It looks a good resolution though.
Do you mind me asking, did the cpanel import not bring the forwarders across correctly. I believe it should have
Many thanks
John
John:
Didnt try cPanel import. Plan is to start from scratch. However, wanted to import forwarders instead of typing in one at a time.
Regards