LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-22-2010, 03:43 AM   #1
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Rep: Reputation: 16
Mail server problem


Hi

In My sendmail server when i check mailq i got like this mails.


o9M8bIOK024161 1742 Fri Oct 22 01:37 <Survey@westernunion.com>
8BITMIME (Deferred: 421 RP-001 Unfortunately, some messages from 70.32)
<d_ransom1@hotmail.com>
<d_r_plummer@hotmail.com>
<d_r_mccleod@msn.com>
<d_pichette@hotmail.com>
<d_penrod@hotmail.com>
<d_peg@hotmail.com>
<d_pecotte@hotmail.com>
<d_pacheco89@hotmail.com>
<d_onealtrucking@hotmail.com>
<d_oleo0000@hotmail.com>
<d_o_harley@hotmail.com>
<d_niece@msn.com>
<d_ngandy@msn.com>
<d_newby@hotmail.com>
<d_neuman87@hotmail.com>
<d_napier_09@hotmail.com>
<d_murie@hotmail.com>
<d_moprem22@hotmail.com>
<d_moody_15@hotmail.com>

please can any one tel me why its happen and how to solve this issue.

thanks
 
Old 10-22-2010, 03:47 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Do you have proper DNS configuration and registered domain name?
what you maillog says?
post last some lines of maillog here.

Regards,
 
Old 10-22-2010, 05:43 AM   #3
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
Sendmail Problem

Quote:
Originally Posted by sem007 View Post
Do you have proper DNS configuration and registered domain name?
what you maillog says?
post last some lines of maillog here.

Regards,

Hi thanks for the reply

log say like this

relay=s2smtpout.secureserver.net [208.109.80.210], dsn=4.0.0, stat=Deferred: Connection timed out with s2smtpout.secureserver.net
Oct 17 04:50:25 ip-72-167-245-80 sendmail[24580]: o9GClPVv003757: to=<fernandianel@hotmail.com>,<fernandiittha_@hotmail.com>,<fernandill0@hotmail.com>,<fernandilus@ho tmail.com>,<fernandin_fenix@hotmail.com>,<fernandin_loven_k@hotmail.com>,<fernandina13@hotmail.com>, <fernandinha_ij@hotmail.com>,<fernandinha_lc32@hotmail.com>,<fernandinha_rbgirl@hotmail.com>,<fernan dinho-ballack@hotmail.com>,<fernandinho-moreno@hotmail.com>,<fernandinho-tamandare@hotmail.com>, delay=23:02:58, xdelay=00:05:05, mailer=relay, pri=5162274, relay=s2smtpout.secureserver.net [208.109.80.210], dsn=4.0.0, stat=Deferred: Connection timed out with s2smtpout.secureserver.net
Oct 17 04:50:26 ip-72-167-245-80 sendmail[24580]: o9GClPVx003757: to=<fernandataborda@hotmail.com>,<fernandatembe@hotmail.com>,<fernandatesta@hotmail.com>,<fernandatf s@hotmail.com>,<fernandatubaby@hotmail.com>,<fernandatuna@hotmail.com>,<fernandaurban@hotmail.com>,< fernandauriza11@hotmail.com>,<fernandaval142@hotmail.com>,<fernandavalencia400@hotmail.com>,<fernand avalencia5@hotmail.com>,<fernandavea@hotmail.com>,<fernandavelasco@hotmail.com>,<fernandavellaneda@h otmail.com>,<fernandavilar@hotmail.com>,<fernandaviolet@hotmail.com>,<fernandax.x@hotmail.com>,<fern andayan@hotmail.com>,<fernandayanezf@hotmail.com>,<fernandayo33@hotmail.com>,<fernandayon@hotmail.co m>,<fernandazaha@hotmail.com>,<fernandazenteno@hotmail.com>,<fernandazephyr@hotmail.com>,<fernandazo ttele@hotmail.com>,<fernandberrebi@hotmail.com>, [more], delay=23:02:58, xdelay=00:00:00, mailer=relay, pri=5162274, relay=s2smtpout.secureserver.net, dsn=4.0.0, stat=Deferred: Connection timed out with s2smtpout.secureserver.net
Oct 17 04:50:26 ip-72-167-245-80 sendmail[24580]: o9GClPVx003757: to=<fernandbrisson@hotmail.com>,<fernandchinesko@hotmail.com>,<fernandcleme@hotmail.com>,<fernandcot e713@hotmail.com>,<fernandcr53@hotmail.com>,<fernandeis@hotmail.com>,<fernandes-1981@hotmail.com>,<fernandes-costa32@hotmail.com>,<fernandes.gaspar@hotmail.com>,<fernandes0403@hotmail.com>,<fernandes12@hotmail .com>,<fernandes12_elias@hotmail.com>,<fernandes1416@hotmail.com>,<fernandes19707@hotmail.com>,<fern andes1985@hotmail.com>,<fernandes318@hotmail.com>,<fernandes321_@hotmail.com>,<fernandes@ibema.com.b r>,<fernandes_bosco@hotmail.com>,<fernandes_hm@hotmail.com>,<fernandes_margareth@hotmail.com>,<ferna ndes_meg@hotmail.com>,<fernandes_ricardo83@hotmail.com>,<fernandes_rudolf@hotmail.com>,<fernandes_vi tor@hotmail.com>,<fernandes_wil@hotmail.com>, [more], delay=23:02:58, xdelay=00:00:00, mailer=relay, pri=5162274, relay=s2smtpout.secureserver.net, dsn=4.0.0, stat=Deferred: Connection timed out with s2smtpout.secureser
 
Old 10-22-2010, 06:03 AM   #4
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
Are you able to do telnet on port 25 ?

Code:
# telnet name-of-server 25
helo
mail from: sender-email@address
rcpt to: receiver-email@address
look for more info Test mail server

Regards,

Last edited by sem007; 10-22-2010 at 06:11 AM. Reason: add command
 
Old 10-22-2010, 06:05 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

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.
 
Old 10-22-2010, 07:05 AM   #6
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
Sendmail Problem

Quote:
Originally Posted by bathory View Post
Hi,

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]
 
Old 10-22-2010, 07:22 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You should find who started sending the mails in queue. Run:
Code:
egrep "o9GClPVv003757|o9GClPVx003757|o9GClPVx003757" /var/log/maillog |grep "from="
to find the IP of the offender.

Meanwhile. stop sendmail and delete them, so it stops trying to send them out.
 
Old 10-22-2010, 07:42 AM   #8
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
Sendmail Problem

Quote:
Originally Posted by bathory View Post
You should find who started sending the mails in queue. Run:
Code:
egrep "o9GClPVv003757|o9GClPVx003757|o9GClPVx003757" /var/log/maillog |grep "from="
to find the IP of the offender.

Meanwhile. stop sendmail and delete them, so it stops trying to send them out.
yes i found this is 206.201.227.250 ipaddress. where i delete this.

one more thing.
at the same time . in mailq i found like this some time.
how i stop this please help me.
o9MCT9Gr023930 1742 Fri Oct 22 05:29 <Survey@westernunion.com>
8BITMIME (Deferred: 421 RP-001 Unfortunately, some messages from 70.32)
<staci_linn@hotmail.com>
<staci_ladd@hotmail.com>
<staci_brown1@hotmail.com>
<staci978@hotmail.com>
<staci7182@hotmail.com>
<staci11111@hotmail.com>
<stachurap@hotmail.com>
<stachcat@hotmail.com>
<staceyvaino_bcc@hotmail.com>
<staceyv007@hotmail.com>
<staceythestrange@hotmail.com>
<staceyterriquez@hotmail.com>
<staceysanders316@hotmail.com>
<staceyrwillis@hotmail.com>
<staceyrules_69@hotmail.com>
<staceypelletier@hotmail.com>
<staceypalazzo@hotmail.com>
<staceynoviello@hotmail.com>
<staceympa@hotmail.com>
<staceymp14@hotmail.com>
<staceymooreak@hotmail.com>
<staceymoore7@msn.com>
<staceymonsebroten@hotmail.com>
<staceymg9@hotmail.com>
<staceylynngill@hotmail.com>
<staceylrhodes@hotmail.com>
<staceylou84@msn.com>
<staceylong81@hotmail.com>
<staceylaux@hotmail.com>
<staceyjulye6@msn.com>
<staceyjpetrikas@hotmail.com>
<staceyjo07@hotmail.com>
<staceyj00@msn.com>
<staceyhudgens@hotmail.com>
<staceyhoffman@msn.com>
<staceyhermanson@hotmail.com>
<staceyhensel@hotmail.com>
<staceyfries@hotmail.com>
<staceyfeak@hotmail.com>
<staceyelmore@hotmail.com>
<staceydk@hotmail.com>
<staceyconsultantcm@hotmail.com>
<staceycarrier71@hotmail.com>
<staceyblackhurst@hotmail.com>
<staceyapplebee@hotmail.com>
<staceyann49@hotmail.com>
<stacey938@msn.com>
<stacey4270@hotmail.com>
<stacey422@hotmail.com>
<stacey323@hotmail.com>
o9MCTEHp024071 1742 Fri Oct 22 05:29 <Survey@westernunion.com>
8BITMIME (Deferred: 421 RP-001 Unfortunately, some messages from 70.32)
<stacy_sdw@hotmail.com>
<stacy_pochtar@hotmail.com>
<stacy_patton@hotmail.com>
<stacy_lundy@hotmail.com>
<stacy_levet@hotmail.com>
<stacy_kaper05@hotmail.com>
<stacy_halbert@hotmail.com>
<stacy_gome@hotmail.com>
<stacy_daniel04@hotmail.com>
<stacy_brown48@hotmail.com>
<stacy.m.oreilly@hotmail.com>
<stacy.justice@hotmail.com>
<stacy.dwyer@hotmail.com>
<stacv808@hotmail.com>
<staclinash@hotmail.com>
<stackhouse_69@hotmail.com>
<stack_21@hotmail.com>
<stacirelli@hotmail.com>
<stacirae_rinehart@hotmail.com>
<stacimartin126@hotmail.com>
<stacimaffei@hotmail.com>
<stacililli@hotmail.com>
<stacilee67@hotmail.com>
<stacilane5678@hotmail.com>
<staciham@hotmail.com>
<staciepyle@hotmail.com>
<staciepiccard@hotmail.com>
<stacienicely@hotmail.com>
<staciematt23@msn.cYou have new mail in /var/spool/mail/root

thanks.

Last edited by saran_redhat; 10-22-2010 at 07:47 AM.
 
Old 10-22-2010, 08:10 AM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
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

Regards
 
1 members found this post helpful.
Old 10-23-2010, 01:49 AM   #10
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
Sendmail Problem

Quote:
Originally Posted by bathory View Post
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
 
Old 10-23-2010, 02:08 AM   #11
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
Sendmail Problem

Quote:
Originally Posted by saran_redhat View Post
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.
 
Old 10-23-2010, 03:16 AM   #12
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

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
 
Old 10-23-2010, 05:54 AM   #13
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
Sendmail Problem

Quote:
Originally Posted by bathory View Post
Hi,

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

thanks
 
Old 10-23-2010, 07:58 AM   #14
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
past 2 hours i didn't get any spams.
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:
Code:
DatabaseMirror db.in.clamav.net
as it looks you're coming from India.

Regards
 
Old 10-24-2010, 11:31 PM   #15
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
Sendmail Problem

Quote:
Originally Posted by bathory View Post
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
 
  


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
mail server problem saran_sai Linux - Software 1 09-23-2008 07:19 AM
problem receiving pop3 mail from postfix mail server GEN_Electric Linux - Software 2 02-14-2005 02:43 PM
problem with mail server netpraveen Linux - Networking 4 02-20-2002 10:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:04 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