Skip to content

Instantly share code, notes, and snippets.

View vrilcode's full-sized avatar

vrilcode vrilcode

  • Europe
View GitHub Profile
@vrilcode
vrilcode / sysmail.sh
Last active August 31, 2025 14:55
Curl-based minimalistic nullmailer for sending system mails with simple queueing mechanism - implemented as shell script
#!/usr/bin/env bash
#
# sysmail.sh - Curl-based minimalistic nullmailer for system mails with simple queueing mechanism
# Requirements: GNU/Linux, bash, systemd, curl
#
# (c) 2025 Vrilcode <https://github.com/vrilcode>
# This is free software, and you are welcome to redistribute it under the terms of GNU GPL v3
#
# Script expects that your SMTP server supports SMTPS (TCP 465). If you want to use STARTTLS, you
# have to modify the curl call in send_mail() function.