0

I'd like to expand on my existing catch-all (from answer) Email catch all (domain and subdomains) Postfix

So emails to *@example.com are delivered to *@example.com but emails to *@gmail.com are redirected to [email protected]

/./ [email protected] 

Maybe something like?

!/.example.com [email protected] 
Jacob Evans
  • 7,886
  • 3
  • 29
  • 57

1 Answers1

0

I ended up with

!/example\.com|example\.org/ [email protected]

Which would allow local delivery, but catch any attempts to send outside.

Jacob Evans
  • 7,886
  • 3
  • 29
  • 57