Hello,
I'm new to OpenSMTPD and while this looks really good so far, and with a
configuration that can be both simple yet powerful/flexible at once,
even after reading the man pages I still find myself with a few
questions I can't answer, so I'm hoping I can get some help.
* To make sure: whenever a mapping is used (virtual domains/users,
aliases...) it always means there *needs* to be a match, and if not
the rule "fails" and smtpd will move on to the next rule, rejecting
the message if no other (matching) rule is found -- correct?
For some cases the doc clearly states so, but not for others, so I'm
unsure if that's just implied as well, or what's the behavior then?
* Speaking of aliases: am I right to think that an alias can resolve
either to a local user, or something else (write to a file, pipe to a
command, write in a maildir, etc), and when it doesn't resolve to a
local user, the rule's delivery method (deliver to.../relay) is
ignored, with the action from the alias resolution being used instead?
And to talk specific, I want to set up smtpd with only virtual users,
and have messages for each delivered to a user-specific Maildir. No
link to local users, nor cases for them.
Here's what I'm thinking of using:
table users { bob = 8:12:/var/mail, alice = 8:12:/var/mail }
accept from any for domain "foo.com" userbase <users> \
deliver to maildir "/var/mail/foo.com/%{rcpt.user}"
Would that work as expected (%{rcpt.user} being either "bob" or
"alice" in that case) ? In this case %{user.username} would work just
the same, there shouldn't be any differences/reasons to prefer one over
the other?
I'm thinking since I'm using "deliver to maildir" the homedir
of the users doesn't matter/isn't used by smtpd, is that right?
And, the writing to the maildir be done under the uid:gid from
match in table <users>, right ?
Also, I don't understand the difference between %{rcpt} and %{dest} as
format specifiers -- doc says "recipient email address" vs "recipient
email address after expansion" but that's quite unclear to me...
does that mean in case of e.g. aliases when the recipient address
resolved to another address? or what expansion are we talking about
here?
Lastly, is there/what is the difference between "format specifiers" and
"conversion specifiers" ? The later is used in the "deliver to mda"
description, with the same link to FORMAT SPECIFIERS, but that term
isn't used anywhere else.
Thanks a lot for the help,
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]