Setting up your own e-mail/smtp for alerts?
Setting up your own e-mail/smtp for alerts?
Hi,
I'm looking for some way to send my own alerts via e-mail in some way. Whenever I try to search for this, most docker images have a much grander goal, and I have a hard time understanding how to use them for my purpose.
What would I want? It'd be nice to have a docker running some smpt-server (I suppose), so that I can make my own python script that scrapes a website, looks at some metric, and e-mails me whenever whatever I'm looking for is found. I only want it to be available on and to receive mails from localhost, no dns, just forward e-mails to my personal one, no web-interface, etc.
I'm quite new to self-hosting, but I hope you still understand what I'm looking for. Is it possible? Should I look for another solution? Will this not work? Any help/input very much welcome.
You don't need an SMTP server if you just want to send mail out outbound. Just use mailx.
This is the way, @mumblefish. I use
mail
frommailutils
:where
$filename
is a file containing the body content of the email.I wanted to try this first, I can see lemmy parsed a less-than into "lt;", which I replaced. But I'm getting no e-mails to the $recipient address. I set $emailFrom to a completely fake one, and another time as my personal, same as $recipient, address, but I'm not receiving any e-mails.
I tried a:
but I'm not receiving anything... hmm