sendmail

By Druss , 24 September, 2021

This is how you can send a message from the commandline using the mailx (mailutils) package.

$ mailx -s "Re: My mail subject" -r "" bar-recipient@example.com < contents.txt

Note, however, that I was unable to specify the sender's name. -r "Foo" and -r " (Foo)" did not work (and neither did the versions with the email addresses with the <> removed. What was sent instead was the username of the commandline account.

By Druss , 5 July, 2012

I just finished setting up postfix on a Debian 6 machine. All is peachy. However, when I checked my mail logs to see how things were going I noticed a number of entries for messages being sent from smmsp@example.com to root. Checking root's mail led to messages with the following content:
/usr/share/sendmail/sendmail: line 880: /usr/sbin/sendmail-msp: No such file or directory

All times are UTC. All content licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.