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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-01-2012, 02:47 PM
|
#1
|
|
LQ Newbie
Registered: May 2012
Distribution: RedHat/CentOS
Posts: 20
Rep: 
|
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.
|
|
|
|
05-01-2012, 02:59 PM
|
#2
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,799
|
Quote:
Originally Posted by piradeep
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.
|
|
|
|
05-01-2012, 03:18 PM
|
#3
|
|
LQ Newbie
Registered: May 2012
Distribution: RedHat/CentOS
Posts: 20
Original Poster
Rep: 
|
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"
|
|
|
|
05-01-2012, 04:14 PM
|
#4
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,799
|
Quote:
Originally Posted by piradeep
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"
|
|
|
|
05-01-2012, 04:39 PM
|
#5
|
|
LQ Newbie
Registered: May 2012
Distribution: RedHat/CentOS
Posts: 20
Original Poster
Rep: 
|
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
|
|
|
|
05-01-2012, 04:41 PM
|
#6
|
|
LQ Newbie
Registered: May 2012
Distribution: RedHat/CentOS
Posts: 20
Original Poster
Rep: 
|
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
|
|
|
|
05-01-2012, 04:45 PM
|
#7
|
|
LQ Newbie
Registered: May 2012
Distribution: RedHat/CentOS
Posts: 20
Original Poster
Rep: 
|
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
|
|
|
|
05-01-2012, 04:46 PM
|
#8
|
|
LQ Newbie
Registered: May 2012
Distribution: RedHat/CentOS
Posts: 20
Original Poster
Rep: 
|
Do I have to just change the root password??
Last edited by piradeep; 05-01-2012 at 04:47 PM.
|
|
|
|
05-01-2012, 05:13 PM
|
#9
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,799
|
Quote:
Originally Posted by piradeep
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.
|
|
|
|
05-02-2012, 01:35 PM
|
#10
|
|
LQ Newbie
Registered: May 2012
Distribution: RedHat/CentOS
Posts: 20
Original Poster
Rep: 
|
Okay. Will follow that. Thanks a lot..
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:27 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|