Hi all,

Searched high n' low - including this NG - hoping someone might have got
this working.

I have used the ISA SMTP filtering...
ISA Management, Servers and Arrays, <Server>, Extensions, Application
Filters, SMTP Filter, Users / Domains (tab).

and in the Rejected Domains bit, I have entries like:
.ar
.cn
.cz
.kr
.ru
etc

but none of them are working. I'm still getting email from those
domains. Why ???

Yep, the filter is applied! :)

Any replies - please reply and cut-off here, appreciated!
===========================


Of possible interest, I'm deleting the contents of the Badmail folder
via Script - scheduled via the AT command...

one line...
at 6:30pm /every:M,T,W,Th,F,S,Su f:\util
\DeleteBadmailfolderOlderThan1Days.vbs

I modified a "delete file" script - can't recall where it came from,
prolly MS scripts collection somewhere - that I use on client domains to
delete files older than 7 days (changed that for my purposes) for a
"GTemp" folder (mapped to G: for all users) on the server that users can
"use for anything they want" - without fear it will overflow or get out
of hand. Users are aware (hopefully) that it's a "temp area" that files
will only last for 7 days in:

DeleteBadmailfolderOlderThan1Days.vbs
=====================================
' folder to start search in...
path = "F:\Program Files\Exchsrvr\Mailroot\vsi 1\BadMail"

' delete files older than 1 days...
killdate = date() - 1

arFiles = Array()
set fso = createobject("scripting.filesystemobject")

' Don't do the delete while you still are looping through a
' file collection returned from the File System Object (FSO).
' The collection may get mixed up.
' Create an array of the file objects to avoid this.
'
SelectFiles path, killdate, arFiles, true

nDeleted = 0
for n = 0 to ubound(arFiles)
'=================================================
' Files deleted via FSO methods do *NOT* go to the recycle bin!!!
'=================================================
on error resume next 'in case of 'in use' files...
arFiles(n).delete true
if err.number <> 0 then
wscript.echo "Unable to delete: " & arFiles(n).path
else
nDeleted = nDeleted + 1
end if
on error goto 0
next

' msgbox nDeleted & " of " & ubound(arFiles)+1 & " eligible files were
deleted"


sub SelectFiles(sPath,vKillDate,arFilesToKill,bIncludeSubFolders)
on error resume next
'select files to delete and add to array...
'
set folder = fso.getfolder(sPath)
set files = folder.files

for each file in files
' uses error trapping around access to the
' Date property just to be safe
'
dtlastmodified = null
on error resume Next
dtlastmodified = file.datelastmodified
on error goto 0
if not isnull(dtlastmodified) Then
if dtlastmodified < vKillDate then
count = ubound(arFilesToKill) + 1
redim preserve arFilesToKill(count)
set arFilesToKill(count) = file
end if
end if
next

if bIncludeSubFolders then
for each fldr in folder.subfolders
SelectFiles fldr.path,vKillDate,arFilesToKill,true
next
end if
end sub


--
Duncan

Re: ISA SMTP filter not working.. by Mariette

Mariette
Wed Mar 09 04:48:59 CST 2005

In news:MPG.1c98427a5f67c7df989785@msnews.microsoft.com,
Duncan McC <hard@work.ok> wrote:

> Hi all,
>
> Searched high n' low - including this NG - hoping someone might have
> got this working.
>
> I have used the ISA SMTP filtering...
> ISA Management, Servers and Arrays, <Server>, Extensions, Application
> Filters, SMTP Filter, Users / Domains (tab).
>
> and in the Rejected Domains bit, I have entries like:
> .ar
> .cn
> .cz
> .kr
> .ru
> etc
>
> but none of them are working. I'm still getting email from those
> domains. Why ???
>
> Yep, the filter is applied! :)

Did you publish Exchange in ISA? You cannot just open port 25 and then
expect SMTP filtering to work because all traffic will go directly into
Exchange and ISA will do nothing.

--
Mariëtte Knap - MVP
http://www.smallbizserver.net
Take part in SBS forum:
http://www.smallbizserver.net/Default.aspx?tabid=154



Re: ISA SMTP filter not working.. by Duncan

Duncan
Wed Mar 09 05:29:35 CST 2005

In article <O1VbcWJJFHA.2628@tk2msftngp13.phx.gbl>,
mariette@smallbizserver.local says...
> In news:MPG.1c98427a5f67c7df989785@msnews.microsoft.com,
> Duncan McC <hard@work.ok> wrote:
>
> > Hi all,
> >
> > Searched high n' low - including this NG - hoping someone might have
> > got this working.
> >
> > I have used the ISA SMTP filtering...
> > ISA Management, Servers and Arrays, <Server>, Extensions, Application
> > Filters, SMTP Filter, Users / Domains (tab).
> >
> > and in the Rejected Domains bit, I have entries like:
> > .ar
> > .cn
> > .cz
> > .kr
> > .ru
> > etc
> >
> > but none of them are working. I'm still getting email from those
> > domains. Why ???
> >
> > Yep, the filter is applied! :)
>
> Did you publish Exchange in ISA? You cannot just open port 25 and then
> expect SMTP filtering to work because all traffic will go directly into
> Exchange and ISA will do nothing.

Cheers for the reply, Mariette,
I've seen and heard a bit about that (in the help etc) - and seen there
is a wizard to do this (I've backed out of the wizards before completion
so far - I get a bit scared of what wizards do sometimes). Can you
elaborate on what I should see in ISA? And perhaps, what I should do,
to publish ES in ISA? I'd sorta prefer to do this the non-wizard way -
unless I hear it's absolutely safe. Part of the reason is that I expect
it (ES to be published in ISA) as a part of the SBS setup by default.
Presumably that ain't the case?

--
Duncan

Re: ISA SMTP filter not working.. by Duncan

Duncan
Thu Mar 10 21:46:19 CST 2005

In article <MPG.1c99a545db7a0b15989789@msnews.microsoft.com>,
hard@work.ok says...
> In article <O1VbcWJJFHA.2628@tk2msftngp13.phx.gbl>,
> mariette@smallbizserver.local says...
> > In news:MPG.1c98427a5f67c7df989785@msnews.microsoft.com,
> > Duncan McC <hard@work.ok> wrote:
> >
> > > Hi all,
> > >
> > > Searched high n' low - including this NG - hoping someone might have
> > > got this working.
> > >
> > > I have used the ISA SMTP filtering...
> > > ISA Management, Servers and Arrays, <Server>, Extensions, Application
> > > Filters, SMTP Filter, Users / Domains (tab).
> > >
> > > and in the Rejected Domains bit, I have entries like:
> > > .ar
> > > .cn
> > > .cz
> > > .kr
> > > .ru
> > > etc
> > >
> > > but none of them are working. I'm still getting email from those
> > > domains. Why ???
> > >
> > > Yep, the filter is applied! :)
> >
> > Did you publish Exchange in ISA? You cannot just open port 25 and then
> > expect SMTP filtering to work because all traffic will go directly into
> > Exchange and ISA will do nothing.
>
> Cheers for the reply, Mariette,
> I've seen and heard a bit about that (in the help etc) - and seen there
> is a wizard to do this (I've backed out of the wizards before completion
> so far - I get a bit scared of what wizards do sometimes). Can you
> elaborate on what I should see in ISA? And perhaps, what I should do,
> to publish ES in ISA? I'd sorta prefer to do this the non-wizard way -
> unless I hear it's absolutely safe. Part of the reason is that I expect
> it (ES to be published in ISA) as a part of the SBS setup by default.
> Presumably that ain't the case?

ES is published - and I *think* the SMTP rules are working.

--
Duncan