Hi Fritz,

I'm using v1.2.6(Final) and there are two calls in sub getline() to sub 
serverIsSmtpDestination() and sub delayok().  It's the 
serverIsSmtpDestination() routine that seems to invalidate the delay check when 
it is passed a FQDN instead of a hostip[:port] or __INBOUND__[:port].  It looks 
like serverIsSmtpDestination either needs some logic to distinguish between 
hostnames and IP's or smtpDestination hostnames need to be resolved to an IP 
early on in program execution and then only the IP passed to 
serverIsSmtpDestination.  Offending sub listed below...

disclaimer: I know _nothing_ about perl, and could be totally off with this - 
but it was fun tracing the source code anyway.

sub serverIsSmtpDestination {
  my $server=shift;
  my $peeraddr=$server->peerhost().':'.$server->peerport();
  my $destination;
  if ($smtpDestination =~ /^(__INBOUND__:)?(\d+)$/){
    $destination = $Con{$Con{$server}->{friend}}->{localip} .':'.$2;
  } else{
    $destination = $smtpDestination;
  }
  return ($peeraddr eq $destination || $peeraddr eq $destination.':25');
}

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Fritz
Borgstedt
Sent: Sunday, January 21, 2007 3:43 AM
To: Questions and Answers for users of ASSP Anti-Spam SMTP Proxy
Subject: Re: [Assp-user] SMTP delaying issue with upgraded ASSP
installations


Questions and Answers for users of ASSP Anti-Spam SMTP Proxy
<[email protected]> schreibt:
>p.s.  Any suggestions for making this a little less error prone,
>especially for new users.  A FAQ or wiki entry detailing this
>particular scenario, or perhaps coding enhancements to detect/correct
>this issue automatically?

I am willing to do, make a proposal, what to do when.

fritz


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Assp-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Assp-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-user

Reply via email to