On 14/06/2020 23.37, Dave Howorth wrote:
On Sun, 14 Jun 2020 19:47:55 +0200 Per Jessen <per@computer.org> wrote:
Dave Howorth wrote:
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. :(
If you have postfix running on 'acer-suse.fritz.box',
Yes, that's correct.
you probably just need to amend "inet_interfaces" to say "all".
Sorry, amend it where?
On the server postfix configuration. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)