|
Home > Archive > IIS and SMTP > February 2004 > email to NNTP
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Leanne Bracher 2004-01-24, 2:06 am |
| Hi
I'd like people at work to be able to email their posts to our internal
newsgroups. Does anyone know how to set this up? We're using Windows
2000 Server, with IIS 5.0. A virtual NNTP server and SMTP server, and
our email is done through Lotus Notes. Can someone give me some help.
Thanks
*** Sent via Developersdex http://www.examnotes.net ***
Don't just participate in USENET...get rewarded for it!
| |
| Leanne B 2004-01-24, 2:06 am |
|
Please is there anyone outthere that can help???
thanks
*** Sent via Developersdex http://www.examnotes.net ***
Don't just participate in USENET...get rewarded for it!
| |
| Siegfried Weber 2004-01-27, 9:35 pm |
| Leanne B wrote:quote:
>
> Please is there anyone outthere that can help???
Sure this can be done. I've attached a simple Windows 2000/2003 SMTP Event
Sink which is designed to pull mail out of the SMTP server and post it to a
newsgroup. I've included a readme so it shoudn;t be too hard to get it
working ;-)
--
Cheers,
Siegfried Weber
If you want a smart answer, ask a smart question
http://catb.org/~esr/faqs/smart-questions.html
| |
| Leanne B 2004-02-01, 2:34 pm |
| Thanks for the help, i've been looking everywhere for this. However i am
using a web browser to read the newsgroups, as we can't use outlook at
work. So could you send me the attachment instead. my email is
lbrach@hotmail.com.
Thanks again
*** Sent via Developersdex http://www.examnotes.net ***
Don't just participate in USENET...get rewarded for it!
| |
| Siegfried Weber 2004-02-03, 8:35 am |
| Done...
--
Cheers,
Siegfried Weber
If you want a smart answer, ask a smart question
http://catb.org/~esr/faqs/smart-questions.html
Leanne B wrote:quote:
>
> Thanks for the help, i've been looking everywhere for this. However i
> am using a web browser to read the newsgroups, as we can't use
> outlook at work. So could you send me the attachment instead. my
> email is lbrach@hotmail.com.
>
> Thanks again
| |
| Leanne B 2004-02-03, 11:35 am |
| Thanks so much. I think i have it working. Although the news posts are
still sitting in the pickup folder. Do i have to do anything to fix
that?
*** Sent via Developersdex http://www.examnotes.net ***
Don't just participate in USENET...get rewarded for it!
| |
| Siegfried Weber 2004-02-04, 12:36 am |
| Leanne B wrote:quote:
>
> Thanks so much. I think i have it working. Although the news posts are
> still sitting in the pickup folder. Do i have to do anything to fix
> that?
Hmmm. The way I designed it it submits the NNTP message using a port and
NNTP server not using the NNTP pickup at all. Maybe there's something not
setup correctly. Did you double check the NNTP host, port etc. are set
correctly?
--
Cheers,
Siegfried Weber
If you want a smart answer, ask a smart question
http://catb.org/~esr/faqs/smart-questions.html
| |
| Leanne B 2004-02-08, 4:34 pm |
| It works now, it only put the message in the pickup folder the first
time. I'm interested in how this works, and was wondering if you'd be
able to give me a description of what you're doing, or point me towards
a site that would explain some of the code to me. Thanks again.
*** Sent via Developersdex http://www.examnotes.net ***
Don't just participate in USENET...get rewarded for it!
| |
| Strider 2004-02-08, 7:34 pm |
| Nice script ;)
One question though, why do you make a copy of the message instead of simply
changing the original message and posting it to NNTP?
"Siegfried Weber" <siegfriedcw@notmail.com> wrote in message
news:O1i$34Y5DHA.1632@TK2MSFTNGP12.phx.gbl...
> Leanne B wrote:
>
> Sure this can be done. I've attached a simple Windows 2000/2003 SMTP Event
> Sink which is designed to pull mail out of the SMTP server and post it to
a
> newsgroup. I've included a readme so it shoudn;t be too hard to get it
> working ;-)
>
> --
> Cheers,
>
> Siegfried Weber
>
> If you want a smart answer, ask a smart question
> http://catb.org/~esr/faqs/smart-questions.html
>
| |
| Siegfried Weber 2004-02-08, 10:34 pm |
| Strider wrote:
>
> Nice script ;)
> One question though, why do you make a copy of the message instead of
> simply changing the original message and posting it to NNTP?
I've had mixed results (read: problems) in the past when I didn't pull the
message out of the SMTP queue. Hence I went the route to kill the original
item and create a new one. It might work better with Windows Server 2003
trying to fork the existing message and post it to the NNTP host but since
my approach works in Windows 2000 and 2003 I felt too lazy to try it again
;-)
--
Cheers,
Siegfried Weber
If you want a smart answer, ask a smart question
http://catb.org/~esr/faqs/smart-questions.html
| |
| Siegfried Weber 2004-02-08, 10:34 pm |
| Leanne B wrote:
>
> It works now, it only put the message in the pickup folder the first
> time. I'm interested in how this works, and was wondering if you'd be
> able to give me a description of what you're doing, or point me
> towards a site that would explain some of the code to me. Thanks
> again.
Frankly, I don't know why the first item stays in the pickup. Maybe a
restart of the SMTP and NNTP service is required on your machine after
installing the script. It worked on my Windows 2000 & 2003 test machines
without that but you never know ;-)
I haven't yet put up a Web site for it hence I refer to the Yahoo! group I
operate. I might put up a Web site with more stuff like that (plenty of NNTP
and SMTP event script stuff floating around here, including a simple RBL
filter done 2 years ago ;-).
How it works? Well, it uses CDO for Windows/Exchange as per documentation
from MSDN. No voodoo, just rocket science ;-)
--
Cheers,
Siegfried Weber
If you want a smart answer, ask a smart question
http://catb.org/~esr/faqs/smart-questions.html
| |
| Strider 2004-02-08, 11:34 pm |
| You could kill the original message (abort delivery) after posting it to the
nntp server. I don't see how this could cause problems. By avoiding a copy
the sink will run faster and attachments will not be lost ;)
again ;-)
Fair enough ;)
Strider.
"Siegfried Weber" <siegfriedcw@notmail.com> wrote in message
news:u8i0wMw7DHA.3648@TK2MSFTNGP11.phx.gbl...[color=blue]
> Strider wrote:
>
> I've had mixed results (read: problems) in the past when I didn't pull the
> message out of the SMTP queue. Hence I went the route to kill the original
> item and create a new one. It might work better with Windows Server 2003
> trying to fork the existing message and post it to the NNTP host but since
> my approach works in Windows 2000 and 2003 I felt too lazy to try it again
> ;-)
>
> --
> Cheers,
>
> Siegfried Weber
>
> If you want a smart answer, ask a smart question
> http://catb.org/~esr/faqs/smart-questions.html
>
| |
| Siegfried Weber 2004-02-09, 1:36 am |
| Strider wrote:
>
> You could kill the original message (abort delivery) after posting it
> to the nntp server. I don't see how this could cause problems. By
> avoiding a copy the sink will run faster and attachments will not be
> lost ;)
Excellent point. I'll give it a go later. Thanks!
--
Cheers,
Siegfried Weber
If you want a smart answer, ask a smart question
http://catb.org/~esr/faqs/smart-questions.html
| |
| h.liles 2004-02-09, 9:35 am |
| Hey nice script.
How about going the other way though?
NNTP to SMTP?
We have a couple of netscape Collabra NNTP servers we are trying to convert
to use MS NNTP. The Collabra Servers have an option to forward any newly
posted messages to an e-mail address, and then we have a process that
archives them to a database.
MS NNTP doesn't appear to have this feature, or I can't find it.
I played around with the Moderator feature, but I don't think that's going
to work either.
We need new posts to be posted to the NNTP Group, but a copy e-mailed to an
address.
Make sense?
Any ideas anyone?
thanks,
-h.liles
www.ins.com
"Siegfried Weber" <siegfriedcw@notmail.com> wrote in message
news:e1hfghx7DHA.1040@TK2MSFTNGP10.phx.gbl...
> Strider wrote:
>
> Excellent point. I'll give it a go later. Thanks!
>
> --
> Cheers,
>
> Siegfried Weber
>
> If you want a smart answer, ask a smart question
> http://catb.org/~esr/faqs/smart-questions.html
>
| |
| Siegfried Weber 2004-02-10, 11:35 am |
| h.liles wrote:
>
> Hey nice script.
Glad you like it :-)
> How about going the other way though?
> NNTP to SMTP?
>
> We have a couple of netscape Collabra NNTP servers we are trying to
> convert to use MS NNTP. The Collabra Servers have an option to
> forward any newly posted messages to an e-mail address, and then we
> have a process that archives them to a database.
>
> MS NNTP doesn't appear to have this feature, or I can't find it.
> I played around with the Moderator feature, but I don't think that's
> going to work either.
> We need new posts to be posted to the NNTP Group, but a copy e-mailed
> to an address.
>
> Make sense?
> Any ideas anyone?
Makes absolutely sense. Funny thing is that I wrote exactly that before I
actually did the SMTP => NNTP script. Although, the NNTP => SMTP script just
sends a link (opens in your default news reader) to the newly posted item to
a predefined mail address (can be a group or user on your target mail
system).
Would that help?
--
Cheers,
Siegfried Weber
If you want a smart answer, ask a smart question
http://catb.org/~esr/faqs/smart-questions.html
| |
| h.liles 2004-02-11, 10:35 am |
| That might help.
Actually going off your example, I dove deeply into creating my own even
sink off of hte NNTP OnPost event.
I would really like to find a way to just save the entire message to a file,
or alternatively find out the path and filename of the file in the nttp\root
folders.
thanks,
-h
"Siegfried Weber" <siegfriedcw@notmail.com> wrote in message
news:OqxHwWD8DHA.1636@TK2MSFTNGP12.phx.gbl...
> h.liles wrote:
>
> Glad you like it :-)
>
>
> Makes absolutely sense. Funny thing is that I wrote exactly that before I
> actually did the SMTP => NNTP script. Although, the NNTP => SMTP script
just
> sends a link (opens in your default news reader) to the newly posted item
to
> a predefined mail address (can be a group or user on your target mail
> system).
>
> Would that help?
>
> --
> Cheers,
>
> Siegfried Weber
>
> If you want a smart answer, ask a smart question
> http://catb.org/~esr/faqs/smart-questions.html
>
| |
| Siegfried Weber 2004-02-12, 4:38 am |
| h.liles wrote:
>
> Actually going off your example, I dove deeply into creating my own
> even sink off of hte NNTP OnPost event.
Cool. Welcome to the club of Event Sink programmers :-)
> I would really like to find a way to just save the entire message to
> a file, or alternatively find out the path and filename of the file
> in the nttp\root folders.
Why not just use the FileSystem object? I've been using it a gazillion of
times to archive for example incoming SMTP mail.
--
Cheers,
Siegfried Weber
If you want a smart answer, ask a smart question
http://catb.org/~esr/faqs/smart-questions.html
|
|
|
|
|