From 87a2ae27c6ef6bb820014282b0b1477489bb0d21 Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Fri, 4 Dec 2020 20:11:11 +0100 Subject: [PATCH] add markdown --- README.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8249682..30a0af1 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ https://github.com/hetznercloud/cli Temporaer einen API Key erstellen (nachher wieder loeschen) +```bash $ hcloud context create nbit.ch $ hcloud image list # zeigt moegliche Images $ hcloud server-type list # zeigt moegliche Typen @@ -25,28 +26,31 @@ $ hcloud server create --name mail --image centos-8 --type cx21 --ssh-key joerg@ $ hcloud server set-rdns mail --hostname mail.nbit.ch $ IPV6="$(hcloud server ip mail -6)" $ hcloud server set-rdns mail --ip $IPV6 --hostname mail.nbit.ch +``` DNS Eintraege erstellen: +```bash $ hcloud server ip mail $ hcloud server ip mail -6 +``` Root-Passwort setzen (das machen wir von Hand) ## Ansible Playbook laufen lassen - +```bash $ cd ansible $ ansible-playbook -i production mailserver.yml - +``` ## Zertifikate erzeugen - +```bash # systemctl stop nginx # certbot certonly --noninteractive --standalone --agree-tos -m postmaster@nbit.ch -d mail2.nbit.ch -d smtp.nbit.ch -d imap.nbit.ch # systemctl start nginx - +``` ## DB erstellen - +```bash # mysql MariaDB [(none)]> create database vmail CHARACTER SET 'utf8'; MariaDB [(none)]> grant select on vmail.* to 'vmail'@'localhost' identified by 'vmaildbpass'; @@ -95,6 +99,6 @@ CREATE TABLE `tlspolicies` ( PRIMARY KEY (`id`), UNIQUE KEY (`domain`) ); - +``` ## DKIM Signing (manuell einrichten)