qmail multiple IPs patch

I would like to know if somebody has used this patch:
http://rno-consultores.com/mail/qmail/qmail-1.03_outgoingips.patch

It’s a nice patch, based on the domain name qmail determines from which IP on the server it should send the emails.

If somebody used it, what would be the correct way to apply this patch since the interworx gmail is also patched by interworx.