Issue saving EXIM configuration

dclaar

Registered
Mar 2, 2018
1
0
1
USA
cPanel Access Level
Website Owner
It doesn't appear to be possible to create a global exim filter, only a .yaml one; otherwise I might be able to shift the filtering up to the account level. Re-entering 250K lines of exim filters into the cpanel GUI for account filtering...<shudder>

I thought that the dovecot log files might help, but they want some global config file that either exists someplace else, or that I can't access. And they seem to be binary.

Sorry for the length, but I'm trying to be complete.
First, I'm a lowly user. I have had a ticket with lunarpages for a bit (4427801), and they've reached out to cpanel as well (Cpanel support 9309767).

I have a really large set of exim filters (250K lines), which used to work fine. When they updated to centos 7 and a newer cpanel, the exim save command within the filters stopped working.

Each user has a simple redirect to the account email. The account email then uses etc/filter to deliver things appropriately, e.g. for user dog:
Code:
if $h_to matches "dog" then
  save $home/mail/domain/dog/
  seen finish
endif
Previously, this would create a message in $home/mail/domain/dog/new. Now, even though "Track Delivery" happily reports success:
Code:
Delivered To: /home/domain_account/mail/domain/dog/
Router: central_user_filter
Transport: address_directory
There's no email.

Support suggested changing to
Code:
if $h_to matches "dog" then
  deliver [email protected]
  seen finish
endif
That also doesn't work.

I know that it is hitting the exim filter, because I have logwrite messages, and because I have added a deliver [email protected] line, and the email shows up there.


As the system is now centos, the redhat-release bit doesn't work, and there's no centos-release, but here's the suggested status command.

Code:
$ grep '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype ; grep CPANEL= /etc/cpupdate.conf
grep: /etc/redhat-release: No such file or directory
/usr/local/cpanel/version:11.68.0.27
/var/cpanel/envtype:hyper-v
grep: /etc/cpupdate.conf: No such file or directory
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello,

Per the support ticket (9309767), it looks like part of the issue was that a custom "filter" file was setup for the default account (e.g. [email protected]) as opposed to globally via the "Global Email Filters" option in cPanel. Additionally, the ability to customize the filter via the UI is limited to some extent. We have a feature request open at the following URL to enhance this:

Enhance Email Filtering Options

Thank you.