I've installed ssmtp and configured /etc/ssmtp.conf file and can successfully send outgoing emails, but I cannot send anything internally, i.e. whenever I type
mail sergiy, which is my actual username on the machine, I can write and send a message, but I still get "No new mail".
Then a few minutes later postmaster in my actual, web-based mail will send a "Delivery Status Notification(Failure)" message. Neither
mail sergiy@localhost works.
Basically, I want to be able to receive mail on my laptop, not just send it.
I know I can check my web mail with
mutt -f imaps://firstname.lastname@example.org, but this is not what I'm trying to accomplish here.
Also, I've been getting emails of this type when I have root equal to my email address (in the file /etc/ssmtp/ssmpt.conf):
Subject: Cron <smmsp@sergiy-Satellite-L455D> test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp
And here is the message itself:
/usr/share/sendmail/sendmail: 899: /usr/share/sendmail/sendmail: /usr/sbin/sendmail-msp: not found
What does cron keep complaining about here?
Additional information: According to this page (namely system mail) if you execute
mail user, mailx assumes localhost, so you should be able to mail yourself or another user on your system. On my laptop neither my account, nor another account can receive mail if I do it this way.