/var/spool/squeue gets full frequently


 
Thread Tools Search this Thread
Operating Systems AIX /var/spool/squeue gets full frequently
# 1  
Old 04-08-2010
/var/spool/squeue gets full frequently

hi, im new in aix administration.. months ago, I received mails, everytime a cron was executed. but now, I don't receive these mails.. and the /var/spool/squeue, gets full frequently. i'd like to know more information about this, what can i do?? sendmail is up, because, I executed ps -ef |grep sendmail and it returned =

# ps -ef | grep sendmail
root 225400 188542 0 Oct 24 - 2:31 sendmail: accepting connections

I have AIX 5.3

and in /etc/mail i have these files =

# pwd
/etc/mail
# ls
aliases aliases.db sendmail.cf sendmail.pid
# 2  
Old 04-08-2010
Hi,

You could try and flush the sendmail queue, to do this you could try the command

Code:
sendmail -v -q

You might also want to try restarting the sendmail process.

Also worth checking that the configuration files have not been changed unexpectedly.

Regards

Dave
# 3  
Old 04-08-2010
thanks for reply,

thanks,

well, I checked out the files, and i dont think so, because the date of last modify for those files, are very old..

unless, there are other ways to get this information (if those files have been modified?)

I'm gonna try to flush the sendmail queue, but i will try this on this weekend, hopefully this works..

-rw------- 1 root system 35 Oct 24 11:27 sendmail.pid
-rw------- 1 root system 47384 Dec 14 2007 sendmail.cf
-rw-r----- 1 root system 12288 Dec 13 2007 aliases.db
-rw------- 1 root system 1320 Dec 13 2007 aliases

I got another doubt, perhaps, you can help me also, i have the "guest" user unlocked, i'm starting in this job, so i'm not sure if this is ok, should i lock this user?


Quote:
Originally Posted by gull04
Hi,

You could try and flush the sendmail queue, to do this you could try the command

Code:
sendmail -v -q

You might also want to try restarting the sendmail process.

Also worth checking that the configuration files have not been changed unexpectedly.

Regards

Dave
# 4  
Old 04-08-2010
Hi,

Did the sendmail command flush the mail que?

As a guide I would say that if you don't require a user then the user should be locked or of possible removed.

Regards

Dave
# 5  
Old 04-09-2010
A cron job always sends a mail to the owner of the respective cron queue when it produces output which would go to the screen. Since there is no terminal attached to a cron job the only way for it to put that output somewhere is to mail it to the originator.

I would check the cron jobs of all users (you can find the crontabs of all users in "/var/spool/cron/crontabs/<username>") and add complete output suppression to those which haven't one already. If a cron job has to produce some output it should go to logfiles:

Code:
# wrong:
* * * * * /path/to/cronjob
# correct:
* * * * * /path/to/cronjob 1>/dev/null 2>/dev/null
# correct too:
* * * * * /path/to/cronjob 1>/path/to/logfile 2>/path/to/error-logfile

I hope this helps.

bakunin
# 6  
Old 04-12-2010
I tried the command sendmail -v -q

Hi, I tried the command but it gave me an error i think... can you helpme to findout what is this about please?

thankyou!

# sendmail -v -q


Warning: .cf file is out of date: sendmail AIX5.3/8.13.4 supports version 10, .c
f file is version 9
WARNING: local host name (BAANPRO) is not qualified; see cf/README: WHO AM I?
Running /var/spool/mqueue/o3CBj3np1138768 (sequence 1 of 2)
hash map "Alias0": unsafe map file /etc/mail/aliases.db: World writable director
y
dbm map "Alias0": unsafe map file /etc/mail/aliases: No such file or directory
root... WARNING: cannot open alias database /etc/mail/aliases; reading text vers
ion
Running /var/spool/mqueue/o3CBr1JP925722 (sequence 2 of 2)



Quote:
Originally Posted by gull04
Hi,

You could try and flush the sendmail queue, to do this you could try the command

Code:
sendmail -v -q

You might also want to try restarting the sendmail process.

Also worth checking that the configuration files have not been changed unexpectedly.

Regards

Dave
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

/var getting fill frequently

I have Red hat Linux server. There are 14 NFS shares which are coming from NAS. There are so many messages filling /var/log/messages, which seems like some NFS logging is enables somewhere, but I am not able to figure it out. Every few minutes, it will filll my /var (which is part of root) to 100%... (2 Replies)
Discussion started by: solaris_1977
2 Replies

2. Solaris

/var/spool/mqueue issue

Hi guys . I have a solaris machine serving as a DNS server for my environment. Everytime I go into /var/spool/mqueue , there are an aweful lot of emails with names likes: qfqB6ChrpL006644. When I cat the file , I get the following output: H??Received: from machine.domain.com... (3 Replies)
Discussion started by: Junaid Subhani
3 Replies

3. AIX

/var/spool/mail/ issues

Hi My box is running with AIX 6100-06 and Im the root user of this box My /var gets filled up often to 100% When I investigate I find that it is the below file which increases rapidly /var/spool/mail/pdgadmin I dont know why this file is growing up. Can any one assist me on this.... (2 Replies)
Discussion started by: samsungsamsung
2 Replies

4. Solaris

/var/spool/clientmqueue

Hi, solaris : 9 can we delete the files from this location /var/spool/clientmqueue . I found around 40K files lying in this location. Regards (1 Reply)
Discussion started by: maooah
1 Replies

5. Solaris

Solaris 9, /var/spool/clientmqueue/

Hi, We have some 2-3 Solaris 9 servers with the following issue. For every cron job which has email notifications, it is sending the emails, but it create files at /var/spool/clientmqueue/ which has similar contents. " V6 T1271362260 K1271362260 N1 P30359 MDeferred: Connection refused... (1 Reply)
Discussion started by: uxadmin007
1 Replies

6. UNIX for Advanced & Expert Users

Mail going to /var/spool/mqueue instead of being sent

Hello, I have a bunch of cron jobs in the crontab. For some reason mail from the cron jobs started going to /var/spool/mqueue instead of being sent. Does anyone know why mail from cron jobs would go to the queue instead of being sent? (9 Replies)
Discussion started by: xadamz23
9 Replies

7. UNIX for Dummies Questions & Answers

/var/spool/mail

Hi, How can i get my mail on either /var/spool/mail or /var/mail? I use mail and sendmail command to send mail. But everytime I send mail it comes to my outlook inbox and when I check with mail command I get the message "No mail for siba". (Note siba is my user Id.) (2 Replies)
Discussion started by: siba.s.nayak
2 Replies

8. UNIX for Dummies Questions & Answers

Sendmail /VAR/SPOOL/MAIL

Hi, First Question: In our company our users have their mailboxes in /var/spool/mail When I look at the users file it seems as if every email sent/received is in that user file! Is this because IMAP is being used or is that just how sendmail works? Second Question: How is that when I create... (3 Replies)
Discussion started by: mojoman
3 Replies

9. UNIX for Dummies Questions & Answers

/VAR/SPOOL/MAIL question

Hi, We have all the user account in a home direcory where their mail is stored and retrieved by email clients. We do however have /var/spool/mail with all the user accounts in it as well Our sendmail.cf is configured to use /var/spool/mqueue as the queue so .what is /var/spool/mail being used... (3 Replies)
Discussion started by: mojoman
3 Replies

10. UNIX for Dummies Questions & Answers

/var/spool/mqueue !!!

I keep having this msg on my SunOS console : Jun 29 08:57:40 bersimis sendmail: NOQUEUE: low on space (have 0, SMTP-DAEMON needs 101 in /var/spool/mqueue) I tried to make some space by deleting the files in it, but the msg came back ... Any tips ? Thanks (3 Replies)
Discussion started by: Wingman21
3 Replies
Login or Register to Ask a Question