Launchd and periodic: mail does not get sent

Hello together,
I have the same problem as reported in this thread:
http://discussions.apple.com/thread.jspa?messageID=6241179
According to the thread the problem seemed to be fixed in Mac OS X 10.5.2 but I have it in 10.5.5
In short:
Whenever periodic scripts are started by launchd they run but no email is sent even if there is a file /etc/periodic.conf set up to send email.
Instead an entry appears in /var/log/system .log:
com.apple.launchd[1] (com.apple.periodic-daily[307]): Stray process with PGID equal to this dead job: PID 363 PPID 1 sendmail
If the periodic jobs are started in terminal with "sudo periodic daily" the mail is sent by the local mail system.
Does anyone know, how to fix this.
Thanks in advance
Martin

Jerry Levan1 wrote:
Any suggestions on how to fix the problem?
Jerry
The problem:
launchd is killing the mail process before it can send the email because it considers it a stray child process.
That is what this line is telling you:
"Nov 21 03:16:47 mbp com.apple.launchd[1] (com.apple.periodic-daily1904): Stray process with PGID equal to this dead job: PID 1969 PPID 1 sendmail"
The solution:
I added the following to my com.apple.periodic-daily.plist and the daily run output started being mailed to me again...
<key>AbandonProcessGroup</key>
<true/>
Like so:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.
com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.apple.periodic-daily</string>
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/periodic</string>
<string>daily</string>
</array>
<key>LowPriorityIO</key>
<true/>
<key>Nice</key>
<integer>1</integer>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>3</integer>
<key>Minute</key>
<integer>15</integer>
</dict>
<key>AbandonProcessGroup</key>
<true/>
</dict>
</plist>
Make sure you unload and load com.apple.periodic-daily.plist after you make the change so it is seen by launchd...
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.periodic-daily.plist
sudo launchctl load /System/Library/LaunchDaemons/com.apple.periodic-daily.plist
Further details at:
http://developer.apple.com/technotes/tn2005/tn2083.html#SECCAREFULWITHTHATFORKEU GENE
Cheers,
Darrell

Similar Messages

  • When trying to send mail via Lotus Notes webmail, mail does not get send

    Firefox 4.01, XUL-manager installed.
    Logged in to corporate webmail, can see mails etc. I can create a mail (new, reply, etc.) but when I hit the send button, I get a popup asking if a copy needs to be archived. no matter if I say yes or no, the mail does not get send. Also saving as draft does not work.

    Hi,
    yes smtp is a standard and I think you could use this with almost every smtp server.
    If your smtp server doesn't require authentication you can access it without an authenticator
    I think...
    Best regards,
    Jens

  • Installed OS X 10.5.6 AND NOW MAIL DOES NOT WORK

    Installed the newest operating system and Mail does not send or receive messages from the .mac/mobile me account. In fact there are no old messages in any of the folders (inbox,sent,junk,drafts, or trash). New messages can be read and sent online but nothing through Mail.
    I have deleted the account and added it new again in preferences. I have deleted Mail and reinstalled it. I have made sure the account is "Online" and still nothing. Activity shows no progress and Connection doctor says I am connected to both incoming and outgoing mail servers. Help?!!

    I am not sure what your attempts to fix this may have created, but the original issue may be what is discussed in:
    http://support.apple.com/kb/TS2537
    In addition to the article cited, if you ran 10.3 or earlier prior to upgrading to Tiger, once-upon-a-time, you might also need to remove two files with MessageSorting in their names.
    More info, please. Your issue may not be what is targeted by the article, particularly if you could see any messages in any mailbox?
    Ernie

  • Mail does not store sent mail on server

    Sending messages with Apple Mail fails to store them on server. I have the preferences checked to store them on server but this does not happen. I am using hostgator.com and I can log into my webmail account with Squirrel mail and sent mail is not stored or seen in the sent mail box.
    John

    Hello John:
    I have no clue what those things you mention are….
    If, however, your mail platform is POP, the sent messages will not be stored on the server.
    Barry

  • Upgraded to Lion and now Mail does not show attachments in the Send Box (for new messages only).

    After upgrading to Lion and switching Mail to the classic mode, I can no longer see if messages have attachment in my Send Box. However, I can go into the message and see the attachment.
    Strangely, all my messages prior to the upgrade show their attachments.
    I've looked through the preferences and don't see a swith for this.
    Any suggestions. Thanks.
    Blair

    Walter, thank you for the suggestion.
    Perhaps I am not explainging myself very well.
    In the Send Box new messages do not show the clip in the Attachments column. The image below is of two messaegs, both of which have an attachment, yet no clip is shown (this is also true of the Draft Box).
    In all other boxes, an attachment is shown with a clip (see below).
    I need the clips to be shown in all mail boxes.
    Thanks.
    Cheers, Blair

  • MaIl DoEs NoT GeT IMAGES

    since the update, my gmail messages I receive to the native mail account are not displaying the embedded images even after I press "get images".
    I work in communications and send/receive a lot of these emarketing type of messages so I'd like to know what the problem is. The same message shows up just fine on the iPhone.
    Thx for any/all help.
    P.S. Still hating how hard it is to post to the forum on the PB since the update.

    Hi gumnutnijna,
    Does this only happen when using your GMail account? Do you have any other accounts set up on your BlackBerry smartphone to test with?  Also, to confirm, are the messages still in your GMail account inbox on your computer?
    Thanks.
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Message does not get sent correctly???

    Hello everyone ,
    I have to do a program that captures traffic from a client and sends it to a server and gets the traffic from the server and sends it back to the client... it's a intermediate Java program between a server and a client ( i need it in order to analyze a protocol ) .
    In more concrete terms:
    1) I have my java program, a windows server and a windows client.
    2) My java program connects to the windows server.
    3) My java program listens for an incoming connection and accepts the windows client.
    4) The java program reads a string from the windows client and send it to windows server. Than it reads from the windows server the response and send it back to the client ... And so on... and it prints the string so that I can analyze the protocol...
    The thing is that my program does receive a string from the client and it does send it to the server but it doesn't read the response for some reason ( it gets stuck ) ....
    Here is my source code:
    import java.io.*;
    import java.net.*;
    public class TrafficCapture{
         public static void main (String[] args) {
              ServerSocket trafficCaptureSocket = null;
              Socket clientSocket = null;
              Socket serverSocket = null;
              InputStream fromClient = null;
              PrintWriter toClient  = null;
              InputStream  fromServer = null;
              PrintWriter toServer   = null;
              int BUFFER_SIZE = 2048;          
              int numBytes;
              try{
                   serverSocket = new Socket("127.0.0.1",2000);
              catch(IOException e){
                   System.out.println("Could not connect to server.");               
                   System.exit(-1);
              System.out.println("Connected to server.");
              try{
                   fromServer = serverSocket.getInputStream();
                   toServer   = new PrintWriter ( serverSocket.getOutputStream(), true );
              catch(IOException e){
                   System.out.println("Error while getting server input and output streams");
              System.exit(-1);
              try{
                   trafficCaptureSocket = new ServerSocket(1000);
              catch (IOException e){
                   System.out.println("Could not listen.");
                   System.exit(-1);
              System.out.println("Waiting for client.");
              try{
                   clientSocket = trafficCaptureSocket.accept();
              catch (IOException e){
                   System.out.println("Accept failed");
                   System.exit(-1);
              System.out.println("Client connected.");
              try{
                   fromClient = clientSocket.getInputStream();
                   toClient   = new PrintWriter (clientSocket.getOutputStream() , true );
              catch(IOException e){
                   System.out.println("Error while getting client input and output streams.");
                   System.exit(-1);
              try {
              while ( true )
                   byte[] buffer = new byte[BUFFER_SIZE];
                   char[] line   = new char[BUFFER_SIZE];     
                   if ( (numBytes = fromClient.read(buffer))!=-1  ){
                        System.out.println("Received: " + numBytes);
                        System.out.print("Client to Server>");                         
                        for (int i = 0; i < numBytes; i ++ )
                              System.out.print( (char) buffer[i] + ",");
                              line[i] = (char) buffer;
                        toServer.write(line, 0 , numBytes);
                   // toServer.flush();
                        System.out.println();
                   if ( (numBytes = fromServer.read(buffer))!=-1) {
                        System.out.print("Server to Client>");
                        for(int i = 0; i < numBytes; i ++ )
                             System.out.print((char) buffer[i] + ",");
                             line[i] = (char) buffer[i];
                        toClient.write(line, 0, numBytes);
                        // toClient.flush();
                        System.out.println();
              catch(IOException e){
                   System.out.println("Error while redirecting data.");
              System.out.println("Out");
              try {
                   clientSocket.close();
                   serverSocket.close();
                   trafficCaptureSocket.close();
                   fromServer.close();
                   toServer.close();
                   fromClient.close();
                   toClient.close();     
              catch(IOException e){
                   System.out.println("Failed to close sockets.");          
    Message was edited by:
    HeartOpenBook

    Read the different directions in separate threads, wo you don't have to worry about who reads/writes when.

  • HT204053 This just started. I cannot log on to my iCloud mail account and .me mail does not work.

    My two .me mail boxes just stopped working and I cannot sign in to my iCloud Mail.
    Is there a system problem?
    Many thanks for any help.

    http://www.apple.com/support/systemstatus/
    Seems there's been an issue for a couple of hours. If they fix it soon, I don't think a several-hour outage is the type of thing that affects AAPL. I've got my fingers crossed they'll fix it soon.

  • Why does a PDF file created in Pages, attached to e-mail, not get sent?

    Why does a PDF file created in Pages, attached to e-mail, not get sent?  I even blank copied myself and nothing seems to have been sent.  Could it bee the size of the PDF file?

    They send for me, my test document was 3.8 MB.

  • Safari says "i cannot open the page because the server cannot be found" I get this on Safari and Mail does not function. Apps work like a dream. All Windows OS are screaming. Any thoughts?

    Safari says "i cannot open the page because the server cannot be found" I get this on Safari and Mail does not function. Apps work like a dream. All Windows OS are screaming. Any thoughts?

    You can check this thread for the answer you are looking for.
    https://discussions.apple.com/thread/3685247?start=0&tstart=0

  • Sent mail does not appear in sent mailbox after sending

    Sent mail does not appear in sent mailbox after sending

    From reports on this site, Yahoo mail doesn't work reliably with Mail. The following steps may help.
    Quit Mail. Force quit if necessary.
    Back up all data. That means you know you can restore the Mail database, no matter what happens.
    Triple-click the line below on this page to select it:
    ~/Library/Mail/V2/MailData/Envelope Index
    Copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder
    from the menu bar. Paste into the box that opens (command-V), then press return.
    A Finder window will open with a file selected. Move the selected file to the Desktop, leaving the window open. Other files in the folder may have names that begin with "Envelope Index". Move those files, if any, to the Trash.
    Log out and log back in. Relaunch Mail. It should prompt you to re-import your messages. You may get a warning that the index is corrupt and that Mail has to quit. Click OK.
    Test. If Mail now works as expected, you can delete the file you moved to the Desktop. Otherwise, post your results.

  • Sent items of my exchange account in iphone does not get updated

    Hi..
    sent items of my exchange account in iphone does not get updated. Mails sent from iphone are getting recieved by everyone and same is getting updated in outlook. sent items for the same account in ipad is getting updated. I am not facing this problem with any other folders in my exchange account. someone please provide a solution for this. I have tried resetting, restoring but nothing works...
    Regards,
    Yash

    Hi,
    The problem could be the currency of the valuation area. It has to be the local currency. Maybe the company code has the local currency but the valuation currency is another.
    Without having access to your system it is difficult to say. Maybe double check your customizing for assignment of update types for derived business transactions in spro:
    Transaction Manager
    -> General Settings
         -> Accounting
             -> Settings for Position Management
                  -> Derived Business Transactions
                      -> Update Types
                          -> Assign Update Types for Derived Business Transactions
    I hope this is helpful.
    M Trein
    Edited by: Marcelo Trein on Jun 21, 2011 12:19 AM (spelling)

  • Sent mail does not sync between devices

    My sent mail does not sync between devices. For example, if I send an email from my Iphone it does not show in my sent box on the MAC mail (postage stamp). If I send mail from MAC mail it does not show on my phone.  But if I go to Yahoo (mail) I can see all sent mail.
    What am I doing wrong? Is there a setting that allows them to snch sent mail??

    From reports on this site, Yahoo mail doesn't work reliably with Mail. The following steps may help.
    Quit Mail. Force quit if necessary.
    Back up all data. That means you know you can restore the Mail database, no matter what happens.
    Triple-click the line below on this page to select it:
    ~/Library/Mail/V2/MailData/Envelope Index
    Copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder
    from the menu bar. Paste into the box that opens (command-V), then press return.
    A Finder window will open with a file selected. Move the selected file to the Desktop, leaving the window open. Other files in the folder may have names that begin with "Envelope Index". Move those files, if any, to the Trash.
    Log out and log back in. Relaunch Mail. It should prompt you to re-import your messages. You may get a warning that the index is corrupt and that Mail has to quit. Click OK.
    Test. If Mail now works as expected, you can delete the file you moved to the Desktop. Otherwise, post your results.

  • The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2013-04-30T16:36:52). Exception Message: Cannot send mails to mail server. (Mailbox unavailable. The server response was: 5.7.1 Client does not

    Interesting db mail issue. If i click send test mail from sql mgmt studio, it works fine, but when i execute a SP to send a mail, it fails. One thing I noticed is that the "LastModified" column in the mail log shows the domain account when a test
    mail was sent from mgmt studio, but show "sa" when the SP was used to send mail. 
    This is from SQL 2012, did not see this in sql 2008, looks like 2008 always used the service account.  any ideas ?
    Get this error:
    The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2013-04-30T16:36:52). Exception Message: Cannot send mails to mail server. (Mailbox unavailable. The server response was: 5.7.1 Client does not
    Thanks.
    Ranga

    Hi Ranga,
    I also use SQL Server 2012. I send a test email through SQL Server Management and the last modified By “sa”.
    If you used stored procedure to send a test email. Please use the command below:
    EXEC msdb.dbo.sp_send_dbmail
    @profile_name = 'Adventure Works Administrator',
    @recipients = '[email protected]',
    @body = 'The stored procedure finished successfully.',
    @subject = 'Automated Success Message' ;
    I can both send test email through SQL Server Management Studio and SP. Make sure you have the right profile. Since you could send test mail via SQL Server Management Studio, please try again to send it via SP.
    Thanks.
    If you have any feedback on our support, please click
    here.
    Maggie Luo
    TechNet Community Support

  • Load remote images in html mail setting does not get saved. I have to turn it off every time I log in. Is this a bug?

    Load remote images in html mail setting does not get saved. I have to turn it off every time I log in. Is this a bug?

    Plug your phone into the wall charger for at least 30 minutes...make sure you have a sim card in the phone...then:
    Leave the USB cable connected to your computer, but NOT your phone, iTunes running, press & hold the home button while connecting the USB cable to your dock connector, continue holding the home button until you see “Connect to iTunes” on the screen. You may now release the home button. iTunes should now display that it has detected your phone in recovery mode, if not quit and reopen iTunes. If you still don’t see the recovery message repeat these steps again. iTunes will give you the option to restore from a backup or set up as new.
    Make sure you have no anti-virus software running or any firewalls...turn all of that stuff off.

Maybe you are looking for

  • Nokia E90 - Maximum number of connections in use e...

    I invariably get the error - Maximum number of connections in use. Please close open connection - (this is not the exact verbiage of the message) when i connect to the gprs / wap. this started occuring after i updated my firmware from 200.x.x to 210.

  • Adding Dynamic information to a form

    I am attempting to populate a designed form using data from a database (MySQL) using a ODBC connection. How do I add the dynamic information to the form to autopopulate it when the form is called using a ID number? Is there any place to read up on th

  • E17 - No mkv video thumbnails or previews

    Hi all, I'm at my wit's end trying to fix this. When using the elementary file manager, it simply will not generate video thumbnails or video previews for .mkv files (video/x-matroska), despite doing so for .avi, .mp4, .m4v, and others. I believe I h

  • Checkpoint Firewall Management Server Lost Identity in MARS

    About a month ago, we added our Checkpoint firewall to MARS as well as the 2 Firewall agents who reported to the device. The devices were recognized and running properly. At some point in the last week, the Checkpoint management server lost it's iden

  • Where are the jvm min and max sizes set?

    Guess I should know this. EAC, Workbench, dgraph - were are the minimum and maximum sizes of these jvms set? I don't see them set up as part of the command line arguments. TIA Edited by: EndecaJoe on Oct 24, 2012 6:59 AM