Be sure to connect via SSH to a second session in case there's a problem
Create the script file.
sudo nano /etc/ssh/login-notify.sh
# CLOUD_IMG: This file was created/modified by the Cloud Image build process | |
# iptables configuration for Oracle Cloud Infrastructure | |
# See the Oracle-Provided Images section in the Oracle Cloud Infrastructure | |
# documentation for security impact of modifying or removing these rule | |
*filter | |
:INPUT ACCEPT [0:0] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [463:49013] |
Be sure to connect via SSH to a second session in case there's a problem
Create the script file.
sudo nano /etc/ssh/login-notify.sh
#!/bin/bash | |
# clone a user | |
# | |
# original script obtained from https://unix.stackexchange.com/a/294885/346736 | |
# updated olduser_GROUPS line to properly match whole string instead of partial match. | |
# | |
# usage: | |
# if you named this as below then | |
# change to the directory and run this command |
Postfix is a Mail Transfer Agent (MTA) that can act as an SMTP server or client to send or receive email. There are many reasons why you would want to configure Postfix to send email using Google Apps and Gmail. One reason is to avoid getting your mail flagged as spam if your current server’s IP has been added to a blacklist.
In this guide, you will learn how to install and configure a Postfix server on Debian or Ubuntu to send email through Gmail and Google Apps.
Link to guide --> Configure Postfix to Send Mail Using Gmail