Skip to content

Instantly share code, notes, and snippets.

View fedelemantuano's full-sized avatar
🏠
Working from home

Fedele Mantuano fedelemantuano

🏠
Working from home
View GitHub Profile
@fedelemantuano
fedelemantuano / ca.md
Created December 17, 2019 05:53 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@fedelemantuano
fedelemantuano / Dockerfile.postfix-catchall
Last active September 2, 2018 19:38 — forked from adepasquale/Dockerfile.postfix-catchall
Dockerfile for Postfix server with catch-all configuration
FROM alpine:latest
RUN apk add --no-cache postfix postfix-pcre rsyslog
RUN postconf -e "myhostname=localhost" \
&& postconf -e "mynetworks_style=host" \
&& postconf -e "mail_spool_directory=/var/mail/" \
&& postconf -e "virtual_alias_maps=pcre:/etc/postfix/virtual" \
&& echo "/.*/ root" > /etc/postfix/virtual \
&& postmap /etc/postfix/virtual \