On Wed, Jun 24, 2015 at 10:07:26AM -0500, John Gateley wrote:

> Is it possible to make ALL domains virtual domains? Are there
> advantages or disadvantages to doing so?

Yes, go ahead and do that.

> To be more specific: for control over mailboxes and to treat
> all domains the same, I plan on making all domains "virtual
> mailbox domains" as described here.
> http://www.postfix.org/VIRTUAL_README.html#virtual_mailbox

Yes, go ahead and do that.

> For myorigin and mydestination, I'd use something like
> localhost.localdomain. I can expect all clients to be
> properly configured and specify a FQDN in their e-mail
> addresses.

You can even set "mydestination" empty, provided you never need to
use "mailing lists" that need the "owner-alias" feature, or that
extract recipient lists from ":include:" external files.  Your
choice of "localhost.localdomain" (or similar) leaves that option
available for any recipients rewritten into that domain.

I often use access(5) rules to reject attempts to send external
email directly to such "synthetic" local domains.  Only recipients
I rewrite to a "local" (mydestination) address are handed off to
the local(8) transport.

The "myorigin" domain needs to be set to some default domain that
is assigned to notices sent by Postfix, local submission via
sendmail(1) by logged in users, cron, ...

> So: is this possible? Any reason I shouldn't that I haven't seen?

None, just assign each domain you control to the right address
class.

-- 
        Viktor.

Reply via email to