Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-18-2007, 03:46 AM   #1
Registered: Jan 2006
Location: taiwan
Posts: 156

Rep: Reputation: 30
some mails stored in mail queue

I found some mail is stored in /var/spool/mqueue , and I run "mailq" found some mails , I try to restart sendmail daemon , but the mail is still not send out , can advise how to send it ou ? thx
Old 06-19-2007, 01:17 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,044
Blog Entries: 14

Rep: Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213Reputation: 1213
Sometimes what you see in mqueue has already tried to go out and failed for one reason or another (e.g. bad address). It tries to resend multiple times (on one mail server I have up to 5 days) then puts a failure message in the log.

You can look for the message in your mail log to see why it was deferred.

The mail sequence number is whatever follows df or qf in the file name. For example in my mqueue I have:
-rw------- 1 root smmsp 643 Jun 19 13:05 dfl5JH5TbS031352
-rw------- 1 root smmsp 973 Jun 19 13:05 qfl5JH5TbS031352

"grep l5JH5TbS031352 /var/log/maillog" shows me the following:
Jun 19 13:05:31 servername sendmail[31352]: l5JH5TbS031352: from=<>, size=1010, class=0, nrcpts=1, msgid=<>, proto=ESMTP, daemon=MTA, [10.0.x.x]
Jun 19 13:05:33 atlsnml1 sendmail[31354]: l5JH5TbS031352: to=<>, delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=121010, [67.x.x.x], dsn=4.7.1, stat=Deferred: 451 4.7.1 Temporarily rejected. Try again later.

The first entry is the mail as this server received it from another (this server is my relay). The second entry tells me the destination rejected the email and to try again later. Sendmail will try it again later itself.

NOTE: IPs and host names in the above have been obfuscated to protect the guilty...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to foward stored mail ngwasuma Linux - Software 0 06-01-2007 09:05 AM
Evolution: sent mails are not stored netjack Linux - Software 0 06-11-2006 02:08 AM
Where mails get stored imahen Red Hat 2 02-06-2005 11:08 AM
urgent problem: mails does not move forward from queue to destination tej Linux - Software 2 10-08-2004 02:29 AM
Mail Queue... shibata Linux - Networking 1 11-24-2001 09:58 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:21 PM.

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