On Sat, 13 Jun 2020 11:11:25 +0200 Bengt Gördén <bengan@bag.org> wrote:
simplest way to send mail from cron
I'd say that the easiest way to send mail from a box without any small helper programs is this:
Adjust for your needs and put in a script and call from cron
cat > /dev/tcp/yourserver.tld/25 <<EOF HELO MAIL FROM: dave@howorth.org.uk RCPT TO: dave@howorth.org.uk DATA Hello world . EOF
I thought I'd give this idea a try. When I run it (suitably adapted) on the pi, it says: -bash: connect: Connection refused -bash: /dev/tcp/acer-suse.fritz.box/25: Connection refused I guess I need to start some kind of minimal server and/or open a port or something on my opensuse box to receive inter-system mail from the LAN, but I have no idea how to do that (whatever 'that' is) and the YaST Mail Server setup doesn't seem to cover my case, at least not in a way that it's intelligble to me. :( Can anybody steer me in the right direction? TI, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org