Routing by DNS appending

From Halon, SMTP software for hosting providers
Jump to: navigation, search

As an alternative to scripted routing, you can use a DNS server for routing. This guide describes how to create custom zones in BIND.

Simply configure the transport for the "any" domain with;,

as destination, and configure your DNS server(s) according to the example below. You should change the IP ( to match your Halon system's address (as the name server sees it), and of course all hostnames and IP addresses (to match your configuration).


options { directory "/etc/namedb"; }
zone "" {
        allow-query {; };
        type master;
        file "";


$TTL    86400
@       IN      SOA (
                        2009012101       ; serial number YYMMDDNN
                        28800            ; Refresh
                        7200             ; Retry
                        864000           ; Expire
                        86400            ; Min TTL

	IN	NS	       
	IN	MX	10               mx
mx	IN	A