How to clean mails queued at clientmqueue directory

Hi there,

I have a Solaris 10 x86 system. The sendmail has the default system configuration, and the mail worked fine until a few days ago. Right now the local emails (cron, atq, and any emails sent to local users) work fine.  Occasionally one or two outside emails got sent, but failed most of the times (no sendmail configuration changes and no other system changes were done during this period). I have restarted the sendmail service, and it won't help at all. The syslog indicates that all the unsent emails are queued, and I can see that these emails are all in /var/spool/clientmqueue directory.

Here are my sendmail processes:

ps -ef | grep sendmail
    root 25611     1   0 17:54:46 ?           0:00 /usr/lib/sendmail -bd -q15m -C /etc/mail/local.cf
   smmsp 25609     1   0 17:54:46 ?           0:00 /usr/lib/sendmail -Ac -q15m

My questions:
1. How can I find out why these emails are queued, not sent?
2. How can I force to clear the queued emails?
3. Possible reasons why sendmail doesn't work consistently for sending outside emails?

Many thanks.

Kelly

ccdsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
Joseph GanSystem AdminCommented:
1. You can check /var/log/syslog file to find out why some email didn't send out.
2. /usr/lib/sendmail -q to clear out queued mail.
3. Again check /var/adm/messages and /var/log/syslog to find out.
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
 
ccdsAuthor Commented:
I have tried all of your suggestions before I posted the questions. I didn't find any thing wrong of cause.

Last night I found the problem which has nothing to do with sendmail configuration. Another program, which uses mail program to send email message was hung, and several copies of this program were running. After I killed these running processses, all the queued emails got cleared up.

so problem solved

0
 
ccdsAuthor Commented:
The solutions provided are valid solutions, but it didn't help me. I solved problem myself.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.