Senderip
Added the ability for qmail-remote to bind() to a specific local IP address when sending outbound mail, based on the domain name of the sender. This replaces the "qmail-1.03-bind-interface.patch" from version 5f.
A replacement for that patch which includes the new functionality is available as newbind.patch, for people who may be using the existing patch and want the new feature but don't want to use the combined patch in full.
This functionality is controlled by a "control/senderip" file whose lines look like this:
domain:1.2.3.4
Any mail sent from an email address in the given domain will be sent "from" the given IP address. If qmail-remote is not able to bind() to that IP (i.e. if the IP isn't assigned to an interface on the machine, for example) then the message will stay in the queue until the problem is corrected (i.e. until a correct IP address is put into the file, or the domain is removed from the file.)
Note that if you have both a "control/senderip" file (to choose the source IP by sender domain name) and a "control/bindroutes" file (to choose the source IP by recipient IP address), the choice based on the domain name will take precendence.
Also note that if you wish to set a "default" source IP, you need to do this in the "control/bindroutes" file. This functionality was already there, I didn't see any reason to change it.
This feature was suggested by, and developed with the support of, GGMR Marketing Consultants.