LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 09-06-2009, 03:14 PM   #1
rwilcher
Member
 
Registered: Mar 2006
Location: Maple Heights OHIO
Distribution: Centos 6
Posts: 31

Rep: Reputation: 0
Unhappy attempts to email unknown user hammering sendmail


Hello all. In the last year, I have removed a user from
my server. However, I see ALOT of attempts by various machines to send mail to this defunct user. Yesterday
I counted 111 attempts! This user is gone and I really
would like to cleanup the mess . I am running spamassasin and sendmail-8.13.7. Anyone have an Idea on how to squelch this ? It's probably something stupid, it usually is
 
Old 09-06-2009, 05:37 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Hey rwilcher,

It could be 'spam by backscatter', try turning off bounce messages temporarily to see if it clears up

cheers
 
Old 09-07-2009, 10:31 AM   #3
rwilcher
Member
 
Registered: Mar 2006
Location: Maple Heights OHIO
Distribution: Centos 6
Posts: 31

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kbp View Post
Hey rwilcher,

It could be 'spam by backscatter', try turning off bounce messages temporarily to see if it clears up

cheers
How to do this ? in the sendmail.mc file ?
in the client? I use thunderbird email client
on a windows box i know it's a bit disgusting
but this is what users like to use.
 
Old 09-07-2009, 11:05 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Sorry, I use postfix, I haven't subjected myself to sendmail other than configuring a smart host, sendmail anybody ?
 
Old 09-24-2009, 11:25 PM   #5
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
Good luck!

...

Last edited by Smartpatrol; 03-11-2010 at 09:46 PM.
 
Old 10-16-2009, 08:00 PM   #6
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
I would suggest reading the headers on the messages that are trying
to be delivered. That will let you know what hosts have mail queued
up for this user.

Next, go to each of those machines and run mailq. That will tell you
what all messages are spooled for delivery. If you find a lot, you
may need to search through the cronjobs to see what is sending the
messages.
 
Old 10-17-2009, 03:27 PM   #7
rwilcher
Member
 
Registered: Mar 2006
Location: Maple Heights OHIO
Distribution: Centos 6
Posts: 31

Original Poster
Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by carltm View Post
I would suggest reading the headers on the messages that are trying
to be delivered. That will let you know what hosts have mail queued
up for this user.

Next, go to each of those machines and run mailq. That will tell you
what all messages are spooled for delivery. If you find a lot, you
may need to search through the cronjobs to see what is sending the
messages.
Sounds like a logical approach . However this stuff is
coming from machines across the internet. I don't
have accounts on these hosts. My suspicion is the
hosts are bots.
 
Old 10-17-2009, 07:19 PM   #8
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Yes, in that case we're talking about garden variety spam. As you
implied, there isn't anything you can do to prevent the delivery
attempts. However there are a few options about how you handle
them.

Personally I use ASSP to filter incoming email. It takes a little
time to learn and configure, but it's worth it. It will prevent
the delivery of email that is not wanted. And you can configure
it to accept and tag email that is deemed inappropriate.

I don't know a lot about spamassassin, but I'll bet that you could
identify the defunct user's email address as a spam word. That
would mean the email would be received and treated like spam.

You could also remove (or rename) the user's account. Most mail
systems are configured to not accept email for non-existant
accounts.

And I just re-read the original message. You wrote that this
user has already been removed. In that case ASSP or a combnation
of greylisting and blacklisting would be required to block incoming
connections.
 
Old 10-18-2009, 01:12 PM   #9
rwilcher
Member
 
Registered: Mar 2006
Location: Maple Heights OHIO
Distribution: Centos 6
Posts: 31

Original Poster
Rep: Reputation: 0
Unhappy

Quote:
Originally Posted by carltm View Post
Yes, in that case we're talking about garden variety spam. As you
implied, there isn't anything you can do to prevent the delivery
attempts. However there are a few options about how you handle
them.

Personally I use ASSP to filter incoming email. It takes a little
time to learn and configure, but it's worth it. It will prevent
the delivery of email that is not wanted. And you can configure
it to accept and tag email that is deemed inappropriate.

I don't know a lot about spamassassin, but I'll bet that you could
identify the defunct user's email address as a spam word. That
would mean the email would be received and treated like spam.

You could also remove (or rename) the user's account. Most mail
systems are configured to not accept email for non-existant
accounts.

And I just re-read the original message. You wrote that this
user has already been removed. In that case ASSP or a combnation
of greylisting and blacklisting would be required to block incoming
connections.
Thanks for your reply. I will look into
ASSP and spamassasin blacklisting/graylisting
config. This is an annoying problem to be sure.
Also I will go through sendmail config/mc
setup . There ought to be a way to nip this at
the SMTP level other then using iptables to block
out the many hosts that are sending me this filth.
I had to do this to block a couple of hosts that
were sending me virus emails that windows
machines were pulling down from the pop server.
yacc I really don't care for Windows because of
this virus crap. Wife and kids like it though.
 
Old 10-18-2009, 07:21 PM   #10
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 99
Yeah, I know what you mean about the Windows thing. A few months
ago I installed Linux on my last Windows box. It felt great. Now
I just have two virtual machines running Windows, one for work and
one for games.

You're right about nipping the spam problem at the smtp level. I
used to manually update the /etc/access file, but that takes a lot
of time. Since installing ASSP, I'd never go back.
 
Old 10-21-2009, 01:27 PM   #11
rwilcher
Member
 
Registered: Mar 2006
Location: Maple Heights OHIO
Distribution: Centos 6
Posts: 31

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by carltm View Post
Yeah, I know what you mean about the Windows thing. A few months
ago I installed Linux on my last Windows box. It felt great. Now
I just have two virtual machines running Windows, one for work and
one for games.

You're right about nipping the spam problem at the smtp level. I
used to manually update the /etc/access file, but that takes a lot
of time. Since installing ASSP, I'd never go back.
You are making too much sense.
I am now checking if the perl I have installed
is equal to the job. Spamassasin isn't doing it
for me unfortunately, Thanks for the
insight, and my forehead thanks you
 
Old 10-22-2009, 02:37 PM   #12
jonesr
Member
 
Registered: Feb 2008
Location: Sacramento
Distribution: RHEL AS, mostly
Posts: 44

Rep: Reputation: 18
Quote:
Originally Posted by rwilcher View Post
... Anyone have an Idea on how to squelch this ? ...
Code:
echo "goneuser:  /dev/null" >> /etc/aliases
newaliases
 
  


Reply



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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail user unknown sysxi Linux - Software 0 05-18-2009 06:10 PM
sendmail errors: can't resolve name, user unknown smallbook Linux - Newbie 1 02-29-2008 07:01 AM
sendmail 550 5.1.1. unknown user mwclassen Linux - Software 2 05-03-2007 11:41 AM
Sendmail Unknown user (has a valid domain) Nico Linux - Newbie 4 02-19-2007 09:59 AM
sendmail stat=User unknown problem mighlani Linux - Software 1 04-13-2006 09:32 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 04:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration