I dont want to sniff off the port. Unless there is no other way and even then I would probably just put my head down and do it in C++ (although I _really_ dont want to). What I want to do is the following:
1. Hook the onArrival Event Sink.
2. If any address in the recipient list matches an address in my config file, write the entire message to a file in the folder specified in my config file.
3. Bow out and let the SMTP server perform its normal processing (usually delivering the message to a POP folder, occasionally being picked up by another event sink (which I didnt write and have no source for) that handles aliasing and forwarding.
This is for an email archival system. I want to trap and copy the email at arrival because by the time it gets to my users POP folders they may pull it down with their email client and I would lose it.
I realize I could probably do what Im describing by sniffing directly off the port, but it would be alot more involved than using an event sink, and I really dont want to make this any more complicated than it has to be.
Main Topics
Browse All Topics





by: EddieShipmanPosted on 2005-02-18 at 12:34:35ID: 13349470
No, what you need is to snif port 25. That will get you all the SMTP traffic you want.
Search for Delphi PCap and you'll find it. All you do is set the port and away you go.