1834163 Members
2514 Online
110064 Solutions
New Discussion

Re: /var/spool/mqueue

 
SOLVED
Go to solution
Sam Dee
Advisor

/var/spool/mqueue

Hi All,

Please what type of files are in /var/spool/mqueue? Is it ok to rm them?

Your urgent response will be appreciated

Regards
Sam

5 REPLIES 5
Alex Lavrov.
Honored Contributor
Solution

Re: /var/spool/mqueue

I found something for Linux, but I'm sure sendmail on hpux works the same way:

http://www.javacommerce.com/displaypage.jsp?name=daemon/00000073.sql&id=18230

And here is another helpful link:
http://www.brandonhutchinson.com/deleting_mail_queue.html


It's not a god idea just to remove the files. You should stop sendmail first and then "requeue" the files, like it's said in threads above.

I don't give a damn for a man that can only spell a word one way. (M. Twain)
Robert-Jan Goossens_1
Honored Contributor

Re: /var/spool/mqueue

Hi Sam,

The files in /var/spool/mqueue are created by sendmail. Older files can be removed.

Document description: How can I look at mails in the mail queue?
Document id: IVKBRC00006739

Europe
http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062907037

US
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062907037

# find /var/spool/mqueue -atime +7 -exec rm {} \;

Best regards,
Robert-Jan
Robert-Jan Goossens_1
Honored Contributor

Re: /var/spool/mqueue

Sam,

Is this the same server from your last mail question?

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=588643

If yes, go to the /etc/nsswitch.conf and change

aliases: files

# /sbin/init.d/sendmail stop

use the rm command in my previous post to cleanup /var/spool/mqueue

# sbin/init.d/sendmail start

Robert-Jan
Sam Dee
Advisor

Re: /var/spool/mqueue

Thank you all for help

Sam
Sam Dee
Advisor

Re: /var/spool/mqueue

Issue solved
Thanks