Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 5th June 2013, 16:28
Ciao121 Ciao121 is offline
Junior Member
Join Date: Jun 2009
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default getmail_lock not removed

I'm not a shell programmer. So maybe my ieda is wrong.
Sometimes I get /tmp/getmail_lock not removed so the ispconfig getmail.sh script exits with teh message:
Found getmail lock file /tmp/.getmail_lock, we quit here.
and /usr/bin/getmail -v -g /etc/getmail $rcfiles is not executed.

After this error:
Jun 5 12:00:41 mail getmail: getmailOperationError error (error resolving name mail.mydomain.com during connect ([Errno -2] Name or service not known))
due the network was down I had getmail_lock not removed.
I can't undestrand why it appens, because it should be removed after
  if [ "$rcfiles" != "" ]; then
    /usr/bin/getmail -v -g /etc/getmail $rcfiles
Has someone idea how to address this?
Thank you.
Reply With Quote
The Following User Says Thank You to Ciao121 For This Useful Post:
alexeyttsy3922 (5th June 2013)
Sponsored Links
Old 7th June 2013, 17:00
tkausl tkausl is offline
Junior Member
Join Date: May 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

E: Found it. Normally, it should delete the lockfile after running getmail...

if [ -f /tmp/.getmail_lock ]; then
  echo 'Found getmail lock file /tmp/.getmail_lock, we quit here.'
  touch /tmp/.getmail_lock
  rm -f /tmp/.getmail_lock
works well...

Last edited by tkausl; 7th June 2013 at 17:08.
Reply With Quote
Old 13th June 2013, 02:20
Ciao121 Ciao121 is offline
Junior Member
Join Date: Jun 2009
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post

Hi tkausl,
sorry I can't understand your answer....

What does
E: Found it.

And what test.sh and test2.sh are? Scripts by you? To do what?

Thank you
Reply With Quote


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Courier issues, new install, cant connect Smitherines Server Operation 9 14th April 2011 17:25
[The Perfect Spamsnake Ubuntu 10.10] - No mail relay, just errors. itsnedkeren HOWTO-Related Questions 2 20th February 2011 11:45
Amavisd not identfying spam properly Cracklefish Installation/Configuration 11 22nd December 2009 12:05
problem with mail server setup kentor HOWTO-Related Questions 27 16th July 2009 16:22
Mail doesn't work TheRealLink Installation/Configuration 1 24th April 2009 16:34

All times are GMT +2. The time now is 05:49.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.