Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Oct 2016 16:57:38 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: pw add user slow
Message-ID:  <2a796083-42a6-33f4-1e79-640ca7df2284@freebsd.org>
In-Reply-To: <8d0cb570-69e4-d952-7aeb-a59c0761bcfe@ifdnrg.com>
References:  <fd1e578c-58ef-5098-9d89-c3db814d7af4@ifdnrg.com> <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>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--2MAvk8h5hNthoicjGt4fSRULw6LtU5WA6
Content-Type: multipart/mixed; boundary="eUIhHMmbg6Aqn4eH21ToxbnmQ7nXXA6B0";
 protected-headers="v1"
From: Matthew Seaman <matthew@freebsd.org>
To: freebsd-questions@freebsd.org
Message-ID: <2a796083-42a6-33f4-1e79-640ca7df2284@freebsd.org>
Subject: Re: pw add user slow
References: <fd1e578c-58ef-5098-9d89-c3db814d7af4@ifdnrg.com>
 <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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2a796083-42a6-33f4-1e79-640ca7df2284>