On Fri, Sep 04, 2009 at 07:46:42AM +1200, Henri Shustak wrote:

> I have one further question in this case. Please correct me if I have 
> misunderstood the setup you described.
>
> My question with this setup is : How do I stop delivery to the primary 
> domain?

Two possible solutions:

    1. List only one of the domains in $mydestination. Only addresses in
       local (mydestination) domains are passed to the local(8) delivery
       agent and subjected to aliases(5) expansion.

    2. Use a virtual(5) alias to implement the list:

        virtual(5)
            f...@example.com            foo-inter...@localhost

        aliases(5)
            foo-internal:       "|/path args"

        Optional, block direct mail to "foo-internal":

        access(5)
            # For each domain in $mydestination:
            foo-inter...@example.com    REJECT Access denied
            foo-inter...@example.net    REJECT Access denied

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majord...@postfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to