please advice how to stop the file creation under the directory -
/var/spool/clientmqeueue
the reason for that because the clientmqeueue folder have huge capacity and files created every day
please advice for all possibilities
If you don't care about loosing all your emails, only to stop sendmail:
service stop sendmail
/var/spool/clientmqueue
is where emails are waiting for delivery.
If there are problems with sendmail or it's configuration, this dir will be growing. Check your config files: /etc/mail/sendmail.cf
and /etc/mail/submit.cf
This is your mail queue, most likely it's a program or programs sending mail(s) to users which your system doesn't know how to deliver.
you can check the output of
mailq
which may (or may not) show you what's in there, but this command depends entirely on how your system is configured.As to what's generating them, it's most likely cron jobs.