Microsoft Exchange Server 2016 server roles

  • Mailbox Server Role: a multi-role server that combines the Mailbox Server and Client Access Server roles from Exchange 2013. It is similar to the combination of Exchange 2010 Mailbox, Client access, and hub transport server role.
  • Edge Transport Server Role: Handles both inbound and outbound email from the Internet. This server role is placed in the perimeter DMZ network, and not on Active Directory Domain joined servers. It creates a security layer to protect the Exchange servers by implementing several filtering solutions such as spam filtering, content filtering, connection filtering, and mail rules.

Read more about 2007/2010 version here

Read more about version 2013 here

Fix “Failed to load SELinux policy. Freezing”

Cause: You have input a wrong value to /etc/selinux/config file

Solution: on the boot menu, edit the boot configuration and add “selinux=0” to the boot command. In Redhat, it can be done in the following way:

  1. Boot the server and press “e” to edit the boot configuration
  2. Go to the main command which usually starting with “linux16”, then add “selinux=0” as on of the parameters
  3. Press CTRL+X to boot

Reference screenshot on step 2

Push ssh login notification to slack

The following script will help you post an alert when someone ssh to your Linux server

  1. Create a slack webhook
  2. Create a sshrc script as bellow
#------Push notification-------------------------------------#
if [ "$alert" = 1 ];then
  now=$(date +"%T")
  co=$(curl --fail --silent --show-error -X POST$ip?fields=countryCode | jq -r .countryCode | perl -ne 'print lc') 

  if [ "$co" = null ];then
  curl -X POST --data-urlencode 'payload={"channel": "alerts", "username": 
                 "SSH", "text": "'"$USER"' just logged in on '"$lhn ($host)"' 
                 at '"$now"' from '"$ip"' '"$flag"' ", "icon_emoji": ":ghost:"}' 
        >/dev/null 2>&1

vSphere Suite 6

The products in the vSphere Suite

The two core components of vSphere are VMware ESXi® and VMware vCenter Server®

VMware ESXi

The core of the vSphere product suite is the hypervisor, which is the virtualization layer that serves as the foundation for the rest of the product line.

VMware ESXi is the next generation of the VMware virtualization foundation. ESXi installs and runs without the Linux-based Service Console.

Read the rest of this entry

Docker – Part 4 – Manage data in docker containers

Mount a host directory as data volume

You can mount a directory from host to a container

# Create a directory on the host
[root@dockervn ~]# mkdir -p /var/docker/disk01

# Run a container with mounting /var/docker/disk01 to /mnt
[root@dockervn ~]# docker run -i -t -v /var/docker/disk01:/mnt centos /bin/bash
[root@2985e50c258f /]# df -h
Filesystem Size     Used     Avail     Use%     Mounted on
/dev/mapper/docker-253:0-17174473-8dd986c417c6d     10G     241M     9.8G     3%     /
tmpfs 921M 0     921M 0%     /dev
tmpfs 921M 0     921M 0%     /sys/fs/cgroup
/dev/mapper/centos-root                  14G      1.9G 13G      14%     /mnt
shm 64 M 0 64M      0%     /dev/shm

Read the rest of this entry