Skip to content

Milestones

aled edited this page Jun 19, 2020 · 6 revisions

1. Setup Mail Server

  • Install linux server (Ubuntu 20.04)
  • Setup DNS
/etc/ddclient.conf
ssl=yes
protocol=namecheap
use=web, web=dynamicdns.park-your-domain.com/getip
server=dynamicdns.park-your-domain.com
login=fakemail.stream
password='[redacted]'
s1

/etc/default/ddclient

run_dhclient="false"
run_ipup="true"
run_daemon="true"
daemon_interval="120"

systemctl enable ddclient.service

  • Investigate and choose SMTP server.
    • qmail - poor documentation? Complicated.
    • opensmptd - has a recent RCE. Complicated.
    • postfix - ubuntu default.
    • subethasmtp (Java) - no recent dev activity
    • smtpserver (.Net) https://github.com/cosullivan/SmtpServer. Simple and configurable.
  • Install and configure SMTP server
    • old messages are deleted based on time/free memory/disk space
    • drop attachments and truncate messages
    • no outgoing connections
2. Configure SSL (LetsEncrypt)

Clone this wiki locally