How to send the email which is sleeping in my queue list?

2,325

Solution 1

Whenever sendmail has to deliver mails to other hosts which cannot be reached at that time, the messages are kept in the queue and are marked as “Deferred: Connection timed out”. Although the other hosts could be reached again and you want to tell sendmail to flush the mail queue, the command sendmail -q -v does not really try to reconnect to these hosts and still assumes that the connection timed out. The reason is that the hoststatus is cached, per default for a period of 30 minutes. Using sendmail -OTimeout.hoststatus=0m -q -v you can re-run the mail queue and force sendmail to reconnect to the hosts.

Alternatively, if you want to do a selective flush on perticular domain or user or recepitience mail to delete, use this command

  sendmail -qS -v apache # it will delete all mail from *@apache

  sendmail -qR -v a.com # it will delete all mail destined for recepient at user of a.com

Solution 2

sendmail -q

(if sendmail or postfix is your mta)

Share:
2,325

Related videos on Youtube

James123
Author by

James123

Updated on September 18, 2022

Comments

  • James123
    James123 over 1 year

    I have to replace Text inside HTML. When I looked ViewSource of the page I found this html tag. Now I need to replace text "Respuesta" with "Responder". I am using SharePoint CEWP webpart for this. What is the code I need write to replace this text?

    <div><a id="ReplyLink3" href="" ONCLICK="javascript:GoToPage('');return false;" target="_self"><img id="replyButton" border="0" align="middle" alt="Respuesta" src="/_layouts/images/reply.gif">&nbsp;<NOBR><b>Respuesta</b></NOBR></a><
    
  • justkt
    justkt about 14 years
    Seems like a better solution than mine.
  • user113716
    user113716 about 14 years
    You're missing the inner parent(). Right now, it is replacing with only the content of #ReplyLink3, excluding the element itself.
  • James123
    James123 about 14 years
    Do you any body know about Sharepoint? How can I put this code sharepoint page using CEWP?
  • justkt
    justkt about 14 years
    Are you trying to statically update the word Respuesta (permanently for all time), or do it dynamically for some reason? If the former, just edit the page with CEWP. If the latter, then you need to find the Head of your webpage and add a script or external script.
  • James123
    James123 about 14 years
    I want permanently for all time. How can I find Head of the web page and your script please, direct me.
  • justkt
    justkt about 14 years
    @James123 - doesn't sound like you want to use jQuery. Instead, it sounds like you want to edit the HTML - is that correct? If so, just remove Respuesta and write Responder. If you aren't familiar with editing using HTML, looks like there are some good CEWP tutorials out there if you Google.