Visit Our UNIX and Linux User Community


/var/spool/mqueue issue


 
Thread Tools Search this Thread
Operating Systems Solaris /var/spool/mqueue issue
# 1  
Old 12-06-2012
RedHat /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:



Code:
H??Received: from machine.domain.com (machine.domain.com [172.21.5.17])
        by machine.domain.com (8.13.8+Sun/8.13.8) with ESMTP id qB6Dk5ow015892
        for <user@machine.domain.com>; Thu, 6 Dec 2012 18:46:05 +0500 (PKT)
H??Received: (from user@localhost)
        by machine.domain.com (8.14.4+Sun/8.14.4/Submit) id qB6Dk0td018573
        for orb2; Thu, 6 Dec 2012 18:46:00 +0500
H??Date: Thu, 6 Dec 2012 18:46:00 +0500 
H??From: Orb Second Instance User <ouser@machine2.domain.com>
H??Message-Id: <201212061346.qB6Dk0td018573@machine.domain.com>
H??To: user@machine2.domain.com
H??Subject: Couldn't run your "cron" job
H??MIME-Version: 1.0
H??Content-Type: text/plain

It seems that crons from other machines are sending random mails. How do I identify on other machines the script that are sending these emails to my dns server. I want them to stop.

How do I ?SmilieSmilie
# 2  
Old 12-06-2012
Do you know what is 172.21.5.17? That might give you a clue.

If you don't use unix based e-mail except for outgoing notices, then perhaps you could turn off the service. I expect it runs on port 25 as a default SMTP service will.




Robin
Liverpool/Blackburn
UK
# 3  
Old 12-06-2012
The IP address belongs to the machine sending the mail.
and I do use unix based email.
# 4  
Old 12-06-2012
If you can avoid unix email as a human user, then that's probably best.

Command is simply mail, but read the manual page first as it is a bit messy. probably the best way to use mail is as a notifier, but you will need to set up your sendmail.cf file (often down /etc) and tweak a few records. Assuming that you have more sensible mail with a central server of some sort that will accept SMTP messsages then you can enable and set the DS record in this file. For me, I set the record to be:-
Code:
DSliverpool-relay-01.mycompany.co.uk

You need to ensure that the name can be resolved by DNS preferably and that the port is available. If you do the following, you should get similar output if it is alive:-
Code:
RBATTE1 @ /home/RBATTE1> telnet liverpool-relay-01 25
Trying...
Connected to liverpool-relay-01.mycompany.co.uk.
Escape character is '^]'.
220-SMTP Relay
220 Warning: no name found in DNS for your host address
HELO
250 OK
QUIT
221 mycompany.co.uk closing
Connection closed.
RBATTE1 @ /home/RBATTE1>

It may take a few seconds to connect so be patient, but if you are getting over 20 seconds, there is probably a block on the port.

You then use the mail or the sendmail command, to send mail to your normal e-mail account.

If your directory /var/spool/mqueue is filling up, then this is probably outgoing mail that is stuck. Fixing the above may then start delivering them to (I presume you have obscured it) user@machine.domain.com


I hope that this is useful, but let me know if I have completely missed the point.




Robin
Liverpool/Blackburn
UK

Previous Thread | Next Thread
Test Your Knowledge in Computers #890
Difficulty: Easy
In sed, the REGEX dot (.) matches exactly one character.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

DNS server /var/spool issue

Hello all Currently I am working in a live production environment with 100+ Solaris servers . The environment has one DNS server and one SMTP server. The problem that I am facing since the past 2 months is that the /var/spool/mqueue on my DNS server keeps getting full i.e. mails with name... (1 Reply)
Discussion started by: Junaid Subhani
1 Replies

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. UNIX for Dummies Questions & Answers

NOQUEUE: low on space ( have 0, SMTP-DAEMON needs 101 in /var/spool/mqueue)

hi, I'm in Solaris 2.8 env. When i'm trying to add a ftp user account , encountered "no space in disk" .. couldn't create any user. Then check the fs disk space with "df - k " and /var/adm/syslog .. got the below message. Jun 9 03:10:53 mail sendmail: NOQUEUE: low on space (have 0,... (10 Replies)
Discussion started by: Dolly
10 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

Featured Tech Videos