summaryrefslogtreecommitdiff
path: root/debian/cf/feature/vnet.m4
diff options
context:
space:
mode:
Diffstat (limited to 'debian/cf/feature/vnet.m4')
-rw-r--r--debian/cf/feature/vnet.m447
1 files changed, 47 insertions, 0 deletions
diff --git a/debian/cf/feature/vnet.m4 b/debian/cf/feature/vnet.m4
new file mode 100644
index 0000000..56377f4
--- /dev/null
+++ b/debian/cf/feature/vnet.m4
@@ -0,0 +1,47 @@
+PUSHDIVERT(0)
+LOCAL_CONFIG
+#
+# Support routing of .rscs nodes via XAGENT
+#
+# Define vnet/rscs node hlq
+CAvnet rscs
+# Note: you'll to define your XAGENT node:
+#DAlexvmk.lexington.ibm.com
+dnl #
+dnl #
+dnl #
+LOCAL_RULE_3
+#
+# Support Lotus Notes and VM TCP/IP MTAs
+#
+# Remove stupid route addressing (%hack) added by VM TCP/IP
+R$* % ibmus.rscs < @ $+> $* $: $1 < @ us.ibm.com > $3
+R$* % ibmuk.rscs < @ $+> $* $: $1 < @ uk.ibm.com > $3
+R$* % $-.rscs < @ $+> $* $: $1 < @ $2.rscs > $4
+# Now, try the domaintable yet again...
+R$* < @ $-.rscs > $* $: $1 < @ $(domaintable $2.rscs $) > $3
+dnl #
+dnl #
+dnl #
+LOCAL_NET_CONFIG
+#------------------------------------------------------------------------
+# Handle RSCS/VM messages and messages addressed to sites internal to IBM
+#------------------------------------------------------------------------
+#
+
+# Skip any local addresses
+# (or we'll get a "mail loops back to itself" error
+R$* < @ $=w . > $* $@ $1 < @ $2 . > $3 regular local name
+R$* < @ $=w > $* $@ $1 < @ $2 . > $3 regular local name
+
+# Recipients inside IBM--transfer the mail directly.
+
+R$* < @ $+.ibm.com > $* $#smtp $@ $2.ibm.com $: $1 < @$2.ibm.com > $3
+R$* < @ $+.ibm.com. > $* $#smtp $@ $2.ibm.com $: $1 < @$2.ibm.com > $3
+
+# Recipients of the form user@node.vnet get rewritten to
+# user@node.RSCS, the message itself is forwarded to the RSCS/VM node
+# specified in $A.
+
+R$* < @ $-.$=A > $* $#smtp $@ $A $: $1 < @$2.RSCS > $4
+POPDIVERT