LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to untar my tarred mail queue folder back to the sendmail queue directory again? (http://www.linuxquestions.org/questions/linux-server-73/how-to-untar-my-tarred-mail-queue-folder-back-to-the-sendmail-queue-directory-again-788975/)

Md.Abul Quashem 02-14-2010 12:11 AM

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

John VV 02-14-2010 03:20 AM

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 .

unSpawn 02-14-2010 03:33 AM

Quote:

Originally Posted by John VV (Post 3863125)
FIRST
change the title of the thread

Please don't make it sound like a demand.


Quote:

Originally Posted by John VV (Post 3863125)
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 (Post 3863058)
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 (Post 3863058)
I untar it because the queue was full

Obviously it would be best to have the cause for filling the queue first, right?

blackhat_hk 02-14-2010 03:43 AM

you can use sendmail command .

hostmaster 02-14-2010 06:22 AM

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)

Md.Abul Quashem 02-15-2010 12:22 AM

Quote:

Originally Posted by hostmaster (Post 3863204)
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 ..

hostmaster 02-16-2010 09:32 AM

cd /var/spool
tar xvzf /path/to/mqueue-rx.gz


All times are GMT -5. The time now is 07:38 AM.