Im administering a bunch of development and staging debian (v.6-8) servers. The current exim4 setup looks like this:
- There are no incoming mails on the servers (no wan connection)
- Outgoing mails are send via a smarthost (this is currently working)
Since the stage and dev servers email functionality will be tested through web apps and there are real world scenario email addresses set up in our web applications, The setup that I want to achive is:
- All outgoing mails should be forwarded by a catchall statement to one single email address, for example firstname.lastname@example.org
- All outgoing mails, that contain our companies domains, like *@example.com and *@foo.com should bypass the catchall rule.
The tutorial, that is closest to my goal is this, even if it uses the opposite strategy: Allow all senders and deny one sender.
Any help is really appreciated, since I'm going to be nuts on exim config syntax.
I'd been through a whole lot a configuration samples for days now, but none of them are matching my use case.