/[smeserver]/rpms/qpsmtpd/sme7/qpsmtpd-0.40-resolvable_fromhost.patch
ViewVC logotype

Contents of /rpms/qpsmtpd/sme7/qpsmtpd-0.40-resolvable_fromhost.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Aug 11 20:43:35 2008 UTC (16 years, 3 months ago) by charliebrady
Branch: MAIN
CVS Tags: qpsmtpd-0_40-1_10_el4_sme, qpsmtpd-0_40-1_11_el4_sme, qpsmtpd-0_40-1_12_el4_sme
Branch point for: qpsmtpd-0_40
* Mon Aug 11 2008 Charlie Brady <charlie_brady@mitel.com> 0.40-1.10.sme
- Fix resolvable_fromhost bug where one or more MX records points
  to unreachable hosts. [SME: 4403]

1 diff -ru qpsmtpd-0.40/plugins/require_resolvable_fromhost qpsmtpd-0.40.fix/plugins/require_resolvable_fromhost
2 --- qpsmtpd-0.40/plugins/require_resolvable_fromhost 2007-06-14 13:57:24.000000000 -0400
3 +++ qpsmtpd-0.40.fix/plugins/require_resolvable_fromhost 2008-08-11 16:26:59.000000000 -0400
4 @@ -53,7 +53,12 @@
5 $res->udp_timeout(30);
6 my @mx = mx($res, $host);
7 foreach my $mx (@mx) {
8 - return mx_valid($self, $mx->exchange, $host);
9 + # if any MX is valid, then we consider the domain
10 + # resolvable
11 + return 1 if mx_valid($self, $mx->exchange, $host);
12 + # if there are MX records, and we got here,
13 + # then none of them are valid
14 + return 0 if (@mx > 0);
15 }
16 my $query = $res->search($host);
17 if ($query) {

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed