Sync VestaCP Domains with Rainloop
Posted: Fri Jul 28, 2017 4:37 am
Hi All,
I wanted to automate configuring Rainloop with my VestaCP domains and couldn't really find anything so I made a simple script to do a simple sync with VestaCP.
The script can be found here - https://github.com/chaosjester/VestaCP-to-Rainloop-Sync, feel free to fork and expand on it. I am sure there are "better" or "easier" ways of doing this, but with my limited scripting skills this is how I chose to do this.
What it does do:
Any comments or suggestions are welcomed.
I wanted to automate configuring Rainloop with my VestaCP domains and couldn't really find anything so I made a simple script to do a simple sync with VestaCP.
The script can be found here - https://github.com/chaosjester/VestaCP-to-Rainloop-Sync, feel free to fork and expand on it. I am sure there are "better" or "easier" ways of doing this, but with my limited scripting skills this is how I chose to do this.
What it does do:
- Pull user list then use list to find all domains
- Look in Rainloop domain configuration directory and create a config file if none exists
- Logs creation or skip to file
- Evaluate if the user has gmail as a mail DNS template and skip
- Evaluate if the user has no mail domains configured and skip
- Allow users to change POP/IMAP passwords within rainloop
Any comments or suggestions are welcomed.