Problems sending though smtp.gmail.com

36 views
Skip to first unread message

Graeme Defty

unread,
Jan 2, 2016, 5:42:50 AM1/2/16
to chica...@googlegroups.com
Hi All,

I noticed some time ago that my site was unable to send emails. Since this was not mission-critical I ignored it for a while and have just got round to looking at it again.

This is what I have found (I use gmail's smtp relay):

- I could not find a combination of settings that would get TLS to work

- Using ssl worked fine, but boss_mail_driver_smtp.erl has a hard-coded setting of {ssl, false}

This is strange because it looks as though this disabling of ssl has been in there pretty much since the creation of the module.

Anyway, what I want to ask is:

1) has anyone been able to get TLS working with smtp.gmail.com?

2) If not, can ssl be made a configuration item - much as TLS was a little while back? (I am happy to create a PR for this change if it helps)

Best regards and happy new year to all,

graeme



Graeme Defty

unread,
Jan 4, 2016, 10:05:26 AM1/4/16
to chica...@googlegroups.com
Hi,

It seems that nobody has a solution to this so I have created a PR for a very small change to the mail driver which allows ssl to be specified on the outbound mail connection (as seemingly required by Gmail these days).

This is controlled by a new parameter setting in boss.config ( {mail_relay_use_ssl, true} ).

The default behaviour is to NOT use ssl, so the change is 100% backwards compatible with no action required for existing applications.

Cheers,

g






can2nac

unread,
Jan 5, 2016, 9:15:08 AM1/5/16
to ChicagoBoss
Are you 100% sure that you Gmail account configuration allows you to use smtp.gmail.com?
Have you tried sending through smtp.gmail.com via 3rd party software such as Thunderbird? 

I don't know what is your Gmail account type, but in case of Gmail for business Administrator should allow smtp usage. 

Perhaps, you may try no-SSL connection: "If your device or application does not support SSL - connect to aspmx.l.google.com on port 25."

can2nac

unread,
Jan 5, 2016, 9:16:40 AM1/5/16
to ChicagoBoss
Sorry, i missed your last message.
I'm glad you have found a workaround.

best


On Saturday, January 2, 2016 at 1:42:50 PM UTC+3, graeme defty wrote:

Graeme Defty

unread,
Jan 5, 2016, 9:48:48 AM1/5/16
to chica...@googlegroups.com
Hi,

No problem, and thanks for the link you sent.  I did use the info in the referenced article, but could not get TLS to work, which would have been my preferred choice. I never did find out why, but SSL works fine.

Thanks again for your comments,

g




--
You received this message because you are subscribed to the Google Groups "ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss...@googlegroups.com.
Visit this group at https://groups.google.com/group/chicagoboss.
To view this discussion on the web visit https://groups.google.com/d/msgid/chicagoboss/decf96d8-2bdf-4692-930a-d9b653cdaaae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dmitry Polyanovsky

unread,
Jan 6, 2016, 3:34:10 AM1/6/16
to ChicagoBoss
Going to look at your PR and merge it today, thanks.
Reply all
Reply to author
Forward
0 new messages