LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 05-01-2012, 02:47 PM   #1
piradeep
LQ Newbie
 
Registered: May 2012
Distribution: RedHat/CentOS
Posts: 27

Rep: Reputation: Disabled
Postfix help needed


Hi,

Need help in deleting mailq. I am logged in as root. But I am not able to execute postsuper -d ALL.
 
Old 05-01-2012, 02:59 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 13,774

Rep: Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346
Quote:
Originally Posted by piradeep View Post
Hi,

Need help in deleting mailq. I am logged in as root. But I am not able to execute postsuper -d ALL.
And if you told us what error(s) you were getting, what version/distro of Linux, or gave ANY details, we might be able to help.
 
Old 05-01-2012, 03:18 PM   #3
piradeep
LQ Newbie
 
Registered: May 2012
Distribution: RedHat/CentOS
Posts: 27

Original Poster
Rep: Reputation: Disabled
Thank you for your immediate response. Please find the below details.

CentOS release 5.4 (Final)/ kernal - 2.6.18-028stab091.2

I get "bash: postsuper: command not found"
 
Old 05-01-2012, 04:14 PM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 13,774

Rep: Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346
Quote:
Originally Posted by piradeep View Post
Thank you for your immediate response. Please find the below details.

CentOS release 5.4 (Final)/ kernal - 2.6.18-028stab091.2

I get "bash: postsuper: command not found"
Ok...that means the command isn't in your path. You can either type in "locate postsuper", or "find / -name postsuper" (as root), then type in the whole path name of the command, such as "/usr/sbin/postsuper -xxx"
 
Old 05-01-2012, 04:39 PM   #5
piradeep
LQ Newbie
 
Registered: May 2012
Distribution: RedHat/CentOS
Posts: 27

Original Poster
Rep: Reputation: Disabled
Thanks a lot. I am new to linux. And this is a learning for me. Thank you. That deleted 22435 hacked messages in mailq. I have another question. Not sure whether to ask in this post. here is is.

My server is hacked. And anonymous emails are sent. I researched a lot. As I am new I am not able to find out the exact problem. Here is bt line that I added in /etc/postfix/main.cf
 
Old 05-01-2012, 04:41 PM   #6
piradeep
LQ Newbie
 
Registered: May 2012
Distribution: RedHat/CentOS
Posts: 27

Original Poster
Rep: Reputation: Disabled
mynetworks = 1**.***.**.**/30, 1**.***.**.**/30, 192.168.1,*/24;
smtpd_client_restrictions = permit_mynetworks

An I also restarted postfix. I am not able to find out where I am wrong
 
Old 05-01-2012, 04:45 PM   #7
piradeep
LQ Newbie
 
Registered: May 2012
Distribution: RedHat/CentOS
Posts: 27

Original Poster
Rep: Reputation: Disabled
And mailq starts like this..


-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
4FF06A72D93 849 Tue May 1 21:43:01 root
root

551A7A731F8 849 Tue May 1 21:44:01 root
root
 
Old 05-01-2012, 04:46 PM   #8
piradeep
LQ Newbie
 
Registered: May 2012
Distribution: RedHat/CentOS
Posts: 27

Original Poster
Rep: Reputation: Disabled
Do I have to just change the root password??

Last edited by piradeep; 05-01-2012 at 04:47 PM.
 
Old 05-01-2012, 05:13 PM   #9
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 13,774

Rep: Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346Reputation: 2346
Quote:
Originally Posted by piradeep View Post
Do I have to just change the root password??
Your root password probably has NOTHING to do with your mail server being used by a spammer...maybe. Also, if your server has been compromised, changing your root password won't do much to fix it...there are probably many other avenues into your server, that have been put in place. And you should always open a new thread, for a new question.

That said, you need to be VERY sure that your server has been HACKED, versus having an unsecured mail relay server. The two are VERY different. If you're brand-new to Linux, and this is a company mail server, your best course of action would be to hire a consultant that specializes in Linux/mail servers. Securing a mail server is NOT a trivial task, and if you have been compromised, you need to sort it out NOW, not use it as a learning experience. There are many how-to guides you can find:

http://etutorials.org/Linux+systems/...+7.5.+Postfix/
http://www.postfix.org/docs.html

Again, if you aren't sure of what you're doing with Linux, this is a daunting task, which is why I suggest you hire a consultant. Have their work documented, and learn from what they are doing.

Last edited by TB0ne; 05-01-2012 at 05:16 PM.
 
Old 05-02-2012, 01:35 PM   #10
piradeep
LQ Newbie
 
Registered: May 2012
Distribution: RedHat/CentOS
Posts: 27

Original Poster
Rep: Reputation: Disabled
Okay. Will follow that. Thanks a lot..
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix Configuration needed and its use ?? chetan12973 Linux - Server 1 12-24-2010 07:54 AM
Postfix configuration help needed! Drifter Linux - Software 2 06-05-2009 09:41 AM
Help needed for postfix setup ashwinbhoj Linux - Server 2 11-01-2006 11:05 PM
Postfix Vacation Solution Needed gr0undz3r0 Linux - Server 6 10-26-2006 11:53 AM
postfix as a backup MX-what is needed? bruce1271 Linux - General 0 03-16-2004 09:59 PM


All times are GMT -5. The time now is 01:43 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration