The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
performing cleanup when a job finishes ChicagoBlues Shell Programming and Scripting 4 03-06-2008 09:41 AM
awk/sed/ksh script to cleanup /etc/group file pdtak Shell Programming and Scripting 6 02-28-2008 12:33 AM
Help with cleanup whdr02 Shell Programming and Scripting 2 01-25-2008 12:44 PM
pthread_cleanup_push/pop - cleanup handler problem sonicx High Level Programming 2 12-08-2007 11:15 PM
Login ID cleanup MILLERJ62 AIX 1 05-12-2006 01:20 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 02-22-2006
Registered User
 

Join Date: Feb 2006
Posts: 4
sendmail cleanup

What is the correct procedures to clean up /var/spool/mqueue? Any help appreciated. This directory gets really clogged up at times.
Reply With Quote
Forum Sponsor
  #2  
Old 02-23-2006
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
The quick and easy answer is
# cd /var/spool/mqueue
# rm *

But this doesn't do a thing (except kill off all those unsent emails). If /var/spool/mqueue is not empty, then you have an issue - you need to fix the real problem of why mail isn't leaving the system.

Post the OS and version, what your network configuration is like (is this a mail relay, are you behind a firewall, running your own DNS).

You can check to see if sendmail has some errors in configuration with
# /usr/lib/sendmail -d0.1 -bt < /dev/null

It will give you something like this:

Version 8.13.4
Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
TCPWRAPPERS USERDB USE_LDAP_INIT

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = localhost
(canonical domain name) $j = localhost.localdomain
(subdomain name) $m = localdomain
(node name) $k = localhost.localdomain
========================================================

ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>


If there are errors (this one doesn't show any), those errors need to be looked at. If it doesn't quickly give you this type of output, then you probably have an issue with DNS.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:56 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0