Iredmail WHMCS Module Installation Guide & Documentation
Contents
PRE-INSTALLATION
CREATE MYSQL USER ACCESS ON Iredmail
Connect to MySQL:
mysql -uroot -p
Create a new user:
CREATE USER 'whmcsman'@'**WHMCS-IP**' IDENTIFIED BY 'PASSWORD';
Grant new user access to Iredmail Database:
GRANT SELECT , INSERT , UPDATE , DELETE ON `*Iredmail DB*` . * TO '**whmcsman'@'WHMCS-IP**';
Logout of MySQL
exit
FIREWALL: ALLOW WHMCS REMOTE MYSQL ACCESS:
On Iredmail server, Add a new firewall rule to allow accessto MySQL server only from WHMCS server IP:
/sbin/iptables -A INPUT -i eth0 -s **WHMCS-Server IP** -p tcp --destination-port 3306 -j ACCEPT
Save Firewall rule
service iptables save
Setup Guide for Module
How to download the module files?
Please follow the link to download the module https://whmcsglobalservices.com/iredmail-for-whmcs/
How to upload the module files?
- Extract the downloaded module folder
- Under Modules folder, you will find folder i.e. iredmail.
- You need to upload that servers folder to WHMCS directory (whmcs_root/modules/servers/). It will copy the required module files and nothing will be over written.
WHMCS CONFIGURATIONS
SETTING Iredmail SERVER IN WHMCS
Setup > Products/Services > Servers >
Afterwards press 'Add New Server'.
Create Server
Set ireadmail Database User & Database password, in WHMCS Admin (don’t forget to add the new server in a server group):.
- Server Name : Enter server name for ireadmail.
- Hostname : Enter your Iredmail DB hostname.
- IP Address : Enter IP Address of your Remote DB.
- Type : Choose Iredmail
- Username : Enter Iredmail Database username
- Password : Enter Iredmail Database password
- Hash key field : Enter Iredmail Database name
- Port Number 3306
Create Server Group
After setup server you have to configure server group.
Now you need to create a new group for your server. For that purpose press 'Create New Group'.
Assign Server to Group
Enter name, click on your previously created server, press 'Add' then 'Save Changes'.
Creating Products / Configuration
Check / Create Product Group
First create a new Email Hosting Product group in WHMCS:
Setup > products/services > products/services > Create a New Group
Create a Ired Email Product
This will be used to create Ireadmail account & Domain
Setup > products/services > products/services > Create a New Product
Configure Product Module Setting
You may set each product with different settings and sell different type of products like you can define your own setting in module setup or allow user to choose to use account limit & size.
- Module Name: Choose the module name IredMail from the drop-down.
- Server Group : Choose the previously created server group.
- Manage Quota By : Admin or User.Admin- As the name suggests Quota will be managed by Admin from admin area like the What will be the quota type - Custom or Unlimited,what value will be assigned to new user by default, Number of users who can use the product.User- Quota will be managed by user from the client area.User will be able to choose the quota value and number of users as per their need and they will be charged based on their configuration, price will be set by admin.
- Domain Quota Type: Custom Or Unlimited ( Visible only if the Quota is managed by Admin)
- Domain Quota Size : MB,GB, TB
- Account Size: Enter the value of Quota like 512,1024 etc..( Visible only if the Quota is managed by Admin & Domain Quota type is custom.)
- Default Quota of new Users:Enter the value of Quota which will be assigned to user by default.
- Account Limit: Enter the number of users.
- Module Licensekey: Enter License Key
In setting for mail accounts enter the values as shown in the picture.
- MTA Transport: True.
- SBD: true.
- Password Scheme : SSHA512.
- Password Prefix: True.
- Append Timestamp : True
- Hashed: True
- Prepend Domain: True
- Web Mail URL: Enter WebMail URL
Product Configuration
- Go to Setup > Products/Services > Configurable Options and click the edit icon next to the option group you want to modify.
- At the top of the page you can edit the name, description and assigned products.
- A new configuration option can be created and the existing one can be modified with edit button.
- Click on edit button or add new button.A new window will appear.
- Enter the option name or modify the existing one.
- Option Type:Quantity
- Minimum Quantity Required: Enter value for minimum quantity
- Maximum Allowed:Enter the maximum limit.
- Pricing: enter the price.
Client Area
IRedMail allows your customers to create email accounts from your WHMCS client area.This is how it looks like in the client area.
Enter the number of users, user Quota & domain name while ordering the product (In case the product is managed by admin then customer only needs to enter domain name).
Once the order will be accepted, the product will appear as active.
Click on the product and it will look like this.
Domain- there are 3 options under this tab.
Add Email- Customer can create the email accounts here. They can not exceed the limits ( i:e number of users & the quota value). They will be able to manage the accounts from here like:
Change password Forward the email of this account to a new account. Delete the account Disable it
Web Mail- Open Web Mail.
Catch -All- Enter the email address where you want to get spam mails.
Click on Add email fill the required information and a new email account will be created like this.
Configurable Options:
User can check the configurations here like the number of users.
Additional Information:
User can check the domain here.
Upgrade/ Downgrade- Customer can upgrade and down grade the product by using this option.
- Upgrade/Downgrade- is used when user wants to upgrade the product.
- Upgrade/Downgrade Options – is used when user wants to change the number of users.