On 15/06/2020 00.10, Dave Howorth wrote:
On Sun, 14 Jun 2020 22:37:02 +0100 Dave Howorth <dave@howorth.org.uk> 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?
OK, having RTFM I see that inet_interfaces is a parameter in master.cf and its default value is 'all', which may account for it not being present in the file but doesn't then account for my problem?
Plain text no authorization, in the "external" interface, probably. Check the mail log on the server. And must be in the same LAN, firewall on the outside. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)