test-mail script and website removal

This commit is contained in:
Ivan Dimitrov 2023-11-09 12:09:02 +02:00
parent 003ff00e7c
commit 17532a2003
3 changed files with 56 additions and 9 deletions

43
bin/test-mail Executable file
View File

@ -0,0 +1,43 @@
#!/usr/bin/env bash
mail="
Subject: Invitation to Our Upcoming Tech Symposium
List-Unsubscribe: <mailto:unsubscribe@example.com>
Dear John Doe,
I trust this email finds you in good health. I am delighted to extend an invitation to you for our upcoming Tech Symposium, an event that promises to be both exciting and enlightening.
Event Details:
Title: Tech Symposium 2022
Date: April 15, 2022
Time: 10:00 AM to 5:00 PM
Location: Silicon Valley Convention Center, CA
The symposium will feature a variety of activities including keynote speeches from industry leaders, interactive workshops on the latest tech trends, and networking sessions with professionals from across the globe. We believe that your presence and participation would greatly enhance the event.
Please RSVP by April 1, 2022, so we can ensure we have a spot reserved for you. You can RSVP by replying to this email or contacting us at rsvp@example.com or 123-456-7890.
We look forward to your positive response and hope to see you at the Tech Symposium 2022.
Best Regards,
Jane Smith
Event Coordinator
jane.smith@example.com
123-456-7890
P.S. If you wish to stop receiving these emails, you can unsubscribe by replying with 'UNSUBSCRIBE' in the subject line.
"
name="Ivan Dimitrov"
from="ivan@idimitrov.dev"
rand="$(tr -dc A-Za-z0-9 </dev/urandom | head -c 13 ; echo '')"
to="test-$rand.srv1.mail-tester.com"
sendmail -F "$name" -f "$from" "$to" < "$mail"
echo "https://mail-tester.com/test-$rand"

View File

@ -6,10 +6,6 @@
inputs.nixpkgs.follows = "nixpkgs";
};
vpsadminos.url = "github:vpsfreecz/vpsadminos";
webshite = {
url = "github:ivandimitrov8080/idimitrov.dev";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
@ -17,18 +13,27 @@
, nixpkgs
, simple-nixos-mailserver
, vpsadminos
, webshite
, ...
}: {
}:
let
myOverlay = self: super: {
scripts = (super.buildEnv { name = "scripts"; paths = [ ./. ]; });
};
in
{
nixosConfigurations = {
mailserver = nixpkgs.lib.nixosSystem {
mailserver = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
modules = [
simple-nixos-mailserver.nixosModule
vpsadminos.nixosConfigurations.container
webshite.nixosModules.default
./mailserver
];
pkgs = import nixpkgs {
inherit system;
overlays = [ myOverlay ];
};
};
};
};

View File

@ -1,6 +1,5 @@
{ config, pkgs, lib, ... }:
{
website.enable = true;
mailserver.enable = true;
services = {
openssh = {