On Sat, Jan 03, 2015 at 10:09:20AM -0600, Allyn Bottorff wrote:
> Greetings,
Hi,
> I'm currently working on setting up my first installation of OpenSMTPD
> on Linux. I've got a setup working where I have a real unix user account
> that is the target for a vitual user. My question is this: If I add more
> addresses to the vitual users table and map them to that "vmail" unix
> account, I belive they will all end up in the same MailDir. Is there a
> way to have each address map to a unique MailDir under the vmail unix
> user?
>
Yes, you can use the format specifiers, quoting man page smtpd.conf(5):
FORMAT SPECIFIERS
Some configuration directives support expansion of their parameters at
runtime. Such directives (for example deliver to maildir, deliver to
mda) may use format specifiers which will be expanded before delivery or
relaying. [...]
So something like the following could do the trick:
accept [...] deliver to maildir "/var/mail/virtual/%{rcpt}/Maildir"
The list of specifiers is described in the man page.
--
Gilles Chehade
https://www.poolp.org @poolpOrg
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]