On Fri, Jun 15, 2012 at 05:20:28PM +0200, Joel Carnat wrote:
> > 
> > [...]
> > 
> > OpenSMTPD only creates the Maildir itself so you need to make sure you
> > create a directory for each of the domains you plan to handle if you are
> > using the domain as part of the path.
> > 
> > Should we have an option to let it create all directories in the path ?
> > I dunno, it's pretty easy to pre-create them and let the code be as strict
> > as it is right now :-)
> > 
> 
> right ; like "know what you are doing" :)
> I was just surprised as my actual Postfix / Dovecot configuration did the 
> "mkdir -p" themselves.
> I'll just keep the "create the directories" step in my notes ;-)
>
> While I'm there, I ended filling my "/etc/mail/vdomains" with such directives:
>   carnat.net              accept
>   [email protected]         vmail
>   [email protected]         [email protected]
>   [email protected]        [email protected]
>   [email protected]   [email protected]
>   [email protected]   [email protected]
>   [email protected]    [email protected]
> 
> This does works and allows virtual aliases to be defined. And all my test 
> mails went to my user account.
> I'm not just sure if this is the right way to do it as I didn't find such 
> mapping described in the docs.
> But I found using one "map aliases (...)" per virtual domain not very 
> practical.
> 
> What's the "proper" way to host virtual aliases for virtual domains ?
> 

The proper way is the one you're using ;-)
Also, one thing you could do is create a fallback address:

@carnat.net     [email protected]

if you want to also catch every user of the @carnat.net domain that does
not have its own key:

carnat.net       whatever               # enable vdomain
@carnat.net      [email protected]        # any user w/out key
[email protected]  vmail
[email protected]  [email protected]

Gilles

-- 
Gilles Chehade

https://www.poolp.org | http://pool.ps                          @poolpOrg

Reply via email to