Excepting mail ONLY for valid users

This is a discussion on Excepting mail ONLY for valid users within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; Hello, I've been experiencing a problem lately with spammers forging their Reply-To and From headers and inserting '<...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-21-2004
Mark Kaufer
 
Posts: n/a
Default Excepting mail ONLY for valid users

Hello,

I've been experiencing a problem lately with spammers forging their
Reply-To and From headers and inserting '<random_username>@mydomain.com'
in these fields.

Obviously, most of their email fails to be delivered and the recepient's
mail server replies to this non-existent user notifying him of the
failure. This in turn bounces to postmaster (me) reporting that
<random_username>@mydomain.com doesn't exist, which is of course true
since the bloody spammer just made it up.

Is there a patch for qmail to check for the validity of the destination
email address before accepting the message? I realise this may give the
server a performance hit, but I'm more than willing to pay that price in
exchange of the 60 failure notices I've received today.

Thanks,

Mark
Reply With Quote
  #2 (permalink)  
Old 01-21-2004
Peter Kleiner
 
Posts: n/a
Default Re: Excepting mail ONLY for valid users

Mark Kaufer wrote:
>
> Hello,
>
> I've been experiencing a problem lately with spammers forging their
> Reply-To and From headers and inserting '<random_username>@mydomain.com'
> in these fields.
>
> Obviously, most of their email fails to be delivered and the recepient's
> mail server replies to this non-existent user notifying him of the
> failure. This in turn bounces to postmaster (me) reporting that
> <random_username>@mydomain.com doesn't exist, which is of course true
> since the bloody spammer just made it up.
>
> Is there a patch for qmail to check for the validity of the destination
> email address before accepting the message? I realise this may give the
> server a performance hit, but I'm more than willing to pay that price in
> exchange of the 60 failure notices I've received today.


There is an interesting read on this subject here:
http://groups.google.com/groups?thre...5.ctd.ornl.gov
Reply With Quote
  #3 (permalink)  
Old 01-22-2004
Mark Kaufer
 
Posts: n/a
Default Re: Excepting mail ONLY for valid users

On Wed, 21 Jan 2004 07:30:25 -0500, Peter Kleiner <kleinerp@NOSPAM.smbmicro.com> wrote to alt.comp.mail.qmail:
> Mark Kaufer wrote:
>>
>> Hello,
>>
>> I've been experiencing a problem lately with spammers forging their
>> Reply-To and From headers and inserting '<random_username>@mydomain.com'
>> in these fields.
>>
>> Obviously, most of their email fails to be delivered and the recepient's
>> mail server replies to this non-existent user notifying him of the
>> failure. This in turn bounces to postmaster (me) reporting that
>> <random_username>@mydomain.com doesn't exist, which is of course true
>> since the bloody spammer just made it up.
>>
>> Is there a patch for qmail to check for the validity of the destination
>> email address before accepting the message? I realise this may give the
>> server a performance hit, but I'm more than willing to pay that price in
>> exchange of the 60 failure notices I've received today.

>
> There is an interesting read on this subject here:
> http://groups.google.com/groups?thre...5.ctd.ornl.gov


Thanks for the reply, Peter.

I've implemented Dave Sill's control/doublebounceto, but unfortunately,
it doeesn't look like it worked. Is there a patch that needs to be
applied for that to function properly?

I actually have already patched my qmail w/ qmail-1.03-mfcheck.3.patch
and that works great. http://www.interazioni.it/qmail/ looks very
interesting; I'll have to try that out.

Cheers,

Mark
Reply With Quote
  #4 (permalink)  
Old 01-22-2004
Dave Sill
 
Posts: n/a
Default Re: Excepting mail ONLY for valid users

Mark Kaufer <mark.kaufer@NO.SPAM.bloodyhell.us> writes:

> I've implemented Dave Sill's control/doublebounceto, but unfortunately,
> it doeesn't look like it worked. Is there a patch that needs to be
> applied for that to function properly?


No. What did you do, exactly? How is it working?

--
Dave Sill Oak Ridge National Lab, Workstation Support
Author, The qmail Handbook <http://web.infoave.net/~dsill>
<http://lifewithqmail.org/>: Almost everything you always wanted to know.
Reply With Quote
  #5 (permalink)  
Old 01-22-2004
Mark Kaufer
 
Posts: n/a
Default Re: Excepting mail ONLY for valid users

On Thu, 22 Jan 2004 09:38:12 -0500, Dave Sill <MaxFreedom@sws5.ornl.gov> wrote to alt.comp.mail.qmail:
> Mark Kaufer <mark.kaufer@NO.SPAM.bloodyhell.us> writes:
>
>> I've implemented Dave Sill's control/doublebounceto, but unfortunately,
>> it doeesn't look like it worked. Is there a patch that needs to be
>> applied for that to function properly?

>
> No. What did you do, exactly? How is it working?


I created /var/qmail/control/doublebounceto which is owned by root.root
and chmod 644:

-rw-r--r-- 1 root root 13 Jan 21 10:13 doublebounceto

In it is 'doublebounce':

# cat doublebounceto
doublebounce

Then in ~alias, I created .qmail-doublebounce which is owned by
root.qmail and is also 644:

-rw-r--r-- 1 root qmail 2 Jan 21 10:13 .qmail-doublebounce

In ~alias/.qmail-doublebounce, is a single hash:

# cat ~alias/.qmail-doublebounce
#

From what I read, it looked like that was pretty much it. Am I missing
something?

Cheers,

Mark
Reply With Quote
  #6 (permalink)  
Old 01-23-2004
Dave Sill
 
Posts: n/a
Default Re: Excepting mail ONLY for valid users

Mark Kaufer <mark.kaufer@NO.SPAM.bloodyhell.us> writes:

> I created /var/qmail/control/doublebounceto which is owned by root.root
> and chmod 644:
>
> -rw-r--r-- 1 root root 13 Jan 21 10:13 doublebounceto
>
> In it is 'doublebounce':
>
> # cat doublebounceto
> doublebounce
>
> Then in ~alias, I created .qmail-doublebounce which is owned by
> root.qmail and is also 644:
>
> -rw-r--r-- 1 root qmail 2 Jan 21 10:13 .qmail-doublebounce
>
> In ~alias/.qmail-doublebounce, is a single hash:
>
> # cat ~alias/.qmail-doublebounce
> #
>
> From what I read, it looked like that was pretty much it. Am I missing
> something?


Nope, that's it. Now show me the logs for a double bounce. You can
create one by injecting a message via telnet to port 25 with a bogus
sender and recipient. See step 7 in TEST.deliver.

--
Dave Sill Oak Ridge National Lab, Workstation Support
Author, The qmail Handbook <http://web.infoave.net/~dsill>
<http://lifewithqmail.org/>: Almost everything you always wanted to know.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:04 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0