The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Missing cpbackup email notification

Discussion in 'Data Protection' started by egrueda, Jun 16, 2013.

  1. egrueda

    egrueda Member

    Joined:
    Mar 29, 2011
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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@example.com 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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,765
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. egrueda

    egrueda Member

    Joined:
    Mar 29, 2011
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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@example.com via..." in the log file, so the email was never generated and never processed by exim.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,765
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  5. planetjoin

    planetjoin Active Member

    Joined:
    Oct 14, 2003
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    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 => my@email.com 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 <= root@myserver.com U=root P=local S=1024861 T="[cpbackup] Backup complete on myserver.com" for my@email.com
    2014-03-29 07:23:52 1WTqQZ-0000mN-QZ => me <my@email.com> 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
     
  6. planetjoin

    planetjoin Active Member

    Joined:
    Oct 14, 2003
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    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 : my@email.com). 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 my@email.com 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
     
  7. planetjoin

    planetjoin Active Member

    Joined:
    Oct 14, 2003
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    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 => my@email.com via EMAIL [level => 2]
    Notification => root@myserver.com via PAGER [level => 2]

    The email NEVER received in my@email.com

    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
    == my@email.com 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
     
  8. planetjoin

    planetjoin Active Member

    Joined:
    Oct 14, 2003
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,765
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  10. planetjoin

    planetjoin Active Member

    Joined:
    Oct 14, 2003
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    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 => my@email.com via EMAIL [level => 2]
    Notification => myother@email.com 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
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,765
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  12. planetjoin

    planetjoin Active Member

    Joined:
    Oct 14, 2003
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello Michael

    I give up! :) the ticket number is #4770649

    Regards
    Fabian
     
  13. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    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.
     
  14. planetjoin

    planetjoin Active Member

    Joined:
    Oct 14, 2003
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Yes !

    Thanks cpanel people!
    Kaden and Sean help me!

    This was exactly the issue :

    Thanks
    Fabian
     
Loading...

Share This Page