Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEmPV-0007Ai-Fn for pgsql-general@arkaria.postgresql.org; Fri, 12 Apr 2019 02:59:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hEmPT-0006mk-Uy for pgsql-general@arkaria.postgresql.org; Fri, 12 Apr 2019 02:59:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEmPT-0006md-FZ for pgsql-general@lists.postgresql.org; Fri, 12 Apr 2019 02:59:23 +0000 Received: from mail-ot1-x341.google.com ([2607:f8b0:4864:20::341]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEmPQ-0003Dg-6n for pgsql-general@postgresql.org; Fri, 12 Apr 2019 02:59:22 +0000 Received: by mail-ot1-x341.google.com with SMTP id t8so7125001otp.7 for ; Thu, 11 Apr 2019 19:59:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=KwMcSsuqm0MawI8nS3qcV/et+/tyX/kS5OkxSRESizc=; b=Ow/kAbLj3SGYCbUWeZoE7ggdYlAjI9G6tI/CKgyM3RJeQfGZouqpVtW7bn8GKD/yEX CbyjWeiCL95ZIPShQYi44qlVbIjxPpsa7BGkiQ78gyPhL13xfub2eGiWg5FC8kbEfVaU oLdYBcDmVM7qYVTjSZNyUQx2zRcAODtRXauhlKHHnnO2wrOvPMshtq+r/7CCiQty2HUJ kNzPmAgXiP8PdgCdgyxZxwjYPdUrOzv9KemsurMPURQShiDwH3rX5/b7awE4xn3hYfPo yCB9srB1qaTh1eFea1KZ1dQILC+LdaJUaEjY0GIrYJfwXRV3F/wrhRuc5NVxeooW11Ac wJ8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=KwMcSsuqm0MawI8nS3qcV/et+/tyX/kS5OkxSRESizc=; b=alAthVIZhuwa/9GAqTchkJfbTCg6wByl4qStH+tRMtZIb+ml4qrdyXxXOhRR4h7VdT fWXhBM2/NW7sNSHLmijhqvji7qMfkIzq2ayAUqD8xK7eyYc2p/q0YArUW7jwUiI/Nhjo ZOgihPW3tx8CQ6rxBHR8iYHZibPwLGJKjH7eHTCW4fzTlQ+CTki7Hg1Sizi9/VEVNsOt glZWcH1Ul7YzBe9Nb84ak2AOo05qQGMvKZCCmZDTRf4JabM/OFqBrFR1Akt5opjuG6oq o911ZN0uMrVz7a2QlwMOWQw1Iaq44Z+X50wXlAwFyU/b4gB2AYUicWo7c/Yj6W+UXlEd RzGQ== X-Gm-Message-State: APjAAAUrFRtam5vWfkuDxaqbB3yn+sNLVh616mtGqIy8GBxJvypdTenL ZOtA5JeIuY/mrkQ+F4YxIL2CY6wN6pY= X-Google-Smtp-Source: APXvYqxw9ex76w3cZQcJALYi/RmktJIdgQ4L8EIqO8bUx/4it0sjH2kBVR9RLOzSm9dpXThPIflWvA== X-Received: by 2002:a05:6830:1d4:: with SMTP id r20mr35196189ota.106.1555037959086; Thu, 11 Apr 2019 19:59:19 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id i17sm15272946otc.67.2019.04.11.19.59.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 19:59:18 -0700 (PDT) Subject: Re: Trigger when user logs in To: Forums postgresql References: <21272.1555035161@sss.pgh.pa.us> <22830.1555037562@sss.pgh.pa.us> From: Ron Message-ID: <6b614864-1ec1-8dad-e751-0b7f77eb6db4@gmail.com> Date: Thu, 11 Apr 2019 21:59:17 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <22830.1555037562@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 4/11/19 9:52 PM, Tom Lane wrote: > Ron writes: >> On 4/11/19 9:12 PM, Tom Lane wrote: >>> PAM is the usual suggestion >> Can you be more specific? > I'm suggesting that you use PAM auth > > https://www.postgresql.org/docs/current/auth-pam.html > > and then configure the email behavior on the PAM side. Understood.  Thanks. -- Angular momentum makes the world go 'round.