Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Stop service while fetching mail
PostPosted: 2012-03-31 22:14 
New user
New user

Joined: 2012-03-31 21:57
Posts: 1
I use the provided backup script to run a backup on a regular basis, and made some changes to it so it will stop the hmailserver service first (including checks to find out whether it is actually running etc.).

But I'm actually wondering about one thing: what happens when hmailserver is in the process of fetching mail from an external account, and the service is stopped? If a mail is being downloaded from the external server at the same time, will hmailservice finish that task fist, or will it cancel and resume at the next fetch? Or is there a chance that the mail will be half-fetched and corrupted? (that's my point of worrying...)

And is there any difference between stopping the whole hmailserver service and just stopping the server itself via scripting? Currently I'm using the script to stop the whole hmailserver service before starting the backup, and I noticed that it is also possible to stop the server without stopping the complete hmailserver service. Will it make any difference to the backup process? What is advisable?

Hopefully someone can help me out, thanks!


Top
 Profile  
 
 Post subject: Re: Stop service while fetching mail
PostPosted: 2012-04-01 22:13 
Site Admin

Joined: 2005-07-29 16:18
Posts: 13628
Location: UK
Email servers are resilient, if the email is only half downloaded, the sending server will resend it again. The sending server requires an OK from the recipient server to say that it got the whole email. If it doesn't get that then the sending server should re-queue it and try again later.

_________________
If at first you don't succeed, bomb disposal probably isn't for you! ヅ


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 2 guests



Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group