LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-18-2007, 02:46 AM   #1
sunhui
Member
 
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, 12:17 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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=<myname@invoice.com>, size=1010, class=0, nrcpts=1, msgid=<200706191705.NAA17877@invoice.com>, proto=ESMTP, daemon=MTA, relay=invoice.com [10.0.x.x]
Jun 19 13:05:33 atlsnml1 sendmail[31354]: l5JH5TbS031352: to=<somebody@somewhere.biz>, delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=121010, relay=mail.somewhere.com. [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...
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:33 AM.

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