Groups | Blog | Home
all groups > iis smtp nntp > september 2005 >

iis smtp nntp : Removing Email Attachments with IIS MTP


mas2df
9/14/2005 1:05:42 PM
Does anyone know of a good way to remove email attachments using IIS
SMTP? My goal is to have something running in the background that will
remove and save all attachments from a specific email address. Thanks.
Chris Crowe [IIS MVP]
9/15/2005 12:00:00 AM
Sorry but I do not think you will get this functionallity with the IIS SMTP
Service.

Maybe something like a content filtering SMTP gateway!

--

cheers

Chris

Chris Crowe [IIS MVP]
http://blog.crowe.co.nz


[quoted text, click to view]

Al Mulnick
9/15/2005 7:31:32 AM
Perhaps an event sink?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsmtps/html/transportevents.asp
http://blogs.technet.com/exchange/archive/2004/06/16/157550.aspx

Al

[quoted text, click to view]

Steve Schofield
9/18/2005 7:17:04 PM
The closest thing I have seen this is ORF
http://www.vamsoft.com/orf/orfee_features.asp#fattkwd For the adventurous
some. You could setup a box all the mail went through and strip any
attachments then forward to your IIS SMTP server.

Steve

[quoted text, click to view]

Al Mulnick
9/19/2005 12:00:00 AM
Did you read the link to the event sync information? Does that still
constitute third party software in your mind even though you can write it
yourself (same as a script)?

If that doesn't work, you *could* write a script that walks the directory
after the mail is delivered into it and for each message found evaluate for
the address and then remove the attachment. Would be a latent process,
but...

Al


[quoted text, click to view]

mas2df
9/19/2005 6:55:37 AM
Thanks for the help. The server in question is running Windows 2000
and IIS 5.0 and due to some restrictions, they don't want us putting an
email client or any other 3rd party software on the server. Is there a
way to run scripts that would be able to strip attachments from the
emails?
mas2df
9/19/2005 7:10:17 AM
Thanks for the help. Unfortunately, we aren't able to put an email
client or any 3rd party software on the server. For clarification, the
server is running Windows 2000 with IIS 5.0. Is there a way to write
scripts that would be able to strip the attachments?
mas2df
9/19/2005 10:58:26 AM
The previous post was a repeat - sorry about that.

I have found out that the mail server is running Solaris and the other
server is the one running Windows 2000 and IIS 5.0. Will the event
sinks still be the best way to go about saving the attachments coming
into the Solaris server? I am wondering if the event sinks are
entirely necessary or if some other simple scripting could do the job.

Thanks a lot for your help.
mas2df
9/19/2005 11:36:29 AM
I probably should be more clear about my problem. Server 1 is a mail
server running Solaris and Server 2 is running Windows 2000 with IIS
5.0 and SMTP. I need to find the emails coming into Server 1 from a
specific sender and detach all attachments and save them on Server 2.
I cannot install a mail client on Server 2, so the solution needs to be
as minimal as possible (due to bureaucracy).

Does this help clarify? Thanks.
mas2df
9/19/2005 12:01:18 PM
I think you have hit upon the two ideas I was looking at. I think I am
going to end up creating a mail client on Server 2 to pull emails from
Server 1 using POP3, then grab the attachments from the emails once
they are on Server 2. It pretty much reinvents the wheel and calls it
a different name, but it should get the job done. Thanks a lot for
your input.
Al Mulnick
9/19/2005 2:01:06 PM
Hmm... If the IIS server is not running SMTP then event sync won't be of
use.

Can you reiterate the messaging topology in a more graphical fashion?
something like IIS web application --> IISSMTP ---> Sendmail --> etc would
be great.

Al

[quoted text, click to view]

Al Mulnick
9/19/2005 2:43:43 PM
In that case, the mail coming into the organization is never reaching server
2?
Why not write the script according to the Sendmail rules then?
Sendmail has some hooks that you can use or you could use PERL and just have
it wake up on a regular basis to clean the attachments out.

You could have a script run on the IIS server where you basically write your
own mail client. Seems silly, but what the heck. You could also have the
Sendmail server forward mail to the IIS server for that address and then you
could use an event sync or a script to clean the attachments off. Kind of a
push vs. pull decision.

Better?



[quoted text, click to view]

AddThis Social Bookmark Button