Koozali.org: home of the SME Server

How does one stop these messages?

Laurence Griffiths

How does one stop these messages?
« on: July 12, 2001, 07:26:16 AM »
Sometimes, we get as many as 25 of these messages going through to admin. How does one stop them?

Thanks

From: "Cron Daemon"
To:
Sent: Thursday, July 12, 2001 11:45 AM
Subject: Cron /etc/startmail


> fetchmail: another foreground fetchmail is running at 13199.

Mark

Re: How does one stop these messages?
« Reply #1 on: July 18, 2001, 06:29:20 AM »
I have also got the same email repeatly everyday. Does anyone has solution or workaround method? Thanks in advance.

Regards,
Mark

Scott Smith

Re: How does one stop these messages?
« Reply #2 on: July 18, 2001, 08:29:08 PM »
You would only get this message if you have more than one fetchmail instance running. In normal operation, this would indicate that fetchmail is taking longer than the defined cycle time to complete, therefore another fetchmail is firing off and creating the error condition. There are several options for handling this.

You can increase the cycle time. For example, if you have the system checking every 5 minutes, change it to every 15 and see if the problem goes away.

You can modify the /etc/startmail template to direct all output from /etc/fetchmail to /dev/null. You're getting the message because cron sends everything output to the console by a background task to the root user. Redirecting the output of the task by adding     >/dev/null 2>&1     to the command line will solve the problem of the messages appearing -- although the collisions may still occur.

Modify the /etc/startmail script (via a custom template) to first check to see if fetchmail is already running. Either have it terminate and wait for the next cycle, or sleep 60 and try again. I'd have it terminate, but it's your choice.

Scott

Laurence Griffiths

Thanks a lot for that...
« Reply #3 on: July 19, 2001, 03:54:05 AM »
That explains a lot of things. :-) The e-smith server is acting as an email server for a design office that makes a lot of use of email attachments. And all going through a 56k modem!! So it is quite possible that more than one instance of fetchmail could be running occasionally.

I have added an email rule to the administrator's computer that deletes all messages which have "/etc/startmail" in the subject line. -  I would like other messages to get through.

Once again. Thanks!

Mark

Re: How does one stop these messages?
« Reply #4 on: July 20, 2001, 12:39:20 PM »
Scott,

Would you publish your /etc/startmail script for reference?

Laurence,

How would you set the email rules in your adminstrator's computer under qmail (in emith v4.1.2 box)?

Larry

Re: How does one stop these messages?
« Reply #5 on: July 20, 2001, 05:11:51 PM »
qmail has nothing to do with it. The email client on the administrator's computer is Outlook Express. All I did was set up a rule to delete any messages that had "/etc/startmail" in the subject line..- Lazy man's way out! ;-)

Laurence Griffiths

Re: How does one stop these messages?
« Reply #6 on: July 20, 2001, 05:13:44 PM »
Oops! The above one was from me too. Just working on my home computer this time.