MESSAGE
DATE | 2022-01-11 |
FROM | Phil Biggs
|
SUBJECT | Subject: [Hangout - NYLXS] Virtual users with postfix and dovecot
|
From hangout-bounces-at-nylxs.com Tue Jan 18 13:14:44 2022 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www2.mrbrklyn.com (www2.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id 6D957164085; Tue, 18 Jan 2022 13:14:42 -0500 (EST) X-Original-To: hangout-at-nylxs.com Delivered-To: hangout-at-nylxs.com Received: by mrbrklyn.com (Postfix, from userid 1000) id A658716403B; Tue, 18 Jan 2022 13:09:14 -0500 (EST) Resent-From: Ruben Safir Resent-Date: Tue, 18 Jan 2022 13:09:14 -0500 Resent-Message-ID: <20220118180914.GZ23753-at-www2.mrbrklyn.com> Resent-To: hangout-at-nylxs.com X-Original-To: ruben-at-mrbrklyn.com Delivered-To: ruben-at-mrbrklyn.com Received: from russian-caravan.cloud9.net (russian-caravan.cloud9.net [168.100.1.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.cloud9.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mrbrklyn.com (Postfix) with ESMTPS id A947D16400F for ; Tue, 11 Jan 2022 19:10:06 -0500 (EST) Received: by russian-caravan.cloud9.net (Postfix) id D2E6734283D; Tue, 11 Jan 2022 19:09:17 -0500 (EST) Delivered-To: postfix-users-outgoing-at-cloud9.net Received: from localhost (localhost [127.0.0.1]) by russian-caravan.cloud9.net (Postfix) with ESMTP id D189E3426FE for ; Tue, 11 Jan 2022 19:09:17 -0500 (EST) X-Virus-Scanned: amavisd-new at cloud9.net Received: from russian-caravan.cloud9.net ([127.0.0.1]) by localhost (russian-caravan.cloud9.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O6s2cTyHt3p1 for ; Tue, 11 Jan 2022 19:09:17 -0500 (EST) Received: by russian-caravan.cloud9.net (Postfix, from userid 54) id B350B34284B; Tue, 11 Jan 2022 19:09:17 -0500 (EST) Delivered-To: postfix-users-at-cloud9.net Received: from localhost (localhost [127.0.0.1]) by russian-caravan.cloud9.net (Postfix) with ESMTP id 9571D34283D for ; Tue, 11 Jan 2022 19:09:17 -0500 (EST) X-Virus-Scanned: amavisd-new at cloud9.net Received: from russian-caravan.cloud9.net ([127.0.0.1]) by localhost (russian-caravan.cloud9.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ie32RrKIFRHm for ; Tue, 11 Jan 2022 19:09:17 -0500 (EST) Received: from smtp03.aussiebb.com.au (2403-5800-3-25--1003.ip6.aussiebb.net [IPv6:2403:5800:3:25::1003]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by russian-caravan.cloud9.net (Postfix) with ESMTPS id 3E1923426FE for ; Tue, 11 Jan 2022 19:09:17 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by smtp03.aussiebb.com.au (Postfix) with ESMTP id F33581A00E4 for ; Wed, 12 Jan 2022 11:09:03 +1100 (AEDT) X-Virus-Scanned: Debian amavisd-new at smtp03.aussiebb.com.au Received: from smtp03.aussiebb.com.au ([127.0.0.1]) by localhost (smtp03.aussiebb.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id olndhKWhBiqP for ; Wed, 12 Jan 2022 11:09:03 +1100 (AEDT) Received: by smtp03.aussiebb.com.au (Postfix, from userid 119) id EA0711A00F4; Wed, 12 Jan 2022 11:09:03 +1100 (AEDT) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on smtp03.aussiebb.com.au X-Spam-Level: * X-Spam-Status: No, score=1.4 required=10.0 tests=KHOP_HELO_FCRDNS, RDNS_DYNAMIC, SPF_HELO_NONE,URIBL_BLOCKED autolearn=disabled version=3.4.4 Received: from postfix.pjb.cc (180-150-6-110.b49606.syd.nbn.aussiebb.net [180.150.6.110]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp03.aussiebb.com.au (Postfix) with ESMTPS id 4B9851A00E4 for ; Wed, 12 Jan 2022 11:09:03 +1100 (AEDT) Received: from philately.pjb.cc (philately [192.168.11.3]) by postfix.pjb.cc (Postfix) with ESMTP id CEE642A507 for ; Wed, 12 Jan 2022 11:09:02 +1100 (AEDT) Received: from PHIL-8.pjb.cc ([192.168.111.8]) by pjb.cc with MailEnable ESMTPA; Wed, 12 Jan 2022 11:09:02 +1100 Date: Wed, 12 Jan 2022 11:09:02 +1100 From: Phil Biggs Message-ID: <438376731.20220112110902-at-pjb.cc> To: "'Postfix users'" MIME-Version: 1.0 Precedence: bulk Subject: [Hangout - NYLXS] Virtual users with postfix and dovecot X-BeenThere: hangout-at-nylxs.com X-Mailman-Version: 2.1.30rc1 List-Id: NYLXS Tech Talk and Politics List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: hangout-bounces-at-nylxs.com Sender: "Hangout"
Hello all,
I have a lot of email addresses of the form mbYYMMDD-at- (just like the one I'm sending from here). They're unique to a specific site/purpose and have accumulated over nearly 20 years.
My current windows-based MSA allows the MUA user "ml-postfix-users" to login and receive emails using the above email address. I'm only using POP3/SMTP and outbound is all from the MSA via postfix.
To ease migration from the Windows server to Dovecot I would like to be able to keep the MUA using the existing user names, rather than manually editing every MUA account manually.
I can't figure out how to do this username-emailaddress mapping with Dovecot, so I'm looking at using virtual in postfix. Here's what I have so far.
main.cf includes:
# Route inbound for valid recipients to dovecot virtual_transport = lmtp:unix:/var/spool/postfix/private/dovecot-lmtp virtual_mailbox_domains = pjb.cc virtual_mailbox_maps = hash:/usr/local/etc/postfix/vmailbox virtual_alias_maps = hash:/usr/local/etc/postfix/virtual lmtp_use_tls = no
vmailbox contains: mb170712-at-pjb.cc ml-postfix-users # +LOTS of others
virtual contains: -at-pjb.cc all
The Dovecot users file includes: ml-postfix-users-at-pjb.cc:,:10043:10000:
Hoping someone here can tell me whether I'm on the right track with the above or (perhaps more likely) that I'm going about this in entirely the wrong way.
-- Thanks, Phil _______________________________________________ Hangout mailing list Hangout-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/hangout
|
|