Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Your server was used to send out spam. Check the logs to see how it was done
Also use this to see if it's an open relay.
hi
this is my maillog. but i cant find how its happen. please help.
Oct 22 13:31:56 ip-72-167-245-80 update.virus.scanners: Found clamav installed
Oct 22 13:31:56 ip-72-167-245-80 update.virus.scanners: Running autoupdate for clamav
Oct 22 13:31:56 ip-72-167-245-80 ClamAV-autoupdate[6012]: ClamAV did not need updating
Oct 22 13:31:56 ip-72-167-245-80 update.virus.scanners: Found generic installed
Oct 22 13:31:56 ip-72-167-245-80 update.virus.scanners: Running autoupdate for generic
Oct 22 01:28:10 ip-72-167-245-80 sendmail[6382]: o9M8SAXD006382: from=<admin@ip-72-167-245-80.ip.secureserver.net>, size=364, class=0, nrcpts=2, msgid=<20101022082727.M39545@ip-72-167-245-80.ip.secureserver.net>, proto=ESMTP, daemon=MTA, relay=ip-72-167-245-80.ip.secureserver.net [127.0.0.1]
Oct 22 13:58:10 ip-72-167-245-80 sendmail[6384]: o9M8SAXD006382: to=<greenslord_lord@hotmail.co.uk>,<greenslord_lord@yahoo.co.uk>, ctladdr=<admin@ip-72-167-245-80.ip.secureserver.net> (503/504), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=150364, relay=s2smtpout.secureserver.net [208.109.80.210], dsn=2.0.0, stat=Sent (Accepted message qp 520 bytes 753)
Oct 22 01:41:34 ip-72-167-245-80 sendmail[6561]: o9M8fHBu006561: from=<lmsmith1951@live.co.uk>, size=2345, class=0, nrcpts=200, msgid=<20101022083607.M60706@live.co.uk>, proto=ESMTP, daemon=MTA, relay=ip-72-167-245-80.ip.secureserver.net [127.0.0.1]
yes i found this is 206.201.227.250 ipaddress. where i delete this.
This result is based from the logs posted in your 2nd post
You should check how this guy abused your mailserver by examinig thoroughly your logs for his IP. And once again you should check here if your mailserver is an open relay
To remove spam from the queue, I suggest you to stop sendmail and delete everything in /var/spool/mqueue and /var/spool/clientmqueue and then restart sendmail.
If you are afraid that you may delete legitimate mail, you can use this perl sciprt
This result is based from the logs posted in your 2nd post
You should check how this guy abused your mailserver by examinig thoroughly your logs for his IP. And once again you should check here if your mailserver is an open relay
To remove spam from the queue, I suggest you to stop sendmail and delete everything in /var/spool/mqueue and /var/spool/clientmqueue and then restart sendmail.
If you are afraid that you may delete legitimate mail, you can use this perl sciprt
Regards
great now its working fine. for ths past 10hours i didn't get any spam mails. thank you once again for the great help and support
great now its working fine. for ths past 10hours i didn't get any spam mails. thank you once again for the great help and support
sir now i am getting like this in my alternate server. please advise me.
o9N6QpcT003115 1343 Fri Oct 22 23:26 <csrresearchco@aol.com>
(Deferred)
<badielarissa@yahoo.com>
<bacandiff@yahoo.com>
<bac2me2003@yahoo.com>
<babzhugs@yahoo.com>
<babyynub@yahoo.com>
<babyxoxphat2003@yahoo.com>
<babyvaldes54@yahoo.com>
<babytweety242003@yahoo.com>
<babytwee14@yahoo.com>
<babytorzel@yahoo.com>
<babytiger563@yahoo.com>
<babyswole11@yahoo.com>
<babysurfer3@yahoo.com>
<babystuff55@yahoo.com>
o9N6QvR2003142 1343 Fri Oct 22 23:26 <csrresearchco@aol.com>
(Deferred)
<badwayz97@yahoo.com>
<badtop1@yahoo.com>
<badshah3023366@yahoo.com>
<badriashraf@yahoo.com>
<badphenom132282@yahoo.com>
<badowers@yahoo.com>
<badonkadonk282@yahoo.com>
<badomen86@yahoo.com>
<badmotrucker@yahoo.com>
<badmommie_badmommie@yahoo.com>
<badman50002001@yahoo.com>
<badmaj5@yahoo.com>
<badkepler@yahoo.com>
<badjodo@yahoo.com>than
thanks
when i restart clamd service i got like this please advise me
Stopping Clam AntiVirus Daemon: [FAILED]
Starting Clam AntiVirus Daemon: LibClamAV Warning: **************************************************
LibClamAV Warning: *** The virus database is older than 7 days! ***
LibClamAV Warning: *** Please update it as soon as possible. ***
LibClamAV Warning: **************************************************
LibClamAV Warning: ***********************************************************
LibClamAV Warning: *** This version of the ClamAV engine is outdated. ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
LibClamAV Error: cli_hex2str(): Malformed hexstring: This ClamAV version has reached End of Life! Please upgrade to version 0.95 or later. For more information see www.clamav.net/eol-clamav-094 and www.clamav.net/download (length: 169)
LibClamAV Error: Problem parsing database at line 738
LibClamAV Error: Can't load /var/tmp/clamav-943434b0ffb2e8bd492f5f1b29bdb257/daily.ndb: Malformed database
LibClamAV Error: Can't load /var/clamav/daily.cvd: Malformed database
ERROR: Malformed database
[FAILED]
Last edited by saran_redhat; 10-23-2010 at 02:33 AM.
I don't know what your alternate server is, but you should search to see how the spammers managed to use your mailserver(s).
Only doing so you will stop them sending out spam. If you don't stop them, you'll be soon blacklisted by the various RBLs and you will not be able to send legitimate mail also.
You didn't answer if you check to see if your mailserver(s) are open relays, or if you found any evidence on how they succeeded to send spam through your server.
Regarding clamav, I guess you have to upgrade to a newer version and then run freshclam to update the virus databases.
I don't know what your alternate server is, but you should search to see how the spammers managed to use your mailserver(s).
Only doing so you will stop them sending out spam. If you don't stop them, you'll be soon blacklisted by the various RBLs and you will not be able to send legitimate mail also.
You didn't answer if you check to see if your mailserver(s) are open relays, or if you found any evidence on how they succeeded to send spam through your server.
Regarding clamav, I guess you have to upgrade to a newer version and then run freshclam to update the virus databases.
Regards
sir
clamd service stopped in my server. so now i upgraded clamd. now service start fine. but i got like this warning after restart my clamd service. past 2 hours i didn't get any spams.
WARNING: You must specify at least one database mirror in /usr/local/etc/clamd.conf
You didn't get any spam at the beginning.
You (your mailserver) was used to send out spam.
And you still insist on not telling us if you found what happened and rectified it.
Quote:
WARNING: You must specify at least one database mirror in /usr/local/etc/clamd.conf
Edit /usr/local/etc/freshclam.conf and make sure you have
Code:
DatabaseMirror database.clamav.net
If freshclam still complains. comment out this line and use:
You didn't get any spam at the beginning.
You (your mailserver) was used to send out spam.
And you still insist on not telling us if you found what happened and rectified it.
Edit /usr/local/etc/freshclam.conf and make sure you have
Code:
DatabaseMirror database.clamav.net
If freshclam still complains. comment out this line and use:
Code:
DatabaseMirror db.in.clamav.net
as it looks you're coming from India.
Regards
Thanks for the support.
But i checked all the maillog but i cant able to find how the spammers enter inside my mail servers. can u give some tips how to find this
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.