Missing cpbackup email notification

egrueda

Member
Mar 29, 2011
21
0
51
Madrid, Spain
Hi all.

One of my cpanel servers is not sending me an email notification after backup.
This is a CentOS release 5.9 (Final) using cpanel 11.36.1.8

I've checked log file at /usr/local/cpanel/logs/cpbackup ant the last line is:
Code:
[cpbackup] Completed at ...
So I compared with other server (same os and cpanel version) and I see notification in log file:
Code:
[cpbackup] Completed at ...
Notification => [email protected] via EMAIL [level => 2]
So I made a step-by-step comparison between both servers.

1. Server Contacts > Edit System Mail Preferences
nobody's and cpanel's mail are being forwarded to root
root's mail is currently being forwarded to my email.
In fact, I'm getting other emails from that server, so root's email and smtp routing is ok

2. Server Contacts > Contact Manager > Alert Contact Priority Assignment
I have email getting "Low" minimum alert priority

3. Server Contacts > Contact Manager > Alert Priority Assignment
cPanel Backup is set as "Medium" priority

Configuration is exactly the same in both servers for notification, contacts and backup.
So why is email notification not being triggered after backup in that server?

Thanks.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello :)

Have you checked /var/log/exim_mainlog to see if there are any message failures when the server attempts to send the notification email? You could use the following command to check:

Code:
exigrep cpbackup /var/log/exim_mainlog
Thank you.
 

egrueda

Member
Mar 29, 2011
21
0
51
Madrid, Spain
Thanks, Michael, but the problem comes before exim.
In the log file, I see cpbackup is not even trying to send any email.
It doesn't show "Notification => [email protected] via..." in the log file, so the email was never generated and never processed by exim.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Could you open a support ticket so we can take a closer look?

Submit A Ticket

Please post the ticket number here so we can update this thread with the outcome.

Thank you.
 

planetjoin

Well-Known Member
Oct 14, 2003
66
3
158
cPanel Access Level
Root Administrator
Hello

I have 5 cpanel servers. In 4 of them, i´m receiving every day the email confirming the process of backup.
In one fo them. never comes.

The configuration is the same in ALL. The destination email is the same in ALL.

I take a look at /usr/local/cpanel/logs/cpbackup and the backup is processed every day.. and the weird thing is :

at the end of the log :

[cpbackup] Completed at Sat Mar 29 07:23:51 2014
Notification => [email protected] via EMAIL [level => 1]

Then.. all look ok..

I see with : exigrep cpbackup /var/log/exim_mainlog

2014-03-29 07:23:52 1WTqQZ-0000mN-QZ <= [email protected] U=root P=local S=1024861 T="[cpbackup] Backup complete on myserver.com" for [email protected]
2014-03-29 07:23:52 1WTqQZ-0000mN-QZ => me <[email protected]> R=virtual_user T=virtual_userdelivery
2014-03-29 07:23:52 1WTqQZ-0000mN-QZ Completed

but.. i NEVER receive the email ;(

very very weird!!!

regards
Fabian
 

planetjoin

Well-Known Member
Oct 14, 2003
66
3
158
cPanel Access Level
Root Administrator
I got it!!!!

was a stupidity thing from my side!

when i setup the new server, i had hosted there the domain i´m using to receive the backups email notifications (in the example : [email protected]). and i moved that domain to another of my servers...but i FORGOT to delete the domain in the old server.

then.. the backup notification email was sent every day correctly to the email [email protected] but locally because the domain "email.com" exist in the source backup server, and then it try always to deliver locally if the domain is there.

now i deleted the domain there, and surely i will receive the notifications correctly :)

sorry for my english.. i hope explained fine this ;)

Regards
Fabian
 

planetjoin

Well-Known Member
Oct 14, 2003
66
3
158
cPanel Access Level
Root Administrator
Hello again..

the backup is killing me ;(

Still not receive the email. The backup is doing perfect at the end of the log file appears :

[cpbackup] Completed at Wed Apr 2 07:19:39 2014
Notification => [email protected] via EMAIL [level => 2]
Notification => [email protected] via PAGER [level => 2]

The email NEVER received in [email protected]

I changed the email to different ones in different servers and datacenters and never received and not found in exim queue.

if i try to send the log file to the email where i receive all the other servers backup.. the email is stucked in the exim queue..
when i try to deliver it from exim.. i get this error :

LOG: MAIN
== [email protected] R=lookuphost T=remote_smtp defer (-44): SMTP error from remote mail server after RCPT TO:: host email.com [1.1.1.1]: 451 Temporary local problem - please try later

The weird is.. the emails working fine in the source server sending to the same email using outlook for example.

Anyone can help me ¿¿

Fabian
 

planetjoin

Well-Known Member
Oct 14, 2003
66
3
158
cPanel Access Level
Root Administrator
well.. i finally fixed it!

the problem was :

the source server (where the backup is made), not resolve the DNS of the server where it musts to send the email notification.

i take a look on the email server and add 8.8.8.8 to the /etc/resolv.conf file..

and now.. all works like a charme!

Bye bye.
Fabian
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
I am happy to see you were able to resolve the issue. Thank you for updating us with the outcome.
 

planetjoin

Well-Known Member
Oct 14, 2003
66
3
158
cPanel Access Level
Root Administrator
Hello Michael

This is nighgmare! :)
All looks ok..i fixed the problem why the server not sent the notification emails. I´ve deliver the queue on exim with the notification emails stucked and was delivered ok. Now...

the last email sent was at april, 2.
The backup is doing perfect :

[cpbackup] Completed at Fri Apr 4 07:39:46 2014
Notification => [email protected] via EMAIL [level => 2]
Notification => [email protected] via PAGER [level => 2]

but.. this time with : exigrep cpbackup /var/log/exim_mainlog

not appears the deliver of april, 3 and april, 4

what happens now ? LOL

Regards
Fabian
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

Thanks.
 

cPanelPeter

Technical Analyst III
Staff member
Sep 23, 2013
575
21
143
cPanel Access Level
Root Administrator
Twitter
Hello,

To update, this was resolved by changing the email priority from Medium to High in the WHM => Contact Manager.
Once our analyst updated this and ran a backup, the email was received.
 

planetjoin

Well-Known Member
Oct 14, 2003
66
3
158
cPanel Access Level
Root Administrator
Yes !

Thanks cpanel people!
Kaden and Sean help me!

This was exactly the issue :

Looking at the Contact Manager in WHM, I see that backup notification priority is set to medium, but the email alert priority is set to high. This would cause the situation that you're seeing. The backups will try to send the email, but the priority will be at medium and cPanel will intercept that email and not send it because it's below the threshold set for email notifications.
Thanks
Fabian