diff --git a/README b/README new file mode 100644 index 0000000000000000000000000000000000000000..52827478599857463b4d0ccb3e17318c0012fbc4 --- /dev/null +++ b/README @@ -0,0 +1,3 @@ + vastgota.lysator.liu.se MX == mail.lysator.liu.se +Lysators mailserver har regeln att + `vastgota.lysator.liu.se` skickas till `smtp:[vastgota.lysator.liu.se]:1025`, och tillåter brev till `test@` och `massutskick@`. diff --git a/iptables b/iptables new file mode 100644 index 0000000000000000000000000000000000000000..4656670b2033f1694f2e705e625769c470c6adf5 --- /dev/null +++ b/iptables @@ -0,0 +1,9 @@ +-P INPUT ACCEPT +-P FORWARD ACCEPT +-P OUTPUT ACCEPT +-N f2b-sshd +# These two should filter out anything to port 1025 except if it's from bernadotte. +-A INPUT -p tcp -m multiport --dports 22 -j f2b-sshd +-A INPUT -s mail.lysator.liu.se. -p tcp -m tcp --dport 1025 -j ACCEPT +-A INPUT -p tcp -m tcp --dport 1025 -j DROP +-A f2b-sshd -j RETURN diff --git a/wp-pubsish-by-email.service b/wp-pubsish-by-email.service new file mode 100644 index 0000000000000000000000000000000000000000..4735974c3a9a7bf7289abac28c7d7be641952429 --- /dev/null +++ b/wp-pubsish-by-email.service @@ -0,0 +1,11 @@ +[Unit] +Description=Publish WordPress entries by email +After=network.target + +[Service] +Type=simple +User=www-data +ExecStart=/opt/wp-publish-by-email/main.py + +[Install] +WantedBy=multi-user.target