Mail Notifications are not coming from WHM Panel

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,309
363
Houston
Is the email address for the Administrator contact of the server at WHM>>Server Configuration>>Basic WebHost Manager Setup set up to a valid email address?

Are you receiving any notifications sent from the server?

Are roots emails set up to be forwarded properly at WHM>>Server Contacts>>Edit System Mail Preferences

What is noted in /usr/local/cpanel/logs/error_logs for email notifications? A search for Email should give you all log entries in which emails were attempted to be sent.
 

Vijayakumar J R

Active Member
Jul 15, 2019
30
0
6
banglore
cPanel Access Level
Root Administrator
Thanks for your reply.

  • Email address under WHM>>Server Configuration>>Basic WebHost Manager Setup is valid.
    [*]
    We are not receiving any notifications from the server.
  • roots emails set up forwarded properly at WHM>>Server Contacts>>Edit System Mail Preferences
    [*]

Code:
cat /usr/local/cpanel/logs/error_logs says

    eval {...} called at /usr/local/cpanel/Cpanel/Config/ConfigObj/Filter.pm line 93

    Cpanel::Config::ConfigObj::Filter::filter(Cpanel::Config::ConfigObj::Filter=HASH(0x2165690), "is_showcased", undef, Cpanel::Config::ConfigObj::Filter::FilterList=HASH(0x2165e10)) called at /usr/local/cpanel/Cpanel/FeatureShowcase.pm line 356

    Cpanel::FeatureShowcase::_default_filter_list(Cpanel::FeatureShowcase=HASH(0x2165240)) called at /usr/local/cpanel/Cpanel/FeatureShowcase.pm line 93

    Cpanel::FeatureShowcase::refine_driver_list_to_showcased(Cpanel::FeatureShowcase=HASH(0x2165240)) called at /usr/local/cpanel/Cpanel/FeatureShowcase.pm line 84

    Cpanel::FeatureShowcase::new("Cpanel::FeatureShowcase", HASH(0x2165900)) called at whostmgr/bin/whostmgr10.pl line 310

    main::redirect_to_display_showcased_features("scripts3/feature_showcase") called at whostmgr/bin/whostmgr10.pl line 379

    main::roothtml(CPANEL_HIDDEN) called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 259

    Whostmgr::Dispatch::do_call(__CPANEL_HIDDEN_, HASH(0xe03120), HASH(0x2165b88)) called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 157

    Whostmgr::Dispatch::dispatch(CPANEL_HIDDEN, 1, ARRAY(0x2165ba0)) called at whostmgr/bin/whostmgr10.pl line 242

[2020-01-10 13:12:12 +0530] info [whostmgrd] Successfully verified signature for cpanel (key types: release).

One more thing i observed IN WHM WHM>>Server Contacts>>Edit System Mail Preferences
Note- If you do not use suexec, the “nobody” user receives bounce messages from email that CGI scripts send.


What is this suexec, this is disabled in my WHM. what effects if i enable this suexec extension from Easy Apache.

Thanks
 
Last edited by a moderator:

cPanelLauren

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

The output from the cPanel error log appears to be unrelated to emails sent. You can search for email specifically with something like:

Code:
grep -i email /usr/local/cpanel/logs/error_log
You can also search the email logs for email transactions taking place with the administrative email you added for these notifications:

Code:
grep [email protected] /var/log/exim_mainlog
One more thing i observed IN WHM WHM>>Server Contacts>>Edit System Mail Preferences
Note- If you do not use suexec, the “nobody” user receives bounce messages from email that CGI scripts send.
This wouldn't be related at all to the notifications sent from the server but SuEXEC is defined as follows:
SuEXEC is a feature of Apache that allows CGI scripts to run under your username and not as the default user "nobody." suEXEC can protect your scripts and any files they create from other customers on your server when used properly.
 

cPanelLauren

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

Wallu

Well-Known Member
Jan 13, 2020
68
16
8
Finland
cPanel Access Level
Root Administrator
Hi, I'll continue this threat -> having the same issue.

The problem is that the Contact Manager -> Notifications are not saving. I have now tested this on 3 servers (1 whm/cpanel and 2 dnsonly), and it doesn't matter which Notifications I check (all or just few), they don't save. It says: Your contact settings have been updated! ...but they are not.

No errors in /usr/local/cpanel/logs/error_log

System Mail Preferences are set, as is Basic WebHost Manager Setup e-mail.

And, yes, some email come from the whm server, LVE alerts for example.

Thanks, - Wallu
 

Vijayakumar J R

Active Member
Jul 15, 2019
30
0
6
banglore
cPanel Access Level
Root Administrator
Thanks for your reply.

We have two servers from one server mail's are coming to info@ladybirdwebho**** but in another server mail's are not coming to the same mail ID.

I think nothing problem with mail id, this is a remote email account.

My confusion here is if I am receiving notification from one server, I should receive the same from other servers also. as both servers as the same settings.

Only one changes in servers are suEXEC apache extension. suEXEC enabled in that mail notification receiving. in one server, seEXEC is disabled in that server mail notifications not coming.

Awaiting for your response.
 

Wallu

Well-Known Member
Jan 13, 2020
68
16
8
Finland
cPanel Access Level
Root Administrator
A small followup on this: I just changed one account, and created new package from the new settings, and got Upgrade/Downgrade email notification.

So, even though the checkboxes/checkmarks in Contact Manager -> Notifications don't save, I guess the settings still apply.

Still, not sure if this is a bug or something, but it would be nice that those checkboxes show when you go back to Notifications. Right now you have no idea which boxes / notifications you saved the last visit there.

- Wallu
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,309
363
Houston
Hi, I'll continue this threat -> having the same issue.

The problem is that the Contact Manager -> Notifications are not saving. I have now tested this on 3 servers (1 whm/cpanel and 2 dnsonly), and it doesn't matter which Notifications I check (all or just few), they don't save. It says: Your contact settings have been updated! ...but they are not.

No errors in /usr/local/cpanel/logs/error_log

System Mail Preferences are set, as is Basic WebHost Manager Setup e-mail.

And, yes, some email come from the whm server, LVE alerts for example.

Thanks, - Wallu
Your issue sounds different than this one @Wallu - we can see in the cPanel error logs that the notification is sent, so it's not a matter of not having the email/contact saved.

Are you logging in to WHM as a reseller or the root user? I've never heard of this just "not saving"

What is the output of the following:

Code:
stat /root/.forward
Code:
stat /etc/localaliases
Also, is the email address you input listed in /root/.forward as well as /etc/localaliases

We have two servers from one server mail's are coming to info@ladybirdwebho**** but in another server mail's are not coming to the same mail ID.

I think nothing problem with mail id, this is a remote email account.

My confusion here is if I am receiving notification from one server, I should receive the same from other servers also. as both servers as the same settings.

Only one changes in servers are suEXEC apache extension. suEXEC enabled in that mail notification receiving. in one server, seEXEC is disabled in that server mail notifications not coming.
This message is a bit confusing but if I'm deciphering it correctly the following is happening:

  • You have two servers, both set up to email info@ladybirdwebho**** when there is a notification.
  • You receive the notification from only one of these servers
  • The only difference you've noted is that the SuExec configuration is different on both servers
My Question to you if this is correct is:

  • Does the domain you're referencing exist on both servers?
  • Do you receive other mail on both servers?
  • What is in the exim main log for mail sent to info@ladybirdwebho**** on both servers?
  • Does the hostname of the server in both instances resolve?

The following thread may be helpful for both instances here: Root Email Forwarding Not Working
 
Last edited:

Wallu

Well-Known Member
Jan 13, 2020
68
16
8
Finland
cPanel Access Level
Root Administrator
Your issue sounds different than this one @Wallu - we can see in the cPanel error logs that the notification is sent, so it's not a matter of not having the email/contact saved.
Yeah, sounds that way. I already posted a followup, but my messages stay in "awaiting moderator approval" quite some time :)

Any ideas? ...it's the same on 3 servers. (or should I just open another threat?)

- Wallu
 

Wallu

Well-Known Member
Jan 13, 2020
68
16
8
Finland
cPanel Access Level
Root Administrator
Are you logging in to WHM as a reseller or the root user? I've never heard of this just "not saving"

What is the output of the following:
root user

[root@whm06 ~]# stat /root/.forward
File: ‘/root/.forward’
Size: 20 Blocks: 8 IO Block: 4096 regular file
Device: 902h/2306d Inode: 42994058 Links: 1
Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2020-01-16 07:08:23.669338217 +0200
Modify: 2020-01-16 07:08:23.669338217 +0200
Change: 2020-01-16 07:08:23.676338102 +0200
Birth: -

[root@whm06 ~]# stat /etc/localaliases
File: ‘/etc/localaliases’
Size: 39 Blocks: 8 IO Block: 4096 regular file
Device: 902h/2306d Inode: 95684848 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2020-01-16 17:40:43.306834083 +0200
Modify: 2020-01-16 07:10:24.576341126 +0200
Change: 2020-01-16 07:10:24.576341126 +0200
Birth: -

The email address is in both /root/.forward and /etc/localaliases

Too bad I can't post here "as I go", but anyways, my problem is not sending email, it's the settings not saving / showing on the Notifications page.

- Wallu
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,309
363
Houston
Yeah, sounds that way. I already posted a followup, but my messages stay in "awaiting moderator approval" quite some time :)

Any ideas? ...it's the same on 3 servers. (or should I just open another threat?)

- Wallu
Until you have a certain number of approved posts you are moderated. When you reach that number your posts will stop being moderated. I have to go through an manually approve your posts until then and sometimes it takes me a few minutes to get to it.

So, even though the checkboxes/checkmarks in Contact Manager -> Notifications don't save, I guess the settings still apply.
The interface we're talking about here is WHM>>Server Contacts>>Edit System Mail Preferences - this is separate from WHM>>Server Contacts>>Contact Manager ->Notifications

The checkboxes not remaining checked in the notifications interface is by design. A notification type is checked when you want to make a change to it. The changes you make are present in the dropdown and ordered by importance or disabled. This corresponds to the settings added for WHM>>Server Contacts>>Contact Manager -> Communication type.
For example: if I've set that the communication Type email receives only high importance communication types, and the notification Account creation is set to low importance, I will not receive an email about account creation.
 

Wallu

Well-Known Member
Jan 13, 2020
68
16
8
Finland
cPanel Access Level
Root Administrator
The checkboxes not remaining checked in the notifications interface is by design. A notification type is checked when you want to make a change to it. The changes you make are present in the dropdown and ordered by importance or disabled. This corresponds to the settings added for WHM>>Server Contacts>>Contact Manager -> Communication type.
For example: if I've set that the communication Type email receives only high importance communication types, and the notification Account creation is set to low importance, I will not receive an email about account creation.
Riiiiight! ...ok so the checkbox is not for "want the notification or not", but to change the importance level, I see it now. All clear and it's working, as intended :D

Thanks Lauren,

- Wallu