Hot answers tagged exim
It sounds like you are describing the validate_cmd parameter exactly. From the Puppet type reference for file: A command for validating the file’s syntax before replacing it. If Puppet would need to rewrite a file due to new source or content, it will check the new content’s validity first. If validation fails, the file resource will fail. This ...
I discovered the following documented under ACL return codes: If the ACL for MAIL returns “discard”, all recipients are discarded, and no ACL is run for subsequent RCPT commands.
You could test the resulting configuration by using a git hook to fire up a virtual machine / container (Docker would be ideal for this) and apply the manifest in that environment. If you're doing this regularly you might consider implementing a CI system (like Jenkins) which you push your changes to, have the CI run a suite of tests and on success push ...
Sending mail via a smarthost is a standard exim4 configuration. This meets the criteria you specify above. Run dpkg-reconfigure exim4-config. Select the option mail sent by smarthost; no local mail. Then configure the second host as the smarthost.
Does your organisation operate its own certificate authority for internal servers? Perhaps you need to add the CA certificates for the Exchange server into the certificate trust store for Exim? A lot of products don't report this error very well (I don't know if Exim does or not). Wireshark (capture first on the server with tcpdump -p -s0 -w /tmp/foo.pcap ...
Only top voted, non community-wiki answers of a minimum length are eligible