set FQDN for hostname
yum -y update
yum install epel-release
yum install wget curl rsync gcc -y
wget http://software.virtualmin.com/gpl/scripts/install.sh -O /tmp/virtualmin-install.sh
cd /tmp
#Add mysql repository to your centos 7
rpm -Uvh http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
yum install mysql-server -y
chmod +x /tmp/virtualmin-install.sh
bash /tmp/virtualmin-install.sh
done
login to virtualmin using https://<ip>:10000
Install roundcube
https://www.virtualmin.com/documentation/id%2Cwebmail_and_virtualmin
Make sure to enable mysql in website settings or See here
http://urgenphp.blogspot.com/2017/07/part-2-virtualmin-roundcube.html
yum -y update
yum install epel-release
yum install wget curl rsync gcc -y
wget http://software.virtualmin.com/gpl/scripts/install.sh -O /tmp/virtualmin-install.sh
cd /tmp
#Add mysql repository to your centos 7
rpm -Uvh http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
yum install mysql-server -y
chmod +x /tmp/virtualmin-install.sh
bash /tmp/virtualmin-install.sh
done
login to virtualmin using https://<ip>:10000
- Login to Virtualmin, and click on Webmin at the top of the left menu.
- Open the Webmin category, click on Usermin Configuration, then on Usermin Module Configuration, and finally on Read Mail.
- On the form that appears, change the Mail storage format for Inbox to Maildir.
- Click Save.
cp /etc/postfix/main.cnf /etc/postfix/main.cnf.BAK
sudo postconf -e 'smtp_tls_security_level = may'
sudo postconf -e 'smtpd_tls_security_level = may'
sudo postconf -e 'smtp_tls_note_starttls_offer = yes'
sudo postconf -e 'smtpd_tls_security_level = may'
sudo postconf -e 'smtp_tls_note_starttls_offer = yes'
service saslauthd restart
https://www.virtualmin.com/documentation/id%2Cwebmail_and_virtualmin
Make sure to enable mysql in website settings or See here
http://urgenphp.blogspot.com/2017/07/part-2-virtualmin-roundcube.html
Install a Roundcube Password plugin in Virtualmin
- Install the Roundcube script usually from Virtualmin dashboard by selecting server and then going into Install Scripts->Roundcube from the Available Scripts and install it the way you require by selecting the sub folder you wish to install
- Now Log into the server over SSH with the virtualmin username and password you created during creation of the virtual server. Go into the sub directory you just installed Roundcube script into. We are assuming you selected folder name as roundcube .Now navigate into path from server via SSH as
cd /home/USERNAME/public_html/roundcube/ - Edit config/main.inc.php, and change this line:
$rcmail_config['plugins'] = array('virtuser_file');To this line:$rcmail_config['plugins'] = array('virtuser_file', 'password'); - Setup the password plugin config file with the help of this command in SSH in the roundcube folder:
cp plugins/password/config.inc.php.dist plugins/password/config.inc.php - Enable Virtualmin driver. To do that, go ahead and edit “plugins/password/config.inc.php”, and change this line:
- Compile C wrapper with this command ,If gcc is not installed,install it by using command if you are in Centos
yum install gccand then typegcc -o plugins/password/helpers/chgvirtualminpasswd plugins/password/helpers/chgvirtualminpasswd.c - Permissions are required by roundcude password plugin to access and change virtualmin functions so enter
chown root.VIRTUAL_SERVER_GROUP_NAME plugins/password/helpers/chgvirtualminpasswdstrip plugins/password/helpers/chgvirtualminpasswdchmod 4550 plugins/password/helpers/chgvirtualminpasswd - Fix syntax error in virtualmin.php driver by editing “plugins/password/drivers/virtualmin.php”, and jump to
line 54. You’ll see a line with just “break”. That line should end with a semicolon (;) character.The line should look like this:break; - You should now be able to log into RoundCube, go into Settings -> Password, and change your user’s roundcube password
$rcmail_config['password_driver'] = 'sql';
To this:
$rcmail_config['password_driver'] = 'virtualmin';
No comments:
Post a Comment