summaryrefslogtreecommitdiffstats
path: root/debian/debconf/conf.d/rewrite/31_exim4-config_rewriting
diff options
context:
space:
mode:
Diffstat (limited to 'debian/debconf/conf.d/rewrite/31_exim4-config_rewriting')
-rw-r--r--debian/debconf/conf.d/rewrite/31_exim4-config_rewriting16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/debconf/conf.d/rewrite/31_exim4-config_rewriting b/debian/debconf/conf.d/rewrite/31_exim4-config_rewriting
new file mode 100644
index 0000000..b7415b6
--- /dev/null
+++ b/debian/debconf/conf.d/rewrite/31_exim4-config_rewriting
@@ -0,0 +1,16 @@
+
+### rewrite/31_exim4-config_rewriting
+#################################
+
+# This rewriting rule is particularly useful for dialup users who
+# don't have their own domain, but could be useful for anyone.
+# It looks up the real address of all local users in a file
+.ifndef NO_EAA_REWRITE_REWRITE
+*@+local_domains "${lookup{${local_part}}lsearch{/etc/email-addresses}\
+ {$value}fail}" Ffrs
+# identical rewriting rule for /etc/mailname
+*@ETC_MAILNAME "${lookup{${local_part}}lsearch{/etc/email-addresses}\
+ {$value}fail}" Ffrs
+.endif
+
+