Answers.Body: <p>You should consider how long the outage will be: if it's more than a day, you may actually want to not send messages during that time if you know they'll arrive well after they're intended.  It would be embarrassing to remind people about an even after the fact, for example.</p>
  
  <p>If you disable the scheduled jobs for scheduled reminders and outbound CiviMail, you'll be able to have better control over what messages go out when--if at all.</p>
  
  <p>That said, you'll still need to deal with receipts and "send an email" messages that don't rely on cron, and Jon's method is a good way to handle that.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-15T16:54:46.390Z
Answers.LastActivityDate: 2015-06-15T16:54:46.390Z
Answers.UserDisplayName: Andie Hunt
Answers.Body: <p>I'm reasonably sure that if you don't have a valid mail server, the mail will be lost.  I mitigate this by installing a mail server (Postfix) on the same server as CiviCRM, and use that to relay to the third-party server.  Not only is this more robust - Postfix will hold the e-mails that don't go through while your main mail server is down for testing - but you get much finer-grained control over e-mail.  For instance, throttling the number of e-mails per second.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-15T15:14:47.507Z
Answers.LastActivityDate: 2015-06-15T15:14:47.507Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>We are migrating our hosting and need to point to a new email server. Can we turn off/delay scheduled/automatic notifications (CiviMail) while we reconfigure/test? Perhaps this is not necessary (i.e. mail is held if the connection to the mail server is lost).</p>
  
  <p>Maybe there is a better way? Any advice to best manage pointing to the new server so as not to lose automatic mail scheduled while migrating would be great.</p>
  
Tags: <civimail><email><mailserver>
Title: Migrating email servers
ThreadText: # Migrating email servers
  
  (Asked by: username_0 on 2015-06-15)
  
  We are migrating our hosting and need to point to a new email server. Can we turn off/delay scheduled/automatic notifications (CiviMail) while we reconfigure/test? Perhaps this is not necessary (i.e. mail is held if the connection to the mail server is lost).
  
  Maybe there is a better way? Any advice to best manage pointing to the new server so as not to lose automatic mail scheduled while migrating would be great.
  
  **Tags:** civimail, email, mailserver
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2015-06-15. Score: 5 | Accepted answer
  
  I'm reasonably sure that if you don't have a valid mail server, the mail will be lost. I mitigate this by installing a mail server (Postfix) on the same server as CiviCRM, and use that to relay to the third-party server. Not only is this more robust - Postfix will hold the e-mails that don't go through while your main mail server is down for testing - but you get much finer-grained control over e-mail. For instance, throttling the number of e-mails per second.
  
  
  ---
  
  ### Answer by username_1 on 2015-06-15. Score: 2
  
  You should consider how long the outage will be: if it's more than a day, you may actually want to not send messages during that time if you know they'll arrive well after they're intended. It would be embarrassing to remind people about an even after the fact, for example.
  
  If you disable the scheduled jobs for scheduled reminders and outbound CiviMail, you'll be able to have better control over what messages go out when--if at all.
  
  That said, you'll still need to deal with receipts and "send an email" messages that don't rely on cron, and Jon's method is a good way to handle that.
  
  
  ---
  
  