For diagnostics, I've written a very simple filter for inclusion in `/usr/local/cpanel/etc/exim/sysfilter/options`:
The intention is to use this to suspend outbound message delivery while testing our relay server. However, once the filter is applied and engaged, EXIM is yielding a permissions error on `/etc/localdomains`. I can override the error by doing a `chmod` operation on the file but this is, of course, undone once the EXIM configuration is rebuilt in cPanel.
For context, I've also tried writing the filter by accessing the file directly:
The same permissions error still occurs. My understanding was that EXIM operated from the `root` user, so I'm not really sure why this error is showing up given that the localdomains file is owned by root. Is there a better or alternate way to test for a local domain?
Any insight on this matter is greatly appreciated!
Cheers,
Stephan
Code:
if
"${if match_domain{${domain:$h_from:}}{+local_domains} {yes} {no}}" contains "yes"
then
freeze
endif
For context, I've also tried writing the filter by accessing the file directly:
Code:
if
"${lookup {${domain:$h_from:}} lsearch {/etc/localdomains} {yes} {no}}" contains "yes"
then
freeze
endif
Any insight on this matter is greatly appreciated!
Cheers,
Stephan