Hi,
I am having an issue with mail delivery from my web server when
DoNoValidLocalSender=block, ForceNoValidLocalSender=1, DoNoSpoofing=1,
DoLocalSender=NotChecked. The mail server on the web server delivers
according to MX record. When messages are destined for local email
addresses, they almost always are from local addresses or from non-existent
address within a local domain. I have the IP address of the mail server on
the web server listed in noProcessingIPs, acceptAllMail, and ispip. Messages
are always blocked.
=========================================
sub LocalSenderOK contains the following:
... setup code and flagging ...
return 1 if $this->{relayok} && !$DoLocalSender;
return 1 if $this->{ispip} && !$DoLocalSender;
return 1 if $this->{acceptall} && !$DoLocalSender;
... more code ...
=========================================
Issue #1: LocalSenderOK does not honor noProcessing # return 1 if
$this->{noprocessing}; Test code of:
return 1 if $this->{noprocessing};
return 1 if $this->{relayok} && !$DoLocalSender;
return 1 if $this->{ispip} && !$DoLocalSender;
return 1 if $this->{acceptall} && !$DoLocalSender;
does pass the message. Remember, I have IP Address in noProcessingIPs and
DoLocalSender=NotChecked.
Also test code of:
return 1 if $this->{noprocessing} && !$DoLocalSender;
return 1 if $this->{relayok} && !$DoLocalSender;
return 1 if $this->{ispip} && !$DoLocalSender;
return 1 if $this->{acceptall} && !$DoLocalSender;
does pass the message. Remember, I have IP Address in noProcessingIPs and
DoLocalSender=NotChecked.
Issue #2: Maybe $this->{acceptall}, $this->{relayok}, and $this->{ispip} are
not set before LocalSenderOK is called. A test code of:
return 1 if $this->{acceptall};
return 1 if $this->{relayok} && !$DoLocalSender;
return 1 if $this->{ispip} && !$DoLocalSender;
return 1 if $this->{acceptall} && !$DoLocalSender;
did not pass the message. Remember, I have IP address in acceptAllMail
Issue #3: Based on my reading, DoLocalSender should flag whether or not a
check should be made for sender email address conforms to RFC822. Those
three lines are the only place where DoLocalSender appears (Web Page
exception). I do not see an RFC822 conformance test (which I would assume
means conforms structurally). All I see are tests for whether the sender
email address exists in LocalAddresses_Flat or LDAP.
Issue #4: When relayok or ispip or acceptall, DoLocalSender controls whether
or not DoNoValidLocalSender and DoNoSpoofing code is run. They are separate
tests. No indication is given that one is dependent on another. However, if
a conformance test existed, was requested and failed, then it would not make
any sense to run the DoNoValidLocalSender or DoNoSpoofing code. On the other
hand, If I did not request the DoLocalSender test, should it still perform
DoNoValidLocalSender or DoNoSpoofing???
Issue #5: This line "return 1 if ( $DoNoValidLocalSender == 0 );" appears
before DoNoSpoofing code. So, if I do not have DoNoValidLocalSender=1, then
DoNoSpoofing is ignored...
Michael Thomas
Mathbox
978-687-3300
1-877-MATHBOX (Toll Free)
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test