https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6221

           Summary: DnsResolver.pm attempts to bind ports at random
           Product: Spamassassin
           Version: 3.2.5
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Libraries
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=4551)
 --> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4551)
Patch to always use port 0 instead of trying ports at random

DnsResolver.pm attempts to bind UDP ports at random. This causes numerous
errors if listening on specific ports is restricted to specific
applications/users.

The correct way to acquire a UDP socket to listen for responses is to bind to
port 0 instead. The OS will automatically allocate an appropriate free port
from the range defined for local allocation (net.ipv4.ip_local_port_range on
Linux).

-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to