Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How do i get sendmail to process mails in /var/spool/clientmqueue? sendmail -q does not work for this directory.

share|improve this question

1 Answer 1

You will need to check what items are in that folder, if it is a qf/df pair, then it probably a failed mail transaction. So something wrong with your setting or mail not going out or to someone or even got rejected.

You also need to know that the normal "sendmail -q" will process the queue every one hour interval. You can do "sendmail -q10m" to make it process the queue every 10minutes.

It will also be good to check the mail queue "mailq -v -Ac", see if its empty or not. If its empty, then those mail in the clientmqueue, must have been the one that are not successful.

share|improve this answer
    
mailq -Ac -v show the queue as empty, so it is safe to remove these files? –  Robert Sep 15 '09 at 9:31
    
If there are only a few qf/df pair, you can try can cat the file and see the content before removing it. I used a perl scripts from here (brandonhutchinson.com/deleting_mail_queue.html) to check the queue and removing it, it is much more easier and safer. –  Muhammad Sep 16 '09 at 1:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.