add markdown
This commit is contained in:
parent
eac272444f
commit
87a2ae27c6
16
README.md
16
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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue