You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@spamassassin.apache.org on 2019/04/06 13:50:35 UTC
[Bug 7703] New: sa-update aborts unnecessarily on IPv6-only hosts
with valid proxy
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7703
Bug ID: 7703
Summary: sa-update aborts unnecessarily on IPv6-only hosts with
valid proxy
Product: Spamassassin
Version: 3.4.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: sa-update
Assignee: dev@spamassassin.apache.org
Reporter: nik@naturalnet.de
Target Milestone: Undefined
Created attachment 5647
--> https://bz.apache.org/SpamAssassin/attachment.cgi?id=5647&action=edit
Patch to ignore check_mirror_af result if proxy is configured
We are using sa-update on a mail filter host that only has IPv6 to connect to
the outside. Our update channel, on the other hand, only supports IPv4.
To solve this problem, a Squid proxy server was installed on the gateway. It
serves as an HTTP proxy on IPv6 on the LAN and can connect to the outside with
IPv4.
Current result:
sa-update exits with
dbg: generic: reject mirror http://www.spamassassin.heinlein-support.de: no
common address family (IPv6)
channel: could not find working mirror, channel failed
Expected result:
sa-update should ignore the situation because it has an HTTP proxy to use, so
it does not need to open a socket to the mirror itself.
The issue is fixed by the attached patch. It ignores the check_mirror_af result
if a proxy for the mirror's protocol is defined in the environment.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7703] sa-update aborts unnecessarily on IPv6-only hosts with
valid proxy
Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7703
Kevin A. McGrail <km...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kmcgrail@apache.org
--- Comment #3 from Kevin A. McGrail <km...@apache.org> ---
Dominik, please take a look at adding documentation for this to be considered.
Also, please look at filing an ICLA: https://www.apache.org/licenses/icla.pdf
Question: would an IPv6 native mirror help with this issue?
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7703] sa-update aborts unnecessarily on IPv6-only hosts with
valid proxy
Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7703
Henrik Krohns <he...@hege.li> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
CC| |hege@hege.li
--- Comment #4 from Henrik Krohns <he...@hege.li> ---
Cleaned up the fix.
Sending spamassassin-3.4/sa-update.raw
Sending trunk/sa-update.raw
Transmitting file data ..done
Committing transaction...
Committed revision 1860874.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7703] sa-update aborts unnecessarily on IPv6-only hosts with
valid proxy
Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7703
RW <rw...@googlemail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rwmaillists@googlemail.com
--- Comment #1 from RW <rw...@googlemail.com> ---
It should also check for the HTTP_PROXY and HTTPS_PROXY environmental
variables which are supported by the 'fetch' utility.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7703] sa-update aborts unnecessarily on IPv6-only hosts with
valid proxy
Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7703
Dominik George <ni...@naturalnet.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #5647|0 |1
is obsolete| |
CC| |nik@naturalnet.de
--- Comment #2 from Dominik George <ni...@naturalnet.de> ---
Created attachment 5648
--> https://bz.apache.org/SpamAssassin/attachment.cgi?id=5648&action=edit
Patch to ignore check_mirror_af result if proxy is configured
Patch updated to also support upper case env variables.
--
You are receiving this mail because:
You are the assignee for the bug.