On 07/07/2024 18:59, Robert Fuhrer via Postfix-users wrote:
Hi,
I've got a Mac running PostFix 3.2.2, configured for local delivery
for a single domain, call it "mydomain.net <http://mydomain.net/>",
using dovecot's local delivery agent.
At the moment, there's just one relevant login user on the server, for
which I've got PostFix delivering emails addressed to
"[email protected]" to that user's Maildir store. This has worked
fine, for years.
As such, here are the relevant bits of config:
# main.cf
myhostname = mail.mydomain.net <http://mail.mydomain.net/>
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
alias_database = hash:/etc/aliases
# access
[email protected] OK
# virtual
[email protected] myuser@localhost
(I'm actually not sure the virtual user entry is actually necessary. I
suspect not. Is it?)
I'd like to augment this PostFix setup to accept local delivery for a
very limited number (say, 3-5) of specific NON-login users in the same
domain, e.g. "[email protected]", also via Maildir. (I already
have those users' mailboxes set up in Dovecot, so I can see their
mailboxes and emails via the Dovecot IMAP service in my mail client.)
I understand that one shouldn't also list "@mydomain.net" as a
virtual_mailbox_domain (since it's already $mydestination), so what
should I do?
I'm tempted to try this:
1) Set up a fake virtual domain, say, "mydomain.virtual", just to map
those non-login users' addresses from the external addresses
(@mydomain.net).
2) Add a virtual mailbox domain for that domain.
3) Set up local delivery for the users in that domain (by mapping them
to otheruser@localhost?).
or something like that.
Any advice on how to set this up properly?
Thanks in advance,
- Bob Fuhrer
Hi Bob
if email is being delivered to dovecot for the current single user and
the same should be done for the other users, I would just list them as
local recipients. You could just add an additional map file to
local_recipient_maps listing these users. You could even drop the
unix:passwd.byname lookup if you also list your existing user in that
map. What type of user database you are using in Dovecot?
John
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]