From: Chris N. <ch...@in...> - 2004-02-14 04:43:40
|
Well, I don't think it was the file. Very sorry for the early post. I use Merak, and had modified the PopB4SMTP routine. I had a bug in it and it's been fixed. The routine is posted below if you have Merak. Thanks, Chris sub PopB4SMTP { return 0 unless $PopB4SMTPFile; my $ip=shift; my $ind; my $ipMatch; my $preByte; my $postByte; open(MKPOPSMTP,"<$PopB4SMTPFile") or return 0 ; while ($line = <MKPOPSMTP>) { $ind = index($line,$ip); if ($ind > 0) { #find the match, and get it and the char before and after #if both of those aren't a number ord("0") & ord("9") 48 - 57 then I have the whole IP [ord is same as asc] #if not, this is a subset of a larger IP address and thus no good #ex: 66.35.250.203 I don't want to let 66.35.250.20 or 6.35.250.203 or 6.35.250.20 you get the idea $preByte = ord(substr($line, ($ind - 1), 1)); $postByte = ord(substr($line, ($ind + length($ip)), 1)); #0 based, so no + 1 if ( (($preByte < 48) || ($preByte > 57)) & (($postByte < 48) || ($postByte > 57)) ) { close(MKPOPSMTP); mlog(0,"PopB4SMTP OK for $ip"); return 1; } } } close(MKPOPSMTP); mlog(0,"PopB4SMTP NOT OK for $ip"); return 0; } ----- Original Message ----- From: "Chris Norman" <ch...@in...> To: <ass...@li...> Sent: Friday, February 13, 2004 7:41 PM Subject: Re: [Assp-user] Configuration Perplexity > I was having the same problem, but after your post here, I checked my domain > list file I was using. > > I had a carriage return at the end, thus I think it acted like I had a | at > the end. > > From examining the log, it looks like that did it, I'm no longer seeing the > whitelist msg when an email arrives from the outside world. > > Good thing to remember on any files then, for that matter. > > Chris > > ----- Original Message ----- > From: "Ged West" <gw...@gh...> > To: <ass...@li...> > Sent: Friday, February 13, 2004 2:17 PM > Subject: RE: [Assp-user] Configuration Perplexity > > > > > > I don't know if it is still a problem in the newer versions. But make > sure > > you don't have a | at the end of your whitelisted domains list. > > > > Ged > > > > > > -----Original Message----- > > From: Eric Pedersen [mailto:epe...@fa...] > > Sent: Friday, February 13, 2004 11:10 AM > > To: 'ass...@li...' > > Subject: [Assp-user] Configuration Perplexity > > > > > > Howdy all, > > > > I'm stumped as to what I've done wrong, but ASSP is adding all *incoming* > > email addresses to the Whitelist. We route Internet traffic through our > > gateway server, because that's where our first layer of anti-virus is. > ASSP > > and Exchange are running on the same server. > > > > Network layout: > > --------------- > > > > Internet -> Gateway Svr. -> ASSP/Exchange > > (ext IP / 192.168.1.1) -> (192.168.1.2 / 127.0.0.1) > > (anti-virus / smtp relay) > > > > Config: > > ------- > > > > SMTP Destination : 127.0.0.1:125 > > Listen Port : 25 > > Accept all mail : 127.0.0.|192.168. > > Local Domains : farris.com|farris.ca > > Relay Host : 192.168.1.1:25 > > Relay Port : 127.0.0.2 > > > > Regards, > > > > Eric > > epe...@fa... > > > > > > > > > > ------------------------------------------------------- > > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > > Build and deploy apps & Web services for Linux with > > a free DVD software kit from IBM. Click Now! > > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > > _______________________________________________ > > Assp-user mailing list > > Ass...@li... > > https://lists.sourceforge.net/lists/listinfo/assp-user > > > > --- > > Incoming mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.585 / Virus Database: 370 - Release Date: 2/11/2004 > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.585 / Virus Database: 370 - Release Date: 2/11/2004 > > > > > > > > ------------------------------------------------------- > > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > > Build and deploy apps & Web services for Linux with > > a free DVD software kit from IBM. Click Now! > > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > > _______________________________________________ > > Assp-user mailing list > > Ass...@li... > > https://lists.sourceforge.net/lists/listinfo/assp-user > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Assp-user mailing list > Ass...@li... > https://lists.sourceforge.net/lists/listinfo/assp-user |