summaryrefslogtreecommitdiffstats
path: root/deploy/postfix
diff options
context:
space:
mode:
authorGab <24553253+gabrix73@users.noreply.github.com>2026-08-16 17:35:18 +0200
committerGab <24553253+gabrix73@users.noreply.github.com>2026-08-16 17:35:18 +0200
commit294a05ead630776149db1e5cd637a40cf6875ee9 (patch)
tree4d2eee6086e8b42001f9029822db95e3a6729ad3 /deploy/postfix
parent404b81223688be027629f60ec5b1a00203da1768 (diff)
downloadm2usenet-and-mail2news-294a05ead630776149db1e5cd637a40cf6875ee9.tar.gz
m2usenet-and-mail2news-294a05ead630776149db1e5cd637a40cf6875ee9.tar.xz
m2usenet-and-mail2news-294a05ead630776149db1e5cd637a40cf6875ee9.zip
Secure private onion Mail2News ingress
Diffstat (limited to 'deploy/postfix')
-rw-r--r--deploy/postfix/diego-master.cf.fragment12
-rw-r--r--deploy/postfix/m2usenet-ingress1
-rw-r--r--deploy/postfix/victor-master.cf.fragment13
-rw-r--r--deploy/postfix/victor-transport.fragment3
4 files changed, 29 insertions, 0 deletions
diff --git a/deploy/postfix/diego-master.cf.fragment b/deploy/postfix/diego-master.cf.fragment
new file mode 100644
index 0000000..2a2e1d5
--- /dev/null
+++ b/deploy/postfix/diego-master.cf.fragment
@@ -0,0 +1,12 @@
+# Dedicated ingress for the private Mail2News onion hidden service.
+127.0.0.1:2526 inet n - n - 4 smtpd
+ -o syslog_name=postfix/m2usenet-onion
+ -o myhostname=xilb7y4kj6u6qfo45o3yk2kilfv54ffukzei3puonuqlncy7cn2afwyd.onion
+ -o smtpd_tls_security_level=none
+ -o smtpd_sasl_auth_enable=no
+ -o smtpd_relay_restrictions=reject_unauth_destination
+ -o smtpd_recipient_restrictions=check_recipient_access,hash:/etc/postfix/m2usenet-ingress,reject
+ -o smtpd_reject_unlisted_recipient=yes
+ -o smtpd_helo_required=yes
+ -o smtpd_recipient_limit=1
+ -o message_size_limit=131072
diff --git a/deploy/postfix/m2usenet-ingress b/deploy/postfix/m2usenet-ingress
new file mode 100644
index 0000000..fb42230
--- /dev/null
+++ b/deploy/postfix/m2usenet-ingress
@@ -0,0 +1 @@
+mail2news@xilb7y4kj6u6qfo45o3yk2kilfv54ffukzei3puonuqlncy7cn2afwyd.onion OK
diff --git a/deploy/postfix/victor-master.cf.fragment b/deploy/postfix/victor-master.cf.fragment
new file mode 100644
index 0000000..9012438
--- /dev/null
+++ b/deploy/postfix/victor-master.cf.fragment
@@ -0,0 +1,13 @@
+# Restricted target for the legacy qee4 hidden service. Do not forward it to
+# the ordinary SMTP listener, which may trust loopback through mynetworks.
+127.0.0.1:2527 inet n - n - 4 smtpd
+ -o syslog_name=postfix/qee-onion
+ -o myhostname=qee4i7sags6phsvb2yodwecfj7noimfhhalsjktsvikrwotxzis3raad.onion
+ -o smtpd_tls_security_level=none
+ -o smtpd_sasl_auth_enable=no
+ -o smtpd_relay_restrictions=reject_unauth_destination
+ -o smtpd_recipient_restrictions=reject_unauth_destination
+ -o smtpd_reject_unlisted_recipient=yes
+ -o smtpd_helo_required=yes
+ -o smtpd_recipient_limit=1
+ -o message_size_limit=131072
diff --git a/deploy/postfix/victor-transport.fragment b/deploy/postfix/victor-transport.fragment
new file mode 100644
index 0000000..cf7d820
--- /dev/null
+++ b/deploy/postfix/victor-transport.fragment
@@ -0,0 +1,3 @@
+# Exact lookup is required; relying only on a parent .onion key can select the
+# ordinary SMTP transport depending on Postfix parent-domain matching policy.
+xilb7y4kj6u6qfo45o3yk2kilfv54ffukzei3puonuqlncy7cn2afwyd.onion smtptor: