Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.