I have a standalone 18.04 server just for running a simple LAMP website. Sometimes when I log in to the server I get notified that I have mail (like cron/at job outputs), and then I read them using mutt. The problem is that I get to know their existence only when I log in. Is there a configuration somewhere to automatically forward these local mails to my company email address so that I really get active notifications?
p.s. Sendmail is also installed but the only configuration I made to it is
define(`SMART_HOST', `smtp.mycompany.com')dnl in
/etc/mail/sendmail.mc, so that my PHP application can send emails through SMTP server with just a few lines of codes.