LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-25-2010, 02:58 AM   #16
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,891

Rep: Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608

I've already told you more than once to check here if your mailserver is an open relay.

Also based on the spammer IP, check how he managed to connect to your server in a first place. If you're using smtp authentication, it could be a weak password of some user.

Use google to search for tutorials about securing sendmail

Regards
 
Old 10-25-2010, 03:51 AM   #17
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
Sendmail Problem

Quote:
Originally Posted by bathory View Post
I've already told you more than once to check here if your mailserver is an open relay.

Also based on the spammer IP, check how he managed to connect to your server in a first place. If you're using smtp authentication, it could be a weak password of some user.

Use google to search for tutorials about securing sendmail

Regards
i tested relay.

i got like this no relay.
Relay test result

All tests performed, no relays accepted.
 
Old 10-25-2010, 04:13 AM   #18
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,891

Rep: Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608
Quote:
All tests performed, no relays accepted.
That's good to know.

So, now based on the spammers IP you should start investigating how they managed to use your mail server.
If you're using smtp auth, you should look for the userid used to send out the spam mail.
If you're using some sort of web application to send mail, check that too.
And once again read about securing sendmail. There is much documentation for that on the net.

Regards
 
Old 10-25-2010, 05:39 AM   #19
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
Sendmail Problem

Quote:
Originally Posted by bathory View Post
That's good to know.

So, now based on the spammers IP you should start investigating how they managed to use your mail server.
If you're using smtp auth, you should look for the userid used to send out the spam mail.
If you're using some sort of web application to send mail, check that too.
And once again read about securing sendmail. There is much documentation for that on the net.

Regards
sir

Now i am getting like this error.

o9P9UYh2001422* 2066 Mon Oct 25 02:30 <flagrantlyxm@reteil.com>
8BITMIME (hash map "Alias0": missing map file /etc/aliases.db: No such)
root

thanks
 
Old 10-25-2010, 06:26 AM   #20
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,891

Rep: Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608
Do you have a /etc/aliases file?
And what's in that file?
To rebuild the aliases database you have to run:
Code:
newaliases
 
Old 10-25-2010, 07:35 AM   #21
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
Sendmail Problem

Quote:
Originally Posted by bathory View Post
Do you have a /etc/aliases file?
And what's in that file?
To rebuild the aliases database you have to run:
Code:
newaliases

sir
newaliases command not working it shows command not found.

but when i type new and press tab button for auto complete it shows
newaliases.sendmail.
please advise me.
 
Old 10-25-2010, 08:16 AM   #22
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,891

Rep: Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608
Do you have a /etc/aliases or /etc/mail/aliases file? And what's in it?

You didn't mention your distro, but usually newaliases is the same as "sendmail -bi"
Run:
Code:
ls -l `whereis newaliases.sendmail`
to see if it's a symlink to sendmail
 
Old 10-25-2010, 06:21 PM   #23
bulls_i3
LQ Newbie
 
Registered: Jan 2010
Posts: 20

Rep: Reputation: 2
It seems your mailserver is being used as an "open relay".

You should probably show us what your sendmail configuration is like (Also, unless you have a good reason for using sendmail, I suggest using postfix instead. It behaves the same way, but is more efficient and more secure).

Removing a specific IP from your mailq won't fix your problem. Your server is still an open-relay. You must configure sendmail (or postfix) properly.

You have to tell sendmail (or postfix) to authenticate users before allowing them to send mail.
 
Old 10-26-2010, 01:09 AM   #24
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
Sendmail Problem

Quote:
Originally Posted by bulls_i3 View Post
It seems your mailserver is being used as an "open relay".

You should probably show us what your sendmail configuration is like (Also, unless you have a good reason for using sendmail, I suggest using postfix instead. It behaves the same way, but is more efficient and more secure).

Removing a specific IP from your mailq won't fix your problem. Your server is still an open-relay. You must configure sendmail (or postfix) properly.

You have to tell sendmail (or postfix) to authenticate users before allowing them to send mail.

Sir

Now the problem has been sorted out.

Thanks for the wonderful support.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:19 AM
problem receiving pop3 mail from postfix mail server GEN_Electric Linux - Software 2 02-14-2005 03:43 PM
problem with mail server netpraveen Linux - Networking 4 02-20-2002 11:26 PM

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

All times are GMT -5. The time now is 01:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration