LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-13-2010, 11:11 PM   #1
Md.Abul Quashem
Member
 
Registered: Apr 2006
Location: bangladesh
Distribution: RedHat linux 9.0, Fedora core 5 and 6
Posts: 38

Rep: Reputation: 15
Question How to untar my tarred mail queue folder back to the sendmail queue directory again?


Dear All,
I've tar my mail queue from the sendmail queue directory and now want to untar it and if I untar it, the question is how can I move it to the queue directory again to send the mail..., if there is any difficulty? I untar it because the queue was full...
Thanks in advance

Last edited by GrapefruiTgirl; 02-15-2010 at 06:12 AM.
 
Old 02-14-2010, 02:20 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
FIRST
change the title of the thread

DO NOT USE " Need urgent help "

there is NOTHING in your post that is " urgent"

answer
from gnome click and drag it .
 
0 members found this post helpful.
Old 02-14-2010, 02:33 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by John VV View Post
FIRST
change the title of the thread
Please don't make it sound like a demand.


Quote:
Originally Posted by John VV View Post
answer
from gnome click and drag it .
And what if the poor bugger doesn't run Xorg, X11 or GNOME on his headless server anyway (which would be good)?


Quote:
Originally Posted by Md.Abul Quashem View Post
how can I move it to the queue directory again to send the mail
By using "-C" as in 'tar -C /var/spool/clientmqueue/ -xzf /path/to/archive.tar.gz' or by cd'ing into the target directory root first 'cd /var/spool/ && tar -xzf /path/to/archive.tar.gz'. How the path component of "-C" or where you cd to depends on the path set inside the archive which you view with something like 'tar -vtzf /path/to/archive.tar.gz|head -30'.


Quote:
Originally Posted by Md.Abul Quashem View Post
I untar it because the queue was full
Obviously it would be best to have the cause for filling the queue first, right?
 
Old 02-14-2010, 02:43 AM   #4
blackhat_hk
LQ Newbie
 
Registered: Feb 2010
Posts: 3

Rep: Reputation: 0
you can use sendmail command .
 
Old 02-14-2010, 05:22 AM   #5
hostmaster
Member
 
Registered: Feb 2007
Posts: 55

Rep: Reputation: 17
Its so simple. Just untar it (tar xvzf) the archive and all mails will be extracted to the spool directoy (Depends how you created the archive, and how you extracted it). Sendmail will recognize the queue mails and will try to send it. If you want to know exactly how to extract it please post the exact command you used to tar the mail queue and what was your Current Working directory (pwd)
 
Old 02-14-2010, 11:22 PM   #6
Md.Abul Quashem
Member
 
Registered: Apr 2006
Location: bangladesh
Distribution: RedHat linux 9.0, Fedora core 5 and 6
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by hostmaster View Post
Its so simple. Just untar it (tar xvzf) the archive and all mails will be extracted to the spool directoy (Depends how you created the archive, and how you extracted it). Sendmail will recognize the queue mails and will try to send it. If you want to know exactly how to extract it please post the exact command you used to tar the mail queue and what was your Current Working directory (pwd)

Sorry to all for giving that title...

I used the command: tar cvfz mqueue-rx.gz mqueue-rx from pwd:/var/spool directory...

thanks to all for replying ..
 
Old 02-16-2010, 08:32 AM   #7
hostmaster
Member
 
Registered: Feb 2007
Posts: 55

Rep: Reputation: 17
cd /var/spool
tar xvzf /path/to/mqueue-rx.gz
 
  


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
boot sector and lilo collapse !!!!! URGENT URGENT URGEN !!!!! frelihm Linux - Software 21 12-02-2009 10:21 AM
Urgent Question Regarding Urgent Questions! Need Help Now! Crashed_Again LQ Suggestions & Feedback 11 10-17-2007 08:07 PM
Urgent..Im Having A Nightmare..Urgent!!!! midgcool Linux - Software 41 11-30-2004 10:19 AM
Urgent Urgent !!!! Mozilla Keeps All Your Deleted Emails !!!! odin123 Linux - Software 2 01-31-2004 02:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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