Skip to content

Instantly share code, notes, and snippets.

😊
Working hard

Francesco fvigotti

😊
Working hard
Block or report user

Report or block fvigotti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fvigotti
fvigotti / docker.service
Created Sep 13, 2018
graceful docker/kubernetes shutdown sample
View docker.service
[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.com
After=network.target docker.socket
Wants=docker.socket
[Service]
Type=notify
Environment=GOTRACEBACK=crash
@raymadrona
raymadrona / 01_install_xtrabackup.sh
Created Jan 23, 2018
Backup with Percona XtraBackup
View 01_install_xtrabackup.sh
#!/bin/bash
# Install xtrabackup package.
# https://www.percona.com/doc/percona-xtrabackup/LATEST/installation/apt_repo.html
# On production server must be installed in the slave.
wget https://repo.percona.com/apt/percona-release_0.1-4.$(lsb_release -sc)_all.deb
sudo dpkg -i percona-release_0.1-4.$(lsb_release -sc)_all.deb
@zmwangx
zmwangx / Postfix: sender-dependent SASL authentication.md
Last active Sep 12, 2019
Postfix: sender-dependent SASL authentication — relay to multiple SMTP hosts, or relay to the same host but authenticate as different users (e.g., two Gmail accounts)
View Postfix: sender-dependent SASL authentication.md

This is a sequel to "Postfix: relay to authenticated SMTP".

I would like to send mail from two different Gmail accounts using Postfix. Here is the relevant section in the Postfix documentation: Configuring Sender-Dependent SASL authentication.

As a concrete example, here's how to set up two Gmail accounts (only relevant sections of the config files are listed below):

/etc/postfix/main.cf:
    # sender-dependent sasl authentication
    smtp_sender_dependent_authentication = yes
    sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
You can’t perform that action at this time.