From: Phil Howard on
On Tue, Jul 13, 2010 at 04:07, Simon Waters <simonw(a)zynet.net> wrote:
> On Monday 12 July 2010 20:53:46 Phil Howard wrote:
>> I've added a domain name which has email addresses that are only in
>> the virtual map. There are no real mailboxes over on Dovecot (via
>> transport) for this one. Attempts to send mail to
>> postmaster(a)newdomain.example.com gets "Relay access denied", so it
>> clearly doesn't recognize the domain (I didn't put it anywhere, so how
>> could it ... depending on the virtual map for that would not get the
>> right error message for bad LHS in that domain).  So my question is,
>> which map does it go in if all it is used for is addresses in the
>> virtual map (being forwarded to real mailboxes in another domain).
>
> I think you want virtual_mailbox_domains, so in your
> config /etc/postfix/domains.
>
> This is domains for which it is a final destination but delivery is via the
> virtual transport.
>
> http://www.postfix.org/postconf.5.html#virtual_mailbox_domains
>
> I didn't check to see if this fits the rest of your config....

I already have virtual_mailbox_domains listing domains that are
destined for virtual_transport = dovecot. The issue was that I'm now
dealing with new domains that are not going there. I suppose I could
still do that and pretend they are going there ... attempts would fail
because no users in the new domains exist there.

But what about virtual_alias_domains? What does that really do? It's
default value is virtual_alias_map, so it is unclear to me if that is
a list of domains or what.

--
sHiFt HaPpEnS!

From: Phil Howard on
On Tue, Jul 13, 2010 at 04:07, Simon Waters <simonw(a)zynet.net> wrote:
> On Monday 12 July 2010 20:53:46 Phil Howard wrote:
>> I've added a domain name which has email addresses that are only in
>> the virtual map. There are no real mailboxes over on Dovecot (via
>> transport) for this one. Attempts to send mail to
>> postmaster(a)newdomain.example.com gets "Relay access denied", so it
>> clearly doesn't recognize the domain (I didn't put it anywhere, so how
>> could it ... depending on the virtual map for that would not get the
>> right error message for bad LHS in that domain).  So my question is,
>> which map does it go in if all it is used for is addresses in the
>> virtual map (being forwarded to real mailboxes in another domain).
>
> I think you want virtual_mailbox_domains, so in your
> config /etc/postfix/domains.
>
> This is domains for which it is a final destination but delivery is via the
> virtual transport.
>
> http://www.postfix.org/postconf.5.html#virtual_mailbox_domains

So what if a given domain is, instead, going to have addresses
forwarded back out to some other mail server?

Or worse, what if a given domain has some users forwarding to an
address that is delivered via virtual transport and some other users
forwarding to an address that goes elsewhere? Or even a user
forwarding to two or more addresses in different places.

Documentation is vague on what this is for.

--
sHiFt HaPpEnS!

From: Victor Duchovni on
On Wed, Jul 14, 2010 at 12:49:11PM -0400, Phil Howard wrote:

> > http://www.postfix.org/postconf.5.html#virtual_mailbox_domains
>
> So what if a given domain is, instead, going to have addresses
> forwarded back out to some other mail server?

If without rewriting, that's a "relay domain". If addresses are
always rewritten to another domain (ala the model of pobox.com),
then its a "virtual alias domain". Take the time to understand

http://www.postfix.org/ADDRESS_CLASS_README.html

> Or worse, what if a given domain has some users forwarding to an
> address that is delivered via virtual transport and some other users
> forwarding to an address that goes elsewhere?

Not a problem, virtual aliases are global, pick whichever model
is best for any users that are not rewritten to another domain.

> Or even a user
> forwarding to two or more addresses in different places.

Not a problem:

http://www.postfix.org/ADDRESS_REWRITING_README.html
http://www.postfix.org/VIRTUAL_README.html

--
Viktor.

From: Phil Howard on
On Wed, Jul 14, 2010 at 17:08, Victor Duchovni
<Victor.Duchovni(a)morganstanley.com> wrote:
> On Wed, Jul 14, 2010 at 12:49:11PM -0400, Phil Howard wrote:
>
>> > http://www.postfix.org/postconf.5.html#virtual_mailbox_domains
>>
>> So what if a given domain is, instead, going to have addresses
>> forwarded back out to some other mail server?
>
> If without rewriting, that's a "relay domain". If addresses are
> always rewritten to another domain (ala the model of pobox.com),
> then its a "virtual alias domain". Take the time to understand

There will be a whole new envelope address. That's been "rewriting"
for as long as I have know it.


>    http://www.postfix.org/ADDRESS_CLASS_README.html

The domain does not fall into any of these classes. I have pretended
it was virtual mailbox, even though it wasn't, listed it as such,
anyway, and that did make it work.

Every address in these domains will be rewritten to some other address
(not all with the same domain) and sent on their way. Some of them
will be rewritten to addresses that do fall into other classes for
some kind of local delivery (right now, in virtual mailbox).


>> Or worse, what if a given domain has some users forwarding to an
>> address that is delivered via virtual transport and some other users
>> forwarding to an address that goes elsewhere?
>
> Not a problem, virtual aliases are global, pick whichever model
> is best for any users that are not rewritten to another domain.

OK, maybe this is the correct class to put them in, afterall. I'll
try it out tomorrow.

--
sHiFt HaPpEnS!

From: Wietse Venema on
Phil Howard:
> Every address in these domains will be rewritten to some other address
> (not all with the same domain) and sent on their way. Some of them
> will be rewritten to addresses that do fall into other classes for
> some kind of local delivery (right now, in virtual mailbox).

You give pretty much the definition of a Postfix virtual alias
domain.

All addresses are rewritten to an address in a different local or
remote domain, therefore, the domain must be listed as a virtual
alias domain, as per ADDRESS_CLASS_README.html.

Wietse