GMail - Must issue a STARTTLS command first
sraitken
Posts: 7 Bronze 1
I am getting a "5.7.0 Must issue a STARTTLS command first..." error message popping-up when trying to send a test email via GMail. Settings are:
SMTP host: smtp.gmail.com
Port: 587
UserName: <email address>
Password: <password for above>
Send From: <same as email address in UserName>
Thanks for any help.
SMTP host: smtp.gmail.com
Port: 587
UserName: <email address>
Password: <password for above>
Send From: <same as email address in UserName>
Thanks for any help.
Comments
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Will it ever be the case? Our email is provided by Amazon SES, which requires it.
ftp://support.red-gate.com/patches/sql_ ... _patch.pdf
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
SMTP Host: email-smtp.us-east-1.amazonaws.com
Results are the same regardless of SMTPEncoding value in registry (TLS, SSH or blank). Doesn't appear to be any change from before.
I tried the following ports (based on http://docs.aws.amazon.com/ses/latest/D ... nnect.html):
Port Result
465 Screen freezes, after 20 seconds or so it comes back, but no email received
2465 Screen freezes, after 20 seconds or so I get error "Socket Error # 10060 Connection timed out."
25 Screen freezes, after 20 seconds or so I get error "Socket Error # 10060 Connection timed out."
587 Get error "Must issue a STARTTLS command first"
2587 Screen freezes, after 20 seconds or so I get error "Socket Error # 10060 Connection timed out."
I don't doubt that it works with Gmail and Yahoo mail. Nobody else is using Amazon SES (Simple Email Service) with SQL Backup Pro?
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Does the email get sent successfully?
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
I went ahead and added email notification to one of my half-hourly transaction log backup jobs, just to see if that email would fail as well... and it did. Generated a SQL Backup warning "Warning 151: MAILTO error: Failed to send mail. (Must issue a STARTTLS command first)".
EXEC master..sqlbackup '-sql "BACKUP DATABASE model TO DISK = [<AUTO>] WITH MAILTO = [me@me.com], MAILLIB_SYN"'
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
However, when I attempt to edit the job in SQLBackup, I get the error "Cannot Edit Job <snip> Unknown option: MAILLIB_SYN".
Overall, though, I'm happy I'm getting emails, and can deal with manual edits. Thanks so much for your help!
The patch was made only in the SQL Backup engine. The GUI hasn't been patched to recognise the new keyword yet, hence why it's raising that error.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
ftp://support.red-gate.com/patches/sql_ ... _patch.pdf
In this patch, you no longer need to use the MAILLIB_SYN switch. This allows you to test the configuration of your SSL/TLS server via the GUI, and you also do not need to reconfigure existing jobs to use that switch, which in turn stops the GUI from raising an 'unrecognized option' error.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8