Dave Howorth wrote:
On Fri, 12 Jun 2020 14:46:52 +0200 Per Jessen <per@computer.org> wrote:
Dave Howorth wrote:
I run some cron jobs on a Raspberry Pi and would like to see output emailed by cron on my [separate] opensuse box. The Pi by default has no mail software installed, so I'd like to find the smallest/simplest way of enabling its cron to forward mail to my opensuse host on the LAN.
My opensuse box has the usual postfix, mailx etc stuff, which I confess to not knowing much about, and claws-mail that I use as my MUA.
Do I need to install (and configure :( ) postfix on my Pi or is there some other way to send mail that is less complicated. Or some other way to get cron to send its output?*
I would install postfix and set
"hostname=your.pi.name" "relayhost=your.opensuse.box".
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.
Ignore the man page for now :-) the openSUSE default config is sufficient for sending mails.
Do I just need to set those lines in some file (which file?)
Sorry, yes - in /etc/postfix/main.cf There is already lines with relayhost= and hostname=, just edit those.
and do nothing else, except perhaps have to do some systemd trickery to start the service?
Yup: systemctl enable --now postfix -- Per Jessen, Zürich (28.4°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org