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

Reply via email to