Wietse Venema:
> Eric Kimminau:
> > Good morning!
> > 
> > I have long respected your open source efforts since we worked together
> > during the Linux MIPS port when I was at SGI.
> > 
> > I appreciate your comments and suggestions but you really haven't been of
> > any help. You pointed me down a path that wasn't sustainable (write
> > transport blocks for every domain on the internet except the 3 you want to
> > allow) and questioned me on why my customer is giving their requirements
> 
> My proposed solution used only transport rules for the few domains
> that are "good". It used ONE wild-card pattern for everything else.
> 
> In addition, Victor Duchovni came upo with a solution that could
> fit into this wild-card rule (a content filter-based approach) that
> could send the "bad" mail to any destination of your liking.
> 
> This seems to provide exactly what you want.

The simplest solution is to use virtual_alias_maps.

/etc/postfix/main.cf:
     virtual_alias_maps = regexp:/etc/postfix/virtual

/etc/postfix/virtual:
    if !/@(example1|example2|example3)\.com$/
    /./ catch...@example.com
    endif

This redirects all domains except three.

        Wietse

Reply via email to