From: jan on
Hi Wietse,

>> main.cf:
>> + mailbox_transport=smtp:[weitan.org] # forward everything ...
>> + mailbox_transport_maps=hash:/etc/postfix/mailbox_transport_maps # ...
>> except some mails
>>
>> With mailbox_transport_maps:
>> + jan local
>
> You have set up an infinite loop, asking the local delivery agent
> to deliver mail via the local delivery agent.
Ok.

My intention is:

everything(a)weitan.org relay to weitan.org

which the entry:
mailbox_transport=smtp:[weitan.org]
does.

Now, how can i tell postfix NOT to relay jan(a)weitan.org to weitan.org but
to deliver it locally?
I thought mailbox_transport_maps would be a comfortable solution for this ...



Jan

From: Jeroen Geilman on
>
> Hi Wietse,
>
>
>>> main.cf:
>>> + mailbox_transport=smtp:[weitan.org] # forward everything ...
>>> + mailbox_transport_maps=hash:/etc/postfix/mailbox_transport_maps # ...
>>> except some mails
>>>
>>> With mailbox_transport_maps:
>>> + jan local
>>>
>> You have set up an infinite loop, asking the local delivery agent
>> to deliver mail via the local delivery agent.
>>
> Ok.
>
> My intention is:
>
> everything(a)weitan.org relay to weitan.org
>
> which the entry:
> mailbox_transport=smtp:[weitan.org]
> does.
>
> Now, how can i tell postfix NOT to relay jan(a)weitan.org to weitan.org but
> to deliver it locally?
> I thought mailbox_transport_maps would be a comfortable solution for this ...
>
>
>
>

In order to use mailbox_transport to forward all local mail to a
mailstore, the destination must NOT be this box.
If this box is not "weitan.org", then why does it receive mail for that
domain ?

I suggest you use a normal transport map.

J.