Eric Kimminau:
> My goal is to limit outbound email to only three domains. All other email
> destined for any other domain should be redirected to a single, valid
> internal mail box.
> 
> It isn't working. Email to addresses outside this domain are still being
> delivered.
> 
> /etc/postfix/access:
> domain1.com  OK
> domain2.com  OK
> domain3.com  OK
> .            REDIRECT valid@email.address

As documented, SMTP access maps work only for SMTP mail.  You can
do much of the above with transport_maps, except redirecting to a
mailbox. Instead of redirect, why not use reject:

/etc/postfix/main.cf:
    transport_maps = hash:/etc/postfix/transport

/etc/postfix/transport:
    example.com :

    * reject:this destination is not allowed

        Wietse

Reply via email to