This question may not belong here. But people here can help.

I backup files for clients. After it is done, I run a power shell script to email clients and myself that backup is completed. Problem is that I have to put an email login/password in that script in order to do that. Obviously, this is not a perfect solution.

I have been thinking about various ways, e.g. write an exe file and hard code password. problem is that what if I need to change password.

Any suggestions? Thanks,

2 points

If you’re sending email to yourself and you use your own SMTP server as the outgoing, you don’t need auth.

Drop the client off the emails to avoid relaying.

permalink
report
reply
0 points

if the message itself is not important/sensitive, or can be suitably obfuscated without loss, use ntfy.sh

  • pick a word. Let’s say you pick Quei3Oju
  • install ntfy.sh app on your phone, and subscribe to the channel Quei3Oju
  • send messages from the server using curl -d "Backup successful" ntfy.sh/Quei3Oju

no passwords, no secrets. Risk: anyone who knows that word (or the operator of ntfy.sh) can see your messages. Hence why the point about sensitivity of the message itself

Edit 1: this is literally the main example if you browse to ntfy.sh :)

Edit 2: what a coincidence; I just saw this thread: https://old.reddit.com/r/selfhosted/comments/17ke5ax/ntfy_is_a_great_tool_what_do_you_use_it_for/ in the same sub!

permalink
report
reply
1 point

This is a better one. Thanks!

permalink
report
parent
reply

Self-Hosted Main

!main@selfhosted.forum

Create post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

For Example

  • Service: Dropbox - Alternative: Nextcloud
  • Service: Google Reader - Alternative: Tiny Tiny RSS
  • Service: Blogger - Alternative: WordPress

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

Community stats

  • 17

    Monthly active users

  • 1.8K

    Posts

  • 11K

    Comments

Community moderators