Install Mail service
Learn how to install the Mail service with RPM.
Installation options
You can install the Mail service in two different ways:
- RPM package
- Containerization
To configure the censhare Server for the Mail service, see Mail service.
Installation via RPM
censhare provides the Mail Service as a Linux service in an RPM package.
Follow the steps below to install the RPM package.
Download RPM package
Download the required version of the Mail Service from the RPM package to your local computer.
-> https://rpm.censhare.com/tools-release-rpm/
censhare-core-mail-0.4.4-0.noarch.rpm
Copy the RPM to the censhare Server as follows:
-> scp censhare-core-mail-0.4.4-0.noarch.rpm root@YOUR_SERVER_IP:location
Install RPM package
Install the RPM package on the censhare Server as follows:
[root@your-censhare server core- mail] # yum install censhare-core-mail-0.4.4-0.noarch.rpm #install version of 0.0.4
Output:
Examining censhare-core-mail-0.4.4-0.noarch.rpm: censhare-core-mail-0.4.4-0.noarch
Marking censhare-core-mail-0.4.4-0.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package censhare-core-mail.noarch 0:0.4.4-0 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================
Package Arch Version Repository Size
========================================================================================================================
Installing:
censhare-core-mail noarch 0.4.4-0 /censhare-core-mail-0.4.4-0.noarch 904
Transaction Summary
========================================================================================================================
Install 1 Package
Total size: 904
Installed size: 904
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : censhare-core-mail-0.4.4-0.noarch 1/1
Verifying : censhare-core-mail-0.4.4-0.noarch 1/1
Installed:
censhare-core-mail.noarch 0:0.4.4-0
Complete!
Systemd Service
To start and stop the service, a systemd unit censhare.core-mail.service is created. The service can be controlled in the following ways:
systemctl [enable|disable] censhare.core-mail.service
- To enable/disable autostart for the service. For example,systemctl enable core-mail
enables the autostart of the Mail Service during system startup.systemctl [start|stop] censhare.core-mail.service
- To start/stop the service.systemctl status censhare.core-mail.service
- To see the status of the service and find out if it has started, is actively running, and enabled/disabled for auto-start.
Check Mail Service
Check that the Mail Service is running as a daemon service in the background:
[root@your-censhare server core- mail]# systemctl status censhare.core-mail.service
censhare.core-mail.service - Censhare Mail service.
Loaded: loaded (/usr/lib/systemd/system/censhare.core-mail.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2022-05-03 12:59:28 CEST; 45s ago
Main PID: 7188 (java)
CGroup: /system.slice/censhare.core-mail.service
└─7188 /usr/bin/java -jar /opt/censer/core-mail/core-mail.jar
Next steps
Set up the Mail service on the censhare Server
Register the Mail service application for OAuth 2.0