Skip to content

Instantly share code, notes, and snippets.

@Nuukem
Nuukem / README.md
Last active November 25, 2019 17:48
Configure Postfix to Send Mail Using Gmail

Configure Postfix to Send Mail Using Gmail

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

@Nuukem
Nuukem / clone-user.sh
Last active November 25, 2019 19:19
Clone Linux User (copy user, based on another one)
#!/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
@Nuukem
Nuukem / README.md
Last active November 26, 2019 04:38
Send Pushover notification when user connects via SSH

Send Pushover notification when user connects via SSH

Guide pulled from here

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
@Nuukem
Nuukem / rules.v4
Created March 1, 2022 18:04 — forked from mrladeia/readme.md
Iptables to Oracle Cloud port 80 and 443 open
# 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]