PDA

View Full Version : Patching qmail - outgoing ip address selection


Muad
10-16-2009, 06:12 AM
Hi guys,
This I really need your help with. I desperately need to patch qmail with following patch:

http://www.qmail.org/outgoingip.patch

By default qmail-remote sends email from first ip adress on interface which on our server is not (and cannot be) the IP address of mail server. This causes problems with spam detection, SPF records settings etc. I really need to be able to tell qmail-remote which IP address to connect to external SMTP servers from. The patch allows it.

Since qmail comes from interworx-cp repository, I have no clue on how to proceed with patching it. Can, please, some of you guys give me needed hints?

Or even better, would you consider adding this patch to your qmail version? It does not change default behavior, just adds new feature. And it is a feature I think a lot of other interworx cp users would benefit from.

Thanks very much for help. M.

IWorx-Paul
10-16-2009, 09:09 PM
Hi,

If you're running interworx version 4.0 you already have an equivalent patch installed.

To set a default outgoing ip for all mail, add the following to a /var/qmail/control/bindroutes file:

:ip.ad.dr.es

To set the outgoing ip for a given domain only, add the following to a /var/qmail/control/senderip file:

domain.com:ip.ad.dr.es

Paul

Muad
10-19-2009, 04:19 AM
Great. Thanks, I'll try it.