Add int bind_by_changeoutgoingip() and int get_bind_ixlocal() functions in timeoutconn.c and extern them in timeoutconn.h

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
Andy Repton's outgoingip.patch with Sergio Gelato's fix

NOTE: This is a modified version so that it adds support to read
control/outgoingip6 in IPv6 enabled network.

Reference: http://www.qmail.org/outgoingip.patch
================================================================================
From: Sergio Gelato <Sergio.Gelato@astro.su.se>
To: Andy Repton <pm-outgoingip@boomerangdomains.com>,
        Russell Nelson <nelson@crynwr.com>
Subject: Bug in Andy Repton's outgoingip patch for qmail
Date: Fri, 4 Jul 2003 14:20:43 +0200

I have found a bug in Andy Repton's outgoingip patch for qmail 1.03
(http://www.qmail.org/outgoingip.patch).

The problem is the call to stralloc_copy(&outgoingip, "0.0.0.0");
the correct function to use is stralloc_copys().

An updated version of the patch follows. Besides fixing this bug,
I also added some documentation to the man pages and to qmail-showctl.c.

Best wishes,
Sergio Gelato
================================================================================

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
qmail-1.03-domainbindings-1.2

NOTE: This is a modified patch to support IPv6 addresses as well hence the
separator character we use is '|' instead of ':' to support parsing of IPv6
addresses.

control/domainbindings for IPv4
control/domainbindings6 for IPv6

DomainBindings by Charles Cazabon

For servers that host multiple domains or have multiple IP addresses assigned
to them, it is sometimes useful (or important) to have qmail use a specific IP
address for its outgoing mail. By default, qmail uses whatever address the OS
chooses for all outbound connections. With this patch, you can specify which
address to use. It uses a control file similar to smtproutes to specify the
outbound IP address to use, based on the sender's domain.

Original patch:
  http://pyropus.ca/software/misc/qmail-1.03-domainbindings-1.2.patch

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>
Add helohostbindings support

Signed-off-by: Giam Teck Choon <giamteckchoon@gmail.com>