473,654 Members | 3,184 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

intercepting smtp email

I want to write an NT service that will intercept any outgoing smtp
traffic, like Norton Antivirus does. Can anyone tell me how I can do
something like this in Python? I do not know how to intercept the
outgoing traffic, specifically.

Any help is greatly appreciated.

Thanks,
Scott
Jul 18 '05 #1
13 3955
I'm no star at this but maybe you can check the code in
http://www.gnu.org/software/mailman

..r!kard

"Scott Hathaway" <sc***@hcsprogr amming.com> wrote in message
news:c6******** *************** ***@posting.goo gle.com...
I want to write an NT service that will intercept any outgoing smtp
traffic, like Norton Antivirus does. Can anyone tell me how I can do
something like this in Python? I do not know how to intercept the
outgoing traffic, specifically.

Any help is greatly appreciated.

Thanks,
Scott

Jul 18 '05 #2
Or maybe you can find it here: http://twistedmatrix.com

Basically i think you have to write your own SMTP-server if nobody else
hasn't done it already...

..r!kard
".r!kard" <rn**@algonet.s e> wrote in message
news:bl******** **@green.tninet .se...
I'm no star at this but maybe you can check the code in
http://www.gnu.org/software/mailman

.r!kard

"Scott Hathaway" <sc***@hcsprogr amming.com> wrote in message
news:c6******** *************** ***@posting.goo gle.com...
I want to write an NT service that will intercept any outgoing smtp
traffic, like Norton Antivirus does. Can anyone tell me how I can do
something like this in Python? I do not know how to intercept the
outgoing traffic, specifically.

Any help is greatly appreciated.

Thanks,
Scott


Jul 18 '05 #3
Even more results of Googeling:
http://www.vex.net/parnassus/apyllo.py?so=d&find=SMTP

..r!kard

".r!kard" <rn**@algonet.s e> wrote in message
news:bl******** **@green.tninet .se...
Or maybe you can find it here: http://twistedmatrix.com

Basically i think you have to write your own SMTP-server if nobody else
hasn't done it already...

.r!kard
".r!kard" <rn**@algonet.s e> wrote in message
news:bl******** **@green.tninet .se...
I'm no star at this but maybe you can check the code in
http://www.gnu.org/software/mailman

.r!kard

"Scott Hathaway" <sc***@hcsprogr amming.com> wrote in message
news:c6******** *************** ***@posting.goo gle.com...
I want to write an NT service that will intercept any outgoing smtp
traffic, like Norton Antivirus does. Can anyone tell me how I can do
something like this in Python? I do not know how to intercept the
outgoing traffic, specifically.

Any help is greatly appreciated.

Thanks,
Scott



Jul 18 '05 #4

".r!kard" <rn**@algonet.s e> wrote in message
news:bl******** **@green.tninet .se...
I'm no star at this but maybe you can check the code in
http://www.gnu.org/software/mailman

.r!kard
I think he's asking for a mini-firewall. In other words, is something
he doesn't know about sending messages on port 25?

John Roth

"Scott Hathaway" <sc***@hcsprogr amming.com> wrote in message
news:c6******** *************** ***@posting.goo gle.com...
I want to write an NT service that will intercept any outgoing smtp
traffic, like Norton Antivirus does. Can anyone tell me how I can do
something like this in Python? I do not know how to intercept the
outgoing traffic, specifically.

Any help is greatly appreciated.

Thanks,
Scott


Jul 18 '05 #5
Now you got me corious, is that possible in python?
Possibly by extending it with som C of course...

..r!kard
"John Roth" <ne********@jhr othjr.com> wrote in message
news:vn******** ****@news.super news.com...

".r!kard" <rn**@algonet.s e> wrote in message
news:bl******** **@green.tninet .se...
I'm no star at this but maybe you can check the code in
http://www.gnu.org/software/mailman

.r!kard


I think he's asking for a mini-firewall. In other words, is something
he doesn't know about sending messages on port 25?

John Roth

"Scott Hathaway" <sc***@hcsprogr amming.com> wrote in message
news:c6******** *************** ***@posting.goo gle.com...
I want to write an NT service that will intercept any outgoing smtp
traffic, like Norton Antivirus does. Can anyone tell me how I can do
something like this in Python? I do not know how to intercept the
outgoing traffic, specifically.

Any help is greatly appreciated.

Thanks,
Scott



Jul 18 '05 #6

".r!kard" <rn**@algonet.s e> wrote in message
news:bl******** **@green.tninet .se...
Now you got me corious, is that possible in python?
Possibly by extending it with som C of course...
I've got no idea where you would put that kind of hook
in Windows.

John Roth

.r!kard
"John Roth" <ne********@jhr othjr.com> wrote in message
news:vn******** ****@news.super news.com...

".r!kard" <rn**@algonet.s e> wrote in message
news:bl******** **@green.tninet .se...
I'm no star at this but maybe you can check the code in
http://www.gnu.org/software/mailman

.r!kard


I think he's asking for a mini-firewall. In other words, is something
he doesn't know about sending messages on port 25?

John Roth

"Scott Hathaway" <sc***@hcsprogr amming.com> wrote in message
news:c6******** *************** ***@posting.goo gle.com...
> I want to write an NT service that will intercept any outgoing smtp
> traffic, like Norton Antivirus does. Can anyone tell me how I can do > something like this in Python? I do not know how to intercept the
> outgoing traffic, specifically.
>
> Any help is greatly appreciated.
>
> Thanks,
> Scott



Jul 18 '05 #7
Woldn't this require something like winpcap? I know some folks have
attempted to call winpcap from within Python, but I don't know if they
succeeded. If my memory serves well, it was Gerhard Häring who did
something with it.

I would also be interested in something similar, but then for MSN
traffic. Decoding the MSN Messenger stream is not the problem, capturing
the traffic from a promiscous nic in Python is where I get stuck.
Now you got me corious, is that possible in python?
Possibly by extending it with som C of course...

I've got no idea where you would put that kind of hook
in Windows.

John Roth

<snip>
>I want to write an NT service that will intercept any outgoing smtp
>traffic, like Norton Antivirus does. Can anyone tell me how I can do>somethin g like this in Python? I do not know how to intercept the
>outgoing traffic, specifically.


Jul 18 '05 #8
Google rules:
http://home.student.utwente.nl/g.v.berg/btk/
http://pycap.sourceforge.net
http://www.ghaering.de/python/unsupported/pylibpcap/
http://aspn.activestate.com/ASPN/Mai...n-list/1578279

*pheew* that was some real hardcore Googeling I can tell you...

..r!kard
"Rudy Schockaert" <ru************ *@pandora.be> wrote in message
news:5U******** *************@p hobos.telenet-ops.be...
Woldn't this require something like winpcap? I know some folks have
attempted to call winpcap from within Python, but I don't know if they
succeeded. If my memory serves well, it was Gerhard Häring who did
something with it.

I would also be interested in something similar, but then for MSN
traffic. Decoding the MSN Messenger stream is not the problem, capturing
the traffic from a promiscous nic in Python is where I get stuck.
Now you got me corious, is that possible in python?
Possibly by extending it with som C of course...

I've got no idea where you would put that kind of hook
in Windows.

John Roth

<snip>
>>I want to write an NT service that will intercept any outgoing smtp
>>traffic, like Norton Antivirus does. Can anyone tell me how I can

do
>>somethin g like this in Python? I do not know how to intercept the
>>outgoing traffic, specifically.

Jul 18 '05 #9
It seems you've looking where I've earlier this week ;-) I'm affraid
there's nothing for Python on Windows yet.

..r!kard wrote:
Google rules:
http://home.student.utwente.nl/g.v.berg/btk/
This one is for unices only, no Windows.
http://pycap.sourceforge.net
From the Todo.txt file:

* Make this work on Windows. I briefly struggled with compiling using
VC7 under Win XP
using winpcap_ and LibnetNT_. No luck, and was getting some rather
interesting errors
about missing header files which appeared to be where they should be :-/.
http://www.ghaering.de/python/unsupported/pylibpcap/
This could be a candidate if it were available for Python 2.3.x . It's
for Python 2.2 only now.
http://aspn.activestate.com/ASPN/Mai...n-list/1578279 Further down the thread:
http://aspn.activestate.com/ASPN/Mai...n-list/1578500
Gerhard Häring wrote: http://www.ghaering.de/python/unsupported/pylibpcap/
I'll check if the sniff.py example will work, too.
It doesn't look like it does. I may have introduced a subtle bug or some
more changes are needed to make it useful under win32.

If anybody wants to continue the win32 port, it's open source and you
can continue where I stopped.

-- Gerhard

Out of luck again :-(

*pheew* that was some real hardcore Googeling I can tell you...

.r!kard

<snip>
>>>I want to write an NT service that will intercept any outgoing smtp
>>>traffi c, like Norton Antivirus does. Can anyone tell me how I can

do

>>>somethin g like this in Python? I do not know how to intercept the
>>>outgoi ng traffic, specifically.



Jul 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
13870
by: Andy Turner | last post by:
Hi, I'm trying to setup PHP so it will use a remote SMTP server. I'm going to sound like a newbie but how? I know you need to alter php.ini, change SMTP from localhost to the SMTP server and the address to the correct one but I wondered about passwords? Outlook Express needs a password so how would I do it. Unless anyone has any other suggestions/tutorials. Oh and just so you know my port 25 is blocked by ISP, I think that limits my...
2
13698
by: RandRace | last post by:
I'm having some problems with a little script i wrote using net::smtp. I originally wrote it in linux where it works perfectly. I tried to use it from windows the other day and it doesn't work. It connects to the server and prints the banner but will not send mail. Here is my script: use Net::SMTP; my $smtp = Net::SMTP->new('smtp.comcast.net') or die "Can't Open server"!";
3
5566
by: dale zhang | last post by:
Hi, I write an asp.net web application. It has a “Contact Us†page, where users fill in their email, subject and text and hit send. Then the email will go to my hard coded yahoo email account. I was using optimum online service with smtp server as “mail.optonline.netâ€. I can receive email correctly. Now I switch to verizon DSL. I change my smtp server accordingly as
34
18222
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow "127.0.0.1". 4. Authentication: "Anonymous access" only. 5. Outbound connection listen to TCP 25. Besides,
7
7730
by: oopsbabies | last post by:
Hello everyone, I am using Apache 1.3.33 as the web server and PHP version 4.3.10. My machine is using Windows XP 2002 professional edition which comes with a Windows firewall. I am using McAfee free edition for anti-virus. I use an ISP provider from my country and according to them I do not need to perform authentication while sending mails through their SMTP address. Thus I am using external SMTP server. I don't have IIS installed...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8708
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8489
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8594
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7307
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4294
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2716
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1916
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1596
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.