This article describes how to set custom Webmail skin for each domain.
Solution
In order to have a custom skin for each domain, please take the following steps:
1. Visit our website https://www.axigen.com and download the following tools from Downloads -> Tools menu:
cli2.py (You should always check that you have the last version of this file)
list-accounts.py
set-bulk-accounts.py
Place the 3 files into the same folder.
We will use the set-bulk-accounts.py script to set a custom skin for a list of users and we will use list-accounts.py script in order to create a file containing all the accounts from a domain.
2. Make the scripts executable:
chmod +x list-accounts.py
chmod +x set-bulk-accounts.py
3. Issue the command:
./list-accounts.py file=file1.txt domains=<domain name> host=<Axigen IP address> port=7000where: file1.txt is the file where the accounts will be listed
<domain name> is the name of the first domain
<Axigen IP address> is the IP of the Axigen machine
Repeat this step for every domain using a different file name for each domain.
4. Now we have all the accounts from the server listed in different files based on their domains. Next we will use the second script in order to set different skins for each domain. We will use in our exemplification one of the default skins that comes with Axigen: "classic" skin. If you want to create your own custom skin with different logos and so on please read this article.
The following command will set the "classic" skin for all the accounts listed in file1.txt file which we previously created.
./set-bulk-accounts.py file=file1.txt host=<Axigen IP address> port=7000 webmaildata:skin=classicRepeat this step for each file created in step 3 containing the users for each domain. Also change the skin name from "classic" to the skin desired.
1. Visit our website https://www.axigen.com and download the following tools from Downloads -> Tools menu:
cli2.py (You should always check that you have the last version of this file)
list-accounts.py
set-bulk-accounts.py
Place the 3 files into the same folder.
We will use the set-bulk-accounts.py script to set a custom skin for a list of users and we will use list-accounts.py script in order to create a file containing all the accounts from a domain.
2. Make the scripts executable:
chmod +x list-accounts.py
chmod +x set-bulk-accounts.py
3. Issue the command:
./list-accounts.py file=file1.txt domains=<domain name> host=<Axigen IP address> port=7000where: file1.txt is the file where the accounts will be listed
<domain name> is the name of the first domain
<Axigen IP address> is the IP of the Axigen machine
Repeat this step for every domain using a different file name for each domain.
4. Now we have all the accounts from the server listed in different files based on their domains. Next we will use the second script in order to set different skins for each domain. We will use in our exemplification one of the default skins that comes with Axigen: "classic" skin. If you want to create your own custom skin with different logos and so on please read this article.
The following command will set the "classic" skin for all the accounts listed in file1.txt file which we previously created.
./set-bulk-accounts.py file=file1.txt host=<Axigen IP address> port=7000 webmaildata:skin=classicRepeat this step for each file created in step 3 containing the users for each domain. Also change the skin name from "classic" to the skin desired.