Skip to content

Instantly share code, notes, and snippets.

@failover88
failover88 / jenkinsfile.txt
Last active June 29, 2018 09:16
jenkinsfile declarative script with qmake, generating wrong makefile with 4 more lines
pipeline {
agent any
environment {
MACOS_SOFTWARETEST = 'mactester@192.168.1.7'
QMAKE = '/Users/mactester/Qt/5.8/clang_64/bin//qmake'
MACDEPLOYQT = '/Users/mactester/Qt/5.8/clang_64/bin//macdeployqt'
MAKE = '/usr/bin/make'
SED = '/usr/bin/sed'
RM = '/bin/rm'
LS = '/bin/ls'
@failover88
failover88 / Postfix: sender-dependent SASL authentication.md
Created November 4, 2016 10:52 — forked from zmwangx/Postfix: sender-dependent SASL authentication.md
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)

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