I mostly greeted with a message you have mail when I run - cat /var/spool/mail/root the contents of the last mail is like; Code: From: [email protected] (Cron Daemon) To: [email protected] Subject: Cron <root@server2> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin> X-Cron-Env: <HOME=/root> X-Cron-Env: <LOGNAME=root> Message-Id: <[email protected]> Date: Tue, 6 Nov 2018 06:35:08 +0530 (IST) /etc/cron.daily/logrotate: error: error running shared postrotate script for '/var/log/mysql.log /var/log/mysql/*log ' run-parts: /etc/cron.daily/logrotate exited with return code 1 How this can be fixed? also is it possible to send these mails using smtp?
See e.g.: https://lornajane.net/posts/2008/Logrotate-Error-on-Ubuntu Yes, in /etc/aliases http://blog.bobbyallen.me/2013/02/0...t-mail-to-an-external-email-address-on-linux/