Thursday, October 6, 2022

[SOLVED] Troubleshoot failed cron not sending emails

Issue

Here is the server info from lsb_release -a

src="https://i.stack.imgur.com/g7VLUm.png" alt="enter image description here" />

In our crontab, below the comments and above the cron commands we have [email protected], however no emails are being sent to [email protected]. I'm not sure if the server has sendgrid or any other emailing tools installed, or if they are needed. Our cron logs all currently get sent to a file at /var/mail/myusername, and I can hop in and see them with vim /var/mail/myusername. How can I troubleshoot this further?


Solution

Type mailx or install the package. If you need them to go to Google, then you need to install and configure a mta package such as postfix or exim. You also have a high enough rating to know that you do not post images where plain text will do.



Answered By - Bib
Answer Checked By - Senaida (WPSolving Volunteer)