Note: Recomened RAM for Mail Package installation is minimum 1GB
ee stack install mail
Sample output:
^_^[[email protected]:~]# ee stack install mail
Installing Dovecot, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
ntp dovecot-gssapi dovecot-pgsql dovecot-sqlite dovecot-ldap dovecot-solr
ufw
The following NEW packages will be installed:
dovecot-core dovecot-imapd dovecot-lmtpd dovecot-managesieved dovecot-mysql
dovecot-pop3d dovecot-sieve
0 upgraded, 7 newly installed, 0 to remove and 106 not upgraded.
Need to get 2,437 kB of archives.
After this operation, 7,370 kB of additional disk space will be used.
[...]
.
.
.
[...]
Setting up Postfix, please wait...
Generating self signed certificate for Postfix, please wait...
Setting up Dovecot, please wait...
Generating self signed certificate for Dovecot, please wait...
Setting up Amavis, please wait...
Setting up ViMbAdmin, please wait...
Setting up Roundcube, please wait...
Setting up Sieve rules, please wait...
Executing service nginx restart, please wait...
Executing service postfix restart, please wait...
Executing service dovecot restart, please wait...
Executing service amavis restart, please wait...
Git commit on /etc/nginx, please wait...
Git commit on /etc/postfix, please wait...
Git commit on /etc/dovecot, please wait...
Git commit on /etc/amavis, please wait...
Configure ViMbAdmin: https://example.com:22222/vimbadmin
Security Salt: UpRBT4LLJwfFcZTNOg0CJkDeJSnSLPYsUylCFzrILcoAreOPRhVwqqipjTCltOBw
Successfully installed mail server packages
Above command install all the require packages for mail server.
ViMbAdmin Setup
Now you need to complete ViMbAdmin setup by accessing following url
https://example.com:22222/vimbadmin
and Copy Security salt from terminal to browser
Security Salt: UpRBT4LLJwfFcZTNOg0CJkDeJSnSLPYsUylCFzrILcoAreOPRhVwqqipjTCltOBw
Paste that into webpage and click on activate my account
Now you can create virtual domains and mailboxes in your mail server.
NOTE: If you are getting this error: Fatal error: session_start(): Failed to initialize storage module: memcache
then to resolve this use this FAQ
Accessing roundcube
Webmail can be accessed using
http://webmail.example.com
Setting Up Oragnization Identity
vim /var/www/22222/htdocs/vimbadmin/application/configs/application.ini +250
Now set the following details as per your Organization:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Identity
identity.orgname = "Example Limited"
identity.name = "Example Support Team"
identity.email = "[email protected]"
identity.autobot.name = "ViMbAdmin Autobot"
identity.autobot.email = "[email protected]"
identity.mailer.name = "ViMbAdmin Autobot"
identity.mailer.email = "[email protected]"
identity.sitename = "ViMbAdmin"
identity.siteurl = "https://www.example.com/vimbadmin/"
;;
;; All mail and correspondence will come from the following;;
server.email.name = "ViMbAdmin Administrator"
server.email.address = "[email protected]"