From owner-freebsd-questions@freebsd.org Tue Oct 18 15:57:47 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 97A33C16158 for ; Tue, 18 Oct 2016 15:57:47 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2A1E1CA2 for ; Tue, 18 Oct 2016 15:57:47 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from ox-dell39.ox.adestra.com (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 2B2A5E01F for ; Tue, 18 Oct 2016 15:57:44 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/2B2A5E01F; dkim=none; dkim-atps=neutral Subject: Re: pw add user slow To: freebsd-questions@freebsd.org References: <20161018074415.0f6575675db30d0b83d9b8ec@sohara.org> <60719.69.209.239.247.1476794773.squirrel@cosmo.uchicago.edu> <20161018140531.GA1080@lime.woodcruft.co.uk> <3ceed8a7-50dd-2fd5-d110-4a77e43f36ad@freebsd.org> <8d0cb570-69e4-d952-7aeb-a59c0761bcfe@ifdnrg.com> From: Matthew Seaman Message-ID: <2a796083-42a6-33f4-1e79-640ca7df2284@freebsd.org> Date: Tue, 18 Oct 2016 16:57:38 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <8d0cb570-69e4-d952-7aeb-a59c0761bcfe@ifdnrg.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2MAvk8h5hNthoicjGt4fSRULw6LtU5WA6" X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2016 15:57:47 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --2MAvk8h5hNthoicjGt4fSRULw6LtU5WA6 Content-Type: multipart/mixed; boundary="eUIhHMmbg6Aqn4eH21ToxbnmQ7nXXA6B0"; protected-headers="v1" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: <2a796083-42a6-33f4-1e79-640ca7df2284@freebsd.org> Subject: Re: pw add user slow References: <20161018074415.0f6575675db30d0b83d9b8ec@sohara.org> <60719.69.209.239.247.1476794773.squirrel@cosmo.uchicago.edu> <20161018140531.GA1080@lime.woodcruft.co.uk> <3ceed8a7-50dd-2fd5-d110-4a77e43f36ad@freebsd.org> <8d0cb570-69e4-d952-7aeb-a59c0761bcfe@ifdnrg.com> In-Reply-To: <8d0cb570-69e4-d952-7aeb-a59c0761bcfe@ifdnrg.com> --eUIhHMmbg6Aqn4eH21ToxbnmQ7nXXA6B0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/18/16 16:19, Paul Macdonald wrote: > Are there ways to get local delivery via the SMTP server to dovecot > Maildirs without creating system accounts? Absolutely. Start by installing postfix, rather than trying to beat the system sendmail into submission. Postfix configuration is actually sane and accessible to ordinary mortals... You will need some sort of authorization database for the mail system to look up it's users in: LDAP works well, or you can use any sort of RDBMS. (Although not sqlite -- this needs to be a multi-user database.) You should be able to have both dovecot and postfix use the *same* database for authentication purposes -- although there is a handy trick where you can have postfix try logging into dovecot to authenticate the credentials the user supplies. There are several different approaches to this, but I tend to favour using LMTP to hand-off the incoming message to the Dovecot server and let it deliver to user Maildirs[*]. Postfix tends to apply the label 'virtual' when handling mail accounts that are not actual system user accounts, but apart from using eg. a 'virtual_aliases' map instead of the usual 'aliases' map it is all pretty straight forward. postfix has excellent documentation including a number of discussions on putting together this sort of virtual account based system. Cheers, Matthew [*] Which technically allows you to have dovecot and postfix running in entirely separate servers or jails, plus with a little extra work, to distribute your imap accounts over a number of back-end imap servers. It also facilitates using Dovecot's SIEVE implementation for server-side mail filtering. --eUIhHMmbg6Aqn4eH21ToxbnmQ7nXXA6B0-- --2MAvk8h5hNthoicjGt4fSRULw6LtU5WA6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJYBkZyAAoJEABRPxDgqeTnmi8P/RnLd3MpPSUZcMGsxE1+QxXX nNrgIQBSyw+K4dDXe6NxdzWo+FI0CFOFlS+K5s4dC8kP57Lmq+/EmiPEHpITrwUk LoGiX/7G1oD7qWvlKI29NbUjzkK8PhwUonDyqoDgzzQc7iDASjExlZJuQGtIbQUa O+kFVdHKMjPMcugwsQvoV1sQucmrFAaDvJnLdr3WK+nl/JBTCJfCY23nBXQi2Tzp SwM9bMhLKc9xd2uM5tpg8b3pQWELS5N3/HCn1AdeLc64DA+ZZvQcx6KagibrbRvl uohj2rSEzXlqWXvQl+caANu1wjaiWQnNwq5EwlLIg6tX4CkZSeu9HOIaEB5dBhJ1 XSw6+5V04DwUWhoQPeLQrmnxrrn7mXY+gdcJ8HeWqRPfCOZpvq3FyK6pTEwLEprI OVwPPI2chG5CDIEUVkxTGRkL4je2q8+RfHKJLhbIinlSechjNS1l/zaDgwjcnQB1 9fpLkLS6sRoYz/EpJSOvmfxWD8gj0xMCnnu3GcsfiILhRkIYt82a0XKrhIyFAt3u f3QdIZr8S/m9IRGdEpjAuQHRjMqEhwutQ32xsaX3AyrLCf/4VYo8rVVz1BCwO1Gi yazQsBw5b6Uwd41XymYeQOftBwRRL/WodJ3KNR2g26gLRQgKZ1kqVZqMd4PRUGY+ HilysnYqUz9b8UPGx4ba =Bcxx -----END PGP SIGNATURE----- --2MAvk8h5hNthoicjGt4fSRULw6LtU5WA6--