Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146261 - outgoingip patch for qmail-1.03-r16
Summary: outgoingip patch for qmail-1.03-r16
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Qmail Team (OBSOLETE)
URL: http://www.euro-web.fr/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-04 05:53 UTC by David CHANIAL
Modified: 2006-09-08 13:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
qmail-remote-outgoingip.diff (qmail-remote-outgoingip.diff,1.38 KB, patch)
2006-09-04 05:58 UTC, David CHANIAL
Details | Diff
patch for ebuild qmail-1.03-r16 (qmail-1.03-r16.ebuild-outgoing.patch,458 bytes, text/plain)
2006-09-04 06:01 UTC, David CHANIAL
Details
Alternative outgoingip patch that works with a control file (qmail-1.03_outgoingips.patch,7.50 KB, patch)
2006-09-08 10:16 UTC, Gerardo Arceri
Details | Diff
Alternative outgoingip patch that works with a control file (qmail-1.03_outgoingips.patch,7.50 KB, patch)
2006-09-08 10:16 UTC, Gerardo Arceri
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David CHANIAL 2006-09-04 05:53:14 UTC
None
Comment 1 David CHANIAL 2006-09-04 05:55:56 UTC
Hi,

Most of the time i need qmail use a special ip address as
source for outgoing SMTP connexion, on a classic qmail
install, i use a patch named mail-remote-outgoingip :
http://www.fefe.de/qmail/qmail-remote-outgoingip.diff.gz

it permit me to SIMPLY put an IP address in :
/var/qmail/control/outgoingip

FOR THE GENTOO QMAIL EBUILD, i've modified the patch in
order he can run.

now, all is allright, i'll attach the patch in a few.

I Hope you can quickly put it on -r17, so i could use the
official ebuild instead the one in my overlay.

Best regards,
--
David CHANIAL
irc: davixx
Comment 2 David CHANIAL 2006-09-04 05:58:29 UTC
Created attachment 95956 [details, diff]
qmail-remote-outgoingip.diff

as promised :)
Comment 3 David CHANIAL 2006-09-04 06:01:44 UTC
Created attachment 95957 [details]
patch for ebuild qmail-1.03-r16

i think you don't need the lines i apply to the ebuild to take care of it, but, as i have it, i give you it :)

have fun...
Comment 4 Gerardo Arceri 2006-09-08 10:16:11 UTC
Created attachment 96401 [details, diff]
Alternative outgoingip patch that works with a control file

I've found this alternative patch and modified it to apply cleanly to gentoo 1.03-r16 ebuid. I consider that this patch is better at handling outgoing ips since it uses a more flexible control file ( control/outgoingips ) than the other patch that uses dns to resolve the outgoing ip for the originating domain, and it's useless if the domain is not hosted on the box running qmail, ( in my case we forward all outgoing mail from our hosting servers to a farm of qmail servers who actually send the messages to the remote destinations).
This patch will use the default ip if the domain is not listed in the file, and that's the only shortcoming, i'd like to specify a default ip that's not the box main ip, a-la control/outgoingip way, so if someone wants to add this feature it will be welcome.
The format of the control/outgoingips file is 
domain1.com:XXX.XXX.XXX.XXX
domain2.com:XXX.XXX.XXX.XXX
Comment 5 Gerardo Arceri 2006-09-08 10:16:56 UTC
Created attachment 96402 [details, diff]
Alternative outgoingip patch that works with a control file

I've found this alternative patch and modified it to apply cleanly to gentoo 1.03-r16 ebuid. I consider that this patch is better at handling outgoing ips since it uses a more flexible control file ( control/outgoingips ) than the other patch that uses dns to resolve the outgoing ip for the originating domain, and it's useless if the domain is not hosted on the box running qmail, ( in my case we forward all outgoing mail from our hosting servers to a farm of qmail servers who actually send the messages to the remote destinations).
This patch will use the default ip if the domain is not listed in the file, and that's the only shortcoming, i'd like to specify a default ip that's not the box main ip, a-la control/outgoingip way, so if someone wants to add this feature it will be welcome.
The format of the control/outgoingips file is 
domain1.com:XXX.XXX.XXX.XXX
domain2.com:XXX.XXX.XXX.XXX
Comment 6 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2006-09-08 13:25:55 UTC
We won't add new patches to mail-mta/qmail anymore. mail-mta/netqmail will soon
Comment 7 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2006-09-08 13:25:55 UTC
We won't add new patches to mail-mta/qmail anymore. mail-mta/netqmail will soon become the default qmail installation on Gentoo. It has much less patches and support for the env variable QMAIL_PATCH_DIR, in which you can specify a dir with your own patches.

Thus, closing as WONTFIX.