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 CatchAll@example.com

/./ CatchAll@example.com 

Maybe something like?

!/.example.com CatchAll@example.com 
Jacob Evans
  • 7,886
  • 3
  • 29
  • 57

1 Answers1

0

I ended up with

!/example\.com|example\.org/ devcatchall@example.com

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

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