HMS Backup Script – hMailServer forum

Views: 4923

  • This is my advice for using SES along side your new Charming Full email server.

HmailServer does not currently have a catchall relay smtp function like Postfix or Sendmail in Linux.

You can set up Roundcube to send ALL messages via SES with the following settings.

Edit C:\inetpub\wwwroot\webmail\config\config.inc.php

edit the line $config[‘smtp_server’]  to the following. Remember Semi-colons

If you are NOT using US-EAST Nvirginia than change the server name to whatever SES settings tells you to use. Contact support@charmingcloud.net for any assistance.

$config[‘smtp_server’] = ‘tls://email-smtp.us-east-1.amazonaws.com:587’;

Just below add these lines, change the CAPS for your

$config[‘smtp_user’] = ‘YOUR-SES-USERNAME-RANDOM-CHARS’;
$config[‘smtp_pass’] = ‘YOUR-SES-PASSWORD_THAT-is REALLY-LONG’;

  • You can setup each Outlook with SES SMTP settings

The following deals with a small issue using SES with Outlook https://charmingwebdesign.com/how-to-set-pop3-and-smtp-server-port-addresses-for-win-10-mail-app-tls-aws-ses/

 

  • You should additionally ask AWS to allow your Instance to send emails. As it is now it is limited to just a few messages an hour or less. They won’t tell you. However you can ask them for both reverse DNS and allowing you to send emails in the same form:

https://aws.amazon.com/forms/ec2-email-limit-rdns-request?catalog=true&isauthcode=true

See also

https://charmingwebdesign.com/how-to-get-reverse-dns-for-your-ec2-instance-as-well-as-to-raise-email-sensing-limit-amazon-web-services/

 

I checked out backup the db,

I didn’t try it but found this:

However, you might be interested in periodic snapshots of the volume, snapshots are incremental, so you don’t pay for the full 70 GB every time.

https://www.hmailserver.com/forum/viewtopic.php?t=30217

Dim oApp
Dim iElapsed
Dim iStartTime

Set oApp = CreateObject(“hMailServer.Application”)
‘ Authenticate the client.
Call oApp.Authenticate (“Administrator”, sAdminPassword)

oApp.Stop

iElapsed = 0
iStartTime = Now
Do While iElapsed < 5
iElapsed = DateDiff(“s”, iStartTime, Now)
Loop

Call oApp.BackupManager.StartBackup()

iElapsed = 0
iStartTime = Now
Do While iElapsed < 5
iElapsed = DateDiff(“s”, iStartTime, Now)
Loop

oApp.Start

iElapsed = 0
iStartTime = Now
Do While iElapsed < 3
iElapsed = DateDiff(“s”, iStartTime, Now)
Loop

Set oApp = Nothing

Dim oApp Dim iElapsed Dim iStartTime ‘ Set oApp = CreateObject(“hMailServer.Application”) ‘ Authenticate the client. Call oApp.Authenticate (“Administrator”, sAdminPassword) ‘ oApp.Stop ‘ iElapsed = 0 iStartTime = Now Do While iElapsed < 5 iElapsed = DateDiff(“s”, iStartTime, Now) Loop ‘ Call oApp.BackupManager.StartBackup() ‘ iElapsed = 0 iStartTime = Now Do While iElapsed < 5 iElapsed = DateDiff(“s”, iStartTime, Now) Loop ‘ oApp.Start ‘ iElapsed = 0 iStartTime = Now Do While iElapsed < 3 iElapsed = DateDi

 

 

Source: HMS Backup Script – hMailServer forum

Leave a Reply