LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 08-31-2015, 03:27 PM   #1
Sean1988
LQ Newbie
 
Registered: Jan 2014
Location: India
Distribution: RHEL, CentOS, Fedora
Posts: 19

Rep: Reputation: Disabled
/var/spool/mqueue getting full often


Hello there,

I have a problem that i'm trying to sort out in an AIX host. /var/spool/mqueue is full of dead letters but i don't see sendmail running. It's easy to setup a cron job which removes dead letters older than 30 days. But i would like to understand what causes this issue. Any help on this matter is highly appreciated.

$ ls -l | sort -nr | head
total 2030536
-rw-r--r-- 1 root system 866283 Jun 24 00:29 dft5O0TLkZ2159082
-rw-r--r-- 1 root system 438772 Jun 23 00:30 dft5N0UGhm1401160
-rw-r--r-- 1 root system 354809 Aug 09 00:34 dft790YfeI823578
-rw-r--r-- 1 root system 320232 May 29 01:32 dft4T1WTgm2031790
-rw-r--r-- 1 root system 293545 Jul 12 00:33 dft6C0X2sJ1651120
-rw-r--r-- 1 root system 279479 Jul 05 00:35 dft650Zctx1208820
-rw-r--r-- 1 root system 244257 May 12 00:28 dft4C0S0QL1986992
-rw-r--r-- 1 root system 230103 Aug 02 00:34 dft720Y6SG1081710
-rw-r--r-- 1 root system 224729 Aug 07 00:29 dft770TYnN1491260

$ pwd
/var/spool/mqueue
$ du -sg .
0.98 .


$ ps -ef | grep -i sendmail | grep -v grep
$


Thanks

Last edited by Sean1988; 08-31-2015 at 03:30 PM.
 
Old 08-31-2015, 11:23 PM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,864
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
You should check the content of the letters. Cron, for example, sends you the output of the executed commands in email (if there is such output -- cf: redirection).
 
1 members found this post helpful.
Old 09-01-2015, 10:20 AM   #3
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 509

Rep: Reputation: 203Reputation: 203Reputation: 203
Hi there,

Regarding the mail queue, besides looking inside those files to try and identify their origin as NevemTeve suggested, you might also want to look at the output of the "mailq" command, as this may give you a clue about why they end up there (i.e. could not be delivered).

Even without the sendmail daemon running, you can retry the delivery by running "/usr/sbin/sendmail -q".

Just a comment about the sendmail daemon: it does not need to be running for local mail delivery to work (for example output from cron jobs, or mail send to a local user with the mail/mailx/etc commands), or for you to send mail from AIX to a remote server. It only really needs to run as a daemon if you want to accept SMTP connections (most likely from other hosts). On many (most?) servers this is not required. I routinely stop the daemon to improve security. The daemon does also retry sending message in the queue from time to time - I take care of that by just scheduling a cron job to run "sendmail -q" every 30 minutes.
 
2 members found this post helpful.
Old 09-01-2015, 01:58 PM   #4
Sean1988
LQ Newbie
 
Registered: Jan 2014
Location: India
Distribution: RHEL, CentOS, Fedora
Posts: 19

Original Poster
Rep: Reputation: Disabled
Hello NevemTeve, cliffordw,

Thank you for your reply. It's exactly like you said. These are outputs from cronjobs which are being mailed to local user/root.
Sendmail is not running. Seems like SMTP is required to connect a relay server and deliver these messages. For some reason, both sendmail and SMTP is disabled in my domain. I guess its best to leave as it is and include a job to delete older files.

$ lssrc -s sendmail
Subsystem Group PID Status
sendmail mail inoperative


Thank you so much for posting your suggestions. cheers mates.
 
Old 09-01-2015, 11:23 PM   #5
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 509

Rep: Reputation: 203Reputation: 203Reputation: 203
Hi,

For cron jobs, if you don't want them to email the output, a suggestion: change the cron jobs to redirect their output to a log file instead.

Regards,

Clifford
 
Old 09-11-2015, 06:48 AM   #6
Sean1988
LQ Newbie
 
Registered: Jan 2014
Location: India
Distribution: RHEL, CentOS, Fedora
Posts: 19

Original Poster
Rep: Reputation: Disabled
Hello Clifford,

Sorry i couldn't reply you soon. Yes, that's an option too. I'll probably include logrotate to compress and rotate the output.

Thank you so much for your time.

Last edited by Sean1988; 09-11-2015 at 03:37 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete files in /var/spool/mqueue HLisD1 Linux - General 11 12-21-2018 08:19 AM
proc mail not flushing /var/spool/mqueue messages periodically sikkalgopal Linux - Server 8 12-01-2009 04:18 AM
low on space have 0, smtp-daemon needs 101 in /var/spool/mqueue cconta Solaris / OpenSolaris 1 07-06-2009 09:52 PM
/var/spool/mqueue/ is empty, but Sendmail keeps on sending messages guarriman Linux - Software 1 02-20-2006 04:46 AM
What is /var/spool/mqueue?? WorldBuilder Linux - General 4 05-07-2003 02:32 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 04:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration