How To - Bounce/Return spam to sender in .NET

O

OPL

Hi,

I've spent a fair bit of time searching the internet for an example on how
to bounce an email, like what MailWasher does from .NET. My home email
server gets hit pretty badly with spam, and rather than using server
software and risk losing email, i'd rather have some control over what gets
deleted and bounced, and so forth.

I've written a program that allows me to delete emails without downloading
them, but can someone point me in the direction (either RFC or example) in
any language (.NET, VB, Win32, etc).

Would massivly appreciate it, ultimatley I want to write an app I can
operate remotely etc, bust just need to work out how to bounce correctly.

Thanks!
 
D

David Browne

OPL said:
Hi,

I've spent a fair bit of time searching the internet for an example on how
to bounce an email, like what MailWasher does from .NET. My home email
server gets hit pretty badly with spam, and rather than using server
software and risk losing email, i'd rather have some control over what
gets deleted and bounced, and so forth.

I've written a program that allows me to delete emails without downloading
them, but can someone point me in the direction (either RFC or example) in
any language (.NET, VB, Win32, etc).

Would massivly appreciate it, ultimatley I want to write an app I can
operate remotely etc, bust just need to work out how to bounce correctly.

How do you propose bouncing spam without creating more spam?

David
 
S

Scott M.

Why would you want to send spam back to the sender? In most cases, the
sender's address is a real address that has been hijacked, so you will wind
up sending your spam to them. In addition, if the spam does go back to the
sender, you are, in effect, letting them know that your email address (which
will be in the FROM field of your bounced email) is a real and valid
address, so they will just send you more spam.

Just get a good spam filter.
 
B

Ben Voigt

OPL said:
Hi,

I've spent a fair bit of time searching the internet for an example on how
to bounce an email, like what MailWasher does from .NET. My home email
server gets hit pretty badly with spam, and rather than using server
software and risk losing email, i'd rather have some control over what
gets deleted and bounced, and so forth.

Bouncing has to be done at the SMTP server, in lieu of accepting the email.
Note you could still deliver the email to the user even though you rejected
it with an SMTP error. Once your email server has told the other server it
took the email, any further action on your part would be an "abuse report"
of sorts, and equally ineffective.

You'll note that whenever you send an e-mail that gets bounced (Destination
mailbox full, for example), the return notice you receive comes from your
mailserver and not the recipient's. That's because the recipient responded
to your e-mail with an error (3xx, 4xx, 5xx) and never accepted
responsibility for delivery.
 
B

Brian Tkatch

OPL said:
Hi,

I've spent a fair bit of time searching the internet for an example on how
to bounce an email, like what MailWasher does from .NET. My home email
server gets hit pretty badly with spam, and rather than using server
software and risk losing email, i'd rather have some control over what gets
deleted and bounced, and so forth.

I've written a program that allows me to delete emails without downloading
them, but can someone point me in the direction (either RFC or example) in
any language (.NET, VB, Win32, etc).

Would massivly appreciate it, ultimatley I want to write an app I can
operate remotely etc, bust just need to work out how to bounce correctly.

Thanks!

Check out RFC 821. <URL:ftp://ftp.rfc-editor.org/in-notes/rfc821.txt>

B.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top