On 12/06/2020 21.08, Dave Howorth wrote:
On Fri, 12 Jun 2020 20:01:27 +0200 "Carlos E. R." <robin.listas@telefonica.net> wrote:
On 12/06/2020 19.53, Peter Suetterlin wrote:
Dave Howorth wrote:
Thanks, Per. I was hoping to avoid 3.7 MB of stuff just to send a mail message, plus I'm somewhat intimidated by the postfix man page. Do I just need to set those lines in some file (which file?) and do nothing else, except perhaps have to do some systemd trickery to start the service?
On some older netboot machines I use a program called 'nail' for that. There's no package for it in OS, and I forgot where I found it. Guess it was a Slackware package (that is what runs on there). It's extremely convenient for this kind of things....
Ooops! Googling for it, it seems this is now 'Heirloom mailx', http://heirloom.sourceforge.net/mailx.html, which is what you actually get with the 'mailx' package in OS :P
Yes, I remember "mail" being changed to "nail" at some time or as an alternative, then being replaced with "mailx".
But mail(x) sends mail via postfix, at least on opensuse.
By default, yes, it does. The easiest method and most efficient. But it can be told to contact external mail providers, both for sending and fetching. I pasted the relevant section of the man page. The traditional "mail" simply called the "/usr/sbin/sendmail" program directly. But mailx talks smtp and can talk to to other machines via network instead. Assuming that Raspbian has mailx and not the original mail. I don't know. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)