After installing ssmtp and mailutils, writing to a file with 'echo' tries to send me an email to username@hostname. For example:
Sending mail with mailutils:
echo "Body text here." | mail -s "Subject text here." email@example.com
and I use:
echo "log content" > logfile.txt
to write content to a log file.
The problem is that when I want to wite to a log file, I get an deliverable email from Gmail saying username@hostname is unreachable, meaning that it interferes with mailutils.
I this a known issue with mailutils which needs a workaround or fix and how can I approach it?