![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
sendmail cleanup
What is the correct procedures to clean up /var/spool/mqueue? Any help appreciated. This directory gets really clogged up at times.
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
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. |
||||
| Google The UNIX and Linux Forums |