>This bit of code sets any address with a valid local domain to be a
>valid local email address. Which it should not do because the address
>is not listed in LocalAddresses_Flat.
This is a simple bool logic - let's have a look.
if (!$DoLDAP # no LDAP and
&&
"$u$h" =~ /^(.*@)(.*)$/
&&
! exists($DomainVRFYMTA{lc $2}) # no VRFY for the domain
and
&&
! exists($FlatVRFYMTA{lc "\...@$2"}) no VRFY for the domain
and
&&
"$u$h" =~ /^(.*)(@.*)$/
&&
(!$LocalAddresses_Flat or ! matchSL( $2, # (LocalAdr.. not
used - but if used, the domain is NOT (!!!!!) found there and
'LocalAddresses_Flat' ) )
&&
&localmail("$u$h") # the address is consider local (the
check for BlockreportDomain ...)
)
{
$this->{islocalmailaddress} = 1; # then set this flag
} else {
$this->{islocalmailaddress} = 0; # else unset this flag
}
As you can see - if LocalAddresses_Flat is not used ..... at least the
address must match the condition in &localmail to get the
{islocalmailaddress} flag.
The real address check is done some lines later.
I think your problem is a misconfiguration of any parameter.
Thomas
Andrew Porter <[email protected]>
11.11.2009 18:07
Bitte antworten an
ASSP development mailing list <[email protected]>
An
ASSP development mailing list <[email protected]>
Kopie
Thema
Re: [Assp-test] Antwort: Re: Antwort: Re: Validate Local Addresses ASSP
2.0.1(RC 0.5.01)
Thomas Eckardt/eck wrote:
>> LocalAddresses_Flat - which is a list of email addresses not domains
>
> If an address exists in LocalAddresses_Flat, which contains a domain
part
> '@example.com', than this domain is consider local.
So localDomains is obsoleted if LocalAddresses_Flat is used ?
Doesn't help my original problem either way - or help to explain what
actually happening though :o
if (!$DoLDAP
&&
"$u$h" =~ /^(.*@)(.*)$/
&&
! exists($DomainVRFYMTA{lc $2})
&&
! exists($FlatVRFYMTA{lc "\...@$2"})
&&
"$u$h" =~ /^(.*)(@.*)$/
&&
(!$LocalAddresses_Flat or ! matchSL( $2,
'LocalAddresses_Flat' ) )
&&
&localmail("$u$h")
)
{
$this->{islocalmailaddress} = 1;
This bit of code sets any address with a valid local domain to be a
valid local email address. Which it should not do because the address
is not listed in LocalAddresses_Flat.
(!$LocalAddresses_Flat or ! matchSL( $2, LocalAddresses_Flat' ) )
This condition says that if we arent using LocalAddresses_Flat (I am)
__or__ the domain of the recipient is not anywhere in
LocalAddresses_Flat (it will be - the domain is valid the user portion
is not) - then (assuming all the other conditions are true) the
recipient address is a local mail address.
It's not. It's not in LocalAddresses_Flat.
I replaced that condition with just && !$LocalAddresses_Flat and it
appears to be working ok so far for me, but like I said - I'm worried
that I've broken something else.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test
DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally
privileged and protected in law and are intended solely for the use of the
individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no
known virus in this email!
*******************************************************
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test