On Fri, 12 Jun 2020 16:37:30 +0200 Per Jessen <per@computer.org> wrote:
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
Hmm, this is on a Pi remember, so the opensuse defaults don't apply. When I installed postfix (4 MB now!) it asked whether I wanted to preconfigure, so I said no. Now main.cf is fairly short: # See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #myorigin = /etc/mailname smtpd_banner = $myhostname ESMTP $mail_name (Raspbian) biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h readme_directory = no # See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on # fresh installs. compatibility_level = 2 So I could just add the two lines you indicated but is that sufficient? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org