Hi!
For LDAP lookup from ASSP work as need ( i.e."apply invalid address
rejected" ) for inbound external e-mail for not exist local recipients,
in ASSP 2.0.0 (11.13) and later version need remove/disable this line:
==
$this->{islocalmailaddress}=localmail($h) unless $this->{islocalmailaddress}
==
Tested on ASSP v2.0.0 (14.02) _
Test start 2008-03-03 16-21
For ASSP v2.0.0 (14.07) simply apply this path:
==
--- ..\v2.0.0 (14.07)\assp.pl Thu Mar 05 09:27:36 2009
+++ assp.pl VVM ASSP v2.0.0 (14.07) _ Thu Mar 05 09:54:11 2009
@@ -8857,7 +8857,7 @@
(scalar(keys %DomainVRFYMTA) && $CanUseNetSMTP &&
$uh =~ /^(.*@)(.*)$/ && exists($DomainVRFYMTA{lc
$2})));
- $this->{islocalmailaddress}=localmail($h) unless
$this->{islocalmailaddress};
+ # VVM $this->{islocalmailaddress}=localmail($h) unless
$this->{islocalmailaddress};
}
pbTrapDelete("$u$h") if $this->{islocalmailaddress};
} else {
==
Best regards, Victor Miasnikov
Microsoft Certified Technology Specialist
SysAdmin
System Technologies
http://www.st.by
P.S. My debug methtod:
==
--- assp.pl ASSP v2.0.0 (14.02) _ Thu Feb 26 14:26:19 2009
+++ assp.pl Debug VVM ASSP v2.0.0 (14.02) _ Tue Mar 03 16:14:09 2009
@@ -8805,6 +8805,9 @@
d("$u$h rejected by bounce address list\n");
} else {
$this->{islocalmailaddress}=1;
+
+ mlog($fh,"VVM invalid address
rejected islocalmailaddress Line 8808 ",1); # ## VVM
+
d("$u$h validated by flat LocalAddresses list\n");
}
}
@@ -8818,11 +8821,30 @@
(scalar(keys %DomainVRFYMTA) && $CanUseNetSMTP &&
$uh =~ /^(.*@)(.*)$/ && exists($DomainVRFYMTA{lc
$2})));
- $this->{islocalmailaddress}=localmail($h) unless
$this->{islocalmailaddress};
+ # ## VVM [
+ if ($this->{islocalmailaddress}) {
+ mlog($fh,"VVM invalid address rejected islocalmailaddress
=1 Line 8821 ",1); # ## VVM
+ } else {
+ mlog($fh,"VVM invalid address rejected islocalmailaddress
=0 Line 8821 ",1); # ## VVM
+ }
+ # ## VVM ]
+
+ # VVM !!!!!!!!!!!!!!!!!!!!!!!!!!!
+ # $this->{islocalmailaddress}=localmail($h) unless
$this->{islocalmailaddress};
+ #
+ # ## VVM [
+ if ($this->{islocalmailaddress}) {
+ mlog($fh,"VVM invalid address rejected islocalmailaddress
=1 Line 8824 ",1); # ## VVM
+ } else {
+ mlog($fh,"VVM invalid address rejected islocalmailaddress
=0 Line 8824 ",1); # ## VVM
+ }
+ # ## VVM ]
+
}
pbTrapDelete("$u$h") if $this->{islocalmailaddress};
} else {
$this->{islocalmailaddress}=localmail($h);
+ mlog($fh,"VVM invalid address rejected islocalmailaddress Line
8826 ",1); # ## VVM
}
if(!($this->{relayok}) && !$nolocalDomains && (!$rcptislocal ||
($u.$h)=~/\%/) || $u =~/\...@\w+/) {
sendque($fh, $NoRelaying."\r\n");
@@ -9034,6 +9056,14 @@
}
$this->{rcptValidated}=$this->{rcptNonexistent}=0;
+
+ # # ## VVM
+ # if ($this->{islocalmailaddress}) {
+ # mlog($fh,"VVM invalid address rejected $u$h islocalmailaddress =
1 ",1)
+ # } else {
+ # mlog($fh,"VVM invalid address rejected $u$h islocalmailaddress =
0 ",1)
+ # }
+ # # ##
if ($this->{addressedToSpamBucket}) {
==
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test