--- /dev/null
+### -*-m4-*-
+###
+### Satellite host rewrite rules for distorted.org.uk Exim configuration
+###
+### (c) 2012 Mark Wooding
+###
+
+###----- Licensing notice ---------------------------------------------------
+###
+### This program is free software; you can redistribute it and/or modify
+### it under the terms of the GNU General Public License as published by
+### the Free Software Foundation; either version 2 of the License, or
+### (at your option) any later version.
+###
+### This program is distributed in the hope that it will be useful,
+### but WITHOUT ANY WARRANTY; without even the implied warranty of
+### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+### GNU General Public License for more details.
+###
+### You should have received a copy of the GNU General Public License
+### along with this program; if not, write to the Free Software Foundation,
+### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+SECTION(rewrite)m4_dnl
+## If our fully-qualified host name appears in an address then remove it. It
+## won't work, but some programs are too stupid to send mail properly. This
+## only gets done on true satellite hosts, because there's a plausible reason
+## for naming an explicit host if it can actually receive mail. We apply
+## this rewrite to both source and destination addresses, because programs
+## screw up both. This all makes me feel very sad.
+*@+thishost $1@$qualify_domain Eh
+
+DIVERT(null)
+###----- That's all, folks --------------------------------------------------