SMTP SSL?

If you are having a problem using Fortress, post a message here.

Moderator: SourceGear

Post Reply
andrewbadera
Posts: 14
Joined: Wed Jun 13, 2007 8:55 am
Location: Albany, NY, USA
Contact:

SMTP SSL?

Post by andrewbadera » Wed Aug 27, 2008 2:03 pm

Is it possible to set Fortress to use SSL to connect to the specified SMTP server? We're using GMail, which of course needs both a specific port AND SSL in order to send mail from remote clients.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Re: SMTP SSL?

Post by jeremy_sg » Wed Aug 27, 2008 2:30 pm

Yes, but you have to manually tweak the setting in the sgmaster database with the following SQL.

UPDATE [sgmaster].dbo.sgmastersettings SET smtpusessl=N'True'
Subscribe to the Fortress/Vault blog

andrewbadera
Posts: 14
Joined: Wed Jun 13, 2007 8:55 am
Location: Albany, NY, USA
Contact:

Re: SMTP SSL?

Post by andrewbadera » Thu Aug 28, 2008 6:40 pm

yeah, I'd done that ... and now I've tried both 465 and 587 ... and I'm still not getting any email.

I don't seem to see any errors in any logs ... but they're scattered all over the place, maybe I'm not looking in the right one?

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Re: SMTP SSL?

Post by jeremy_sg » Fri Aug 29, 2008 8:01 am

If there are any errors, they would be logged in theVault server log file.

I'll try to set this up myself to see if I can get it working.
Subscribe to the Fortress/Vault blog

andrewbadera
Posts: 14
Joined: Wed Jun 13, 2007 8:55 am
Location: Albany, NY, USA
Contact:

Re: SMTP SSL?

Post by andrewbadera » Fri Aug 29, 2008 11:31 am

definitely been all over that log, no sign of errors.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Re: SMTP SSL?

Post by jeremy_sg » Fri Aug 29, 2008 2:08 pm

I got this working on my dev box. The settings in sgmastersettings are:

smtpserver = smtp.gmail.com
smtpserverport = 25
smtpusessl = True
smtpauthenticationtype = 1
smtpusername = myaccount@gmail.com
smtppassword = plaintextpassword
smtpfromaddress = myaccount@gmail.com

My tests only worked when I made sure to remove any periods in my gmail username.
Subscribe to the Fortress/Vault blog

andrewbadera
Posts: 14
Joined: Wed Jun 13, 2007 8:55 am
Location: Albany, NY, USA
Contact:

Re: SMTP SSL?

Post by andrewbadera » Fri Aug 29, 2008 2:10 pm

using port 25, really? interesting, will give it a try later tonight, thanks for looking.

andrewbadera
Posts: 14
Joined: Wed Jun 13, 2007 8:55 am
Location: Albany, NY, USA
Contact:

Re: SMTP SSL?

Post by andrewbadera » Wed Sep 03, 2008 9:56 am

Weird. It does in fact work with port 25. Thinking about it, I think I've run into that with other non-standard GMail clients, like mobile stuff, and headless processes. Apparently the other ports are only recommendations, not requirements. Hopefully they don't choose to change that anytime soon. I wonder why it won't connect on the GMail-specified ports however.

Thanks for looking into this.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Re: SMTP SSL?

Post by jeremy_sg » Wed Sep 03, 2008 10:00 am

I'm glad it worked for you.
Subscribe to the Fortress/Vault blog

Post Reply