Summary: | outgoingip patch for qmail-1.03-r16 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | David CHANIAL <david> |
Component: | New packages | Assignee: | Qmail Team (OBSOLETE) <qmail-bugs+disabled> |
Status: | RESOLVED WONTFIX | ||
Severity: | enhancement | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://www.euro-web.fr/ | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
qmail-remote-outgoingip.diff
patch for ebuild qmail-1.03-r16 Alternative outgoingip patch that works with a control file Alternative outgoingip patch that works with a control file |
Description
David CHANIAL
2006-09-04 05:53:14 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 Created attachment 95956 [details, diff]
qmail-remote-outgoingip.diff
as promised :)
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...
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
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
We won't add new patches to mail-mta/qmail anymore. mail-mta/netqmail will soon 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. |