In Progress CPANEL-36888 - Exim Configuration False warnings when redirecting to default routers

Status
Not open for further replies.

Deion Yu

Registered
Oct 24, 2017
3
1
53
Canada
cPanel Access Level
Root Administrator
Hello everyone,

Recently I had added a custom redirect router to the PREVIRTUALUSER section which redirects to the "virtual_user" router which comes with the exim.conf file by default. However, the Exim Configuration Manager Advanced Editor interface keeps on generating the following warning message:

Code:
Warning! directive_matcher could not parse error: 2019-02-28 18:01:55 cwd=/usr/local/cpanel/whostmgr/docroot 4 args: /usr/sbin/exim -bV -C /etc/exim.conf.test.work.1f698453
2019-02-28 18:01:55 Exim configuration error:
  new_router "virtual_user" not found for "my_previrtualuser_router" router
Both the Exim service and my custom redirect router are running and redirecting as expected despite the warning message. This leads me to believe that the warning message is being falsely generated due to the cPanel Exim validation routine not taking both my custom redirect router and the "virtual_user" router into account at the same time.

Am I right in thinking that the problem lies with the validation routine? If I am mistaken, then what would be the best approach to take to resolve this? If at all possible, I would like to avoid adding a duplicate custom router that mimic the "virtual_user" router.

Looking forward to hearing back and thank you for any help you can provide on this matter.

Code:
/etc/redhat-release:CentOS Linux release 7.2.1511 (Core)
/usr/local/cpanel/version:11.76.0.18
/var/cpanel/envtype:kvm
CPANEL=stable
 

Deion Yu

Registered
Oct 24, 2017
3
1
53
Canada
cPanel Access Level
Root Administrator
Hello @cPanelLauren

Here's the custom router that was added to the PREVIRTUALUSER section.

Code:
magicspam_virtual_user_spam:
    driver = redirect
    domains = !$primary_hostname
    condition = ${if def:header_X-MagicSpam-Spam:{1}{0}}
    require_files = "+/etc/valiases/$domain:+/etc/magicspam/control/quarantine_local:+${extract{5}{::}{${lookup passwd{${lookup{$domain}lsearch{/etc/userdomains}{$value}}}{$value}}}}/mail/$domain/$local_part"
    headers_remove="x-uidl"
    data = "$local_part+spam@$domain"
    redirect_router = virtual_user
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston

Deion Yu

Registered
Oct 24, 2017
3
1
53
Canada
cPanel Access Level
Root Administrator
Hello @cPanelLauren

I'm actually a developer for MagicSpam and based on my testing the problem does not seem to be with MagicSpam in this particular case. As previously mentioned, the custom redirect router is working as expected. Running the buildeximconf and restartsrv_exim scripts from the command line yields no error messages or warnings. The issue seems to persist solely on the cPanel Exim Configuration Manager Advanced Editor interface as even when adding a bare minimum custom router like the following to the PREVIRTUALUSER section:

Code:
custom_virtual_user_redirect:
    driver = redirect
    condition = yes
    data = "$local_part+spam@$domain"
    redirect_router = virtual_user
The interface still produces the warning message:

Code:
Warning! directive_matcher could not parse error: 2019-03-06 21:00:19 cwd=/usr/local/cpanel/whostmgr/docroot 4 args: /usr/sbin/exim -bV -C /etc/exim.conf.test.work.837fd569
2019-03-06 21:00:19 Exim configuration error:
  new_router "virtual_user" not found for "custom_virtual_user_redirect" router
Any help you can provide on this matter would be greatly appreciated. Thank you for your continued support.
 
  • Like
Reactions: cPanelLauren

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello @Deion Yu,

I've reproduced the reported behavior and opened internal case CPANEL-26137 to report the issue. I'll monitor this case and update this thread with more information on it's status as it becomes available.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Is there any update on this? Facing the same issue
There's no update on the status of this case to report at this time, however I'll continue to monitor it and report back here as soon as new information is available.

In the meantime, you can safely ignore this warning message when this happens, as the custom change is saved despite the message.

Thank you.
 

Markif

Well-Known Member
Nov 9, 2016
55
7
133
Toulouse
cPanel Access Level
Root Administrator
Hello,

some years later, is there some update on CPANEL-26137 ?
Facing the same issue here when saving "Exim Configuration Manager" / "advanced editor".
In fact not need to save, the modal popups just by showing the page.
-----)
Warning! directive_matcher could not parse error: 2021-05-05 04:19:54.256 [703502] cwd=/usr/local/cpanel/whostmgr/docroot 4 args: /usr/sbin/exim -bV -C /etc/exim.conf.test.work.5cb5fd7b
2021-05-05 04:19:54.256 [703502] Exim configuration error:
new_router "virtual_user" not found for "virtual_user_mailscanner" router
(-----

PS : The "virtual_user_mailscanner router is added via an include
.include_if_exists /usr/msfe/spambox.conf

I can send my exim.conf and spambox.conf in a DM if you want to look at it

Thanks for your help
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,617
2,624
363
cPanel Access Level
Root Administrator
@Markif - the original case was closed as it was determined there would need to be a substantial redesign to that area of the interface in order to get it resolved.

If you're still seeing this issue could you open a ticket so we could do some additional testing?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,617
2,624
363
cPanel Access Level
Root Administrator
Our team has created a new case for this behavior based on additional testing. If you're signed in to our ticket system, you can follow along with that here:

 

JoseDieguez

Well-Known Member
PartnerNOC
Jan 26, 2016
82
43
68
Chile
cPanel Access Level
Root Administrator
Our team has created a new case for this behavior based on additional testing. If you're signed in to our ticket system, you can follow along with that here:

Just wanted to say, we are seeing this warning on every server too :)
 
  • Like
Reactions: cPRex

The German

Member
Nov 23, 2016
5
4
53
USA
cPanel Access Level
Website Owner
It is utterly pathetic that this problem has been going on for years - if the developers are too dumb to fix this, FIRE THEM AND GET REPLACEMENTS! The company should have enough money to hire the best available, looking at the ridiculous monthly charges you collect.

And yes, the error is still around and did not magically disappear.
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,617
2,624
363
cPanel Access Level
Root Administrator
Thanks for letting me know this is still happening. At this point, it's unlikely this is getting fixed. My best recommendation, and I really wish I had a better plan B for all of you, would be for @JoseDieguez to reach out to their account manager and let them know that CPANEL-36888 is still ongoing and that you'd really like a fix. I'm sorry I don't ahve better news on this one.
 
  • Like
Reactions: JoseDieguez
Status
Not open for further replies.