Le 02/03/2012 04:24, Karol Babioch a écrit :
> Hi,
> 
> I'm pretty sure that this was asked for already, but I couldn't
> find anything useful with the keywords I was using. I've tried to
> play with some configurations, but couldn't find a reliable
> solution so far.
> 
> I will explain what I'm trying to do with two example domains:
> 
> I've got a server, which can be found at the domain "example.com" 
> (including a PTR record for reverse DNS lookups).
> 
> Now I want to run a mailserver for "example.com", but I don't want
> to create local users, but instead use virtual mailboxing.
> 
> Furthermore I've got the domain "example.net" which I want to be a
> mail host for - once again using virtual mailboxing.
> 
> Emails to "i...@example.com" should be stored (using dovecot) in 
> "/var/spool/mail/example.com/info". The emails for the
> "example.net" domain should be treated the same way (e.g. 
> "/var/spool/mail/example.net/info").
> 
> Now what would be the best way to deal with these kind of problem?
> From my understanding the documentation seems to assume that
> virtual mailboxing is only used for "additional" domains, but not
> for the "main" one.

no. you can use virtual mailbox domains for whatever domain you like.
there's no concept of "additional" domains.

http://www.postfix.org/STANDARD_CONFIGURATION_README.html#firewall
shows an example with relay_domains. you can do the same with
virtual_mailbox_domains. or you can do


mydestination = localhost
virtual_mailbox_domains = ...

and use localhost (via virtual_alias_maps) when you need to execute
scripts or use the "include" feature (because virtual does not allow
you to do that).

> 
> So my question, I guess, comes down to this: What would be the best
> way to have a single "main" domain virtual mailboxed, so that I
> don't have to create system users for each account? Is this even
> possible in a clean way?
> 
> Best regards, Karol Babioch
> 

Reply via email to