Operating System - Linux
1819777 Members
3120 Online
109607 Solutions
New Discussion юеВ

Re: sendmail: /var/spool/clientmqueue

 
SOLVED
Go to solution
Rad Rioveros
Occasional Advisor

sendmail: /var/spool/clientmqueue

Gurus,

We want to turnoff sendmail (daemon)on our linux boxes (RHEL) but sending email must be still working. After turning off, mails being sent got stucked in /var/spool/clientmqueue.

I tried to run ('got from googling the net):
/usr/sbin/sendmail -L sm-msp-queue -Ac -q

but got this error:

Running /var/spool/clientmqueue/k9C5dZQN001605 (sequence 1 of 1)
user@domain.com... Connecting to [127.0.0.1] via relay...
user@domain.com... Deferred: Connection refused by [127.0.0.1]

How can I flush mails from /var/spool/clientmqueue without starting sendmail?

(sendmail version: 8.12.11)

TIA,
r@d
5 REPLIES 5
Ivan Ferreira
Honored Contributor
Solution

Re: sendmail: /var/spool/clientmqueue

You have to rename/remove the /etc/mail/submit.cf.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Rad Rioveros
Occasional Advisor

Re: sendmail: /var/spool/clientmqueue

Thanks ;)
Ivan Ferreira
Honored Contributor

Re: sendmail: /var/spool/clientmqueue

Hi Rad, remember to assign points to the answers. It's a really good way to thank for the help. Take a time to review your questions without points assigned:

http://forums1.itrc.hp.com/service/forums/publicProfile.do?userId=CA1109305&forumId=1

Have a nice day.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: sendmail: /var/spool/clientmqueue

shalom,

undeliverable mail first goes to /var/spool/mqueue

After a period of time defined, usually 4 hours it goes to /var/spool/clientmailque

Its the same mail and can sit there for 5 days depending on your sendmail.cf configuration.

rm -f * in the directory wil flush the mail.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Rad Rioveros
Occasional Advisor

Re: sendmail: /var/spool/clientmqueue

Thanks a lot!