For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
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 \ |