Issue
Why do we receive emails that go to root@localhost.localdomain?
We need to change the destination emails.
Environment
- CloudLinux OS;
- cldiag verifications.
Solution
A default email is root@localhost.localdomain
. Note that the settings of the mail server can change the final email.
You can change the email in the following ways:
- In your control panel by changing the mail server settings
- Set the desired email instead of the default CP value in the
EMAIL
option - Set the
CP
value in theEMAIL
option in thelicense_check
section. Add an option with the path to the panel script for receiving emails:{PANEL_NAME}_getemail_script=/path/to/getemail_script)
{PANEL_NAME}
is the name of the panel from thecldetect --detect-cp-name
command output.- If there is no panel script, the default email (
root@localhost.localdomain
) will be used. - The
/path/to/getemail_script
file should be executable and output to stdout the admin email to which an email with checks results will be sent. Note that the settings of the mail server can change the final email.
- If there is no panel script, the default email (
Useful links
https://docs.cloudlinux.com/shared/command-line_tools/#cldiag
Comments
0 comments
Please sign in to leave a comment.