Email settings how to set smtp port?

1,686 views
Skip to first unread message

Pete D Lawlor

unread,
Nov 22, 2013, 9:39:28 AM11/22/13
to pwm-g...@googlegroups.com
Hi, 

I like to use email where it sends the "code/token" to the users email address when user has forgotten their AD password... I have enabled where I can enter in the email address which finds the user but when it says send to your email, 
but no code has been received, but I think this is not working because as our email server is behind SSL, etc, and I can't see how to put smpt ssl/tls enable or port. 

so our smtp mail server is using SSL/TLS port 465 how can I put this in email settings? 

I did find about the javamail api but dont know how to use it. 

thanks 
Pete Lawlor

Menno Pieters

unread,
Nov 26, 2013, 4:02:18 PM11/26/13
to pwm-g...@googlegroups.com
In the nightly builds there is a field to set the SMTP port. Otherwise you can set it, along with SSL/TLS settings in the advanced setting "SMTP Email Advanced Setting". Also see https://javamail.java.net/nonav/docs/api/com/sun/mail/smtp/package-summary.html for the settings you can define here.

Regards,

Menno


--
You received this message because you are subscribed to the Google Groups "pwm-general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pwm-general...@googlegroups.com.
To post to this group, send email to pwm-g...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pwm-general/ef747fb1-43e2-4a3a-ad16-93748b4555ad%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Pete D Lawlor

unread,
Nov 27, 2013, 4:35:11 AM11/27/13
to pwm-g...@googlegroups.com
Hi, 

Yeah I read the page, but I am slightly confused. 
Say your "SMTP Email Advanced Setting" description says "name=value" format, so 
I have tried a few things, but yet log still says port 25. 
I tried putting in say for example "mail.smtp.starttls.enable=enabled" (or yes, and enable) 

So I don't think I understand what to put in.... as in the correct format/way. 

Thanks 
Pete 

Menno Pieters

unread,
Nov 27, 2013, 6:05:20 AM11/27/13
to pwm-g...@googlegroups.com
At least in the current builds, there is a configuration option for the port and setting mail.smtp.ssl.enable seems to work.


Pete D Lawlor

unread,
Nov 27, 2013, 6:34:09 AM11/27/13
to pwm-g...@googlegroups.com
since the thing requires a =value I put =enable on it, with that mail.smtp.ssl.enable=enable. 
and it still using port 25. 

error during email send attempt: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.gmail.com, 25; timeout -1; nested exception is: java.net.ConnectException: Connection timed out: connect

So i think the api is not working yet, because its not perfect. 

thanks 
Pete 

Menno Pieters

unread,
Nov 27, 2013, 6:47:22 AM11/27/13
to pwm-g...@googlegroups.com
It's a boolean, try 'true' or 'false'


Pete D Lawlor

unread,
Nov 27, 2013, 6:48:22 AM11/27/13
to pwm-g...@googlegroups.com
Ah, think I done it now, value should be 'true' rather than enable, yes or enabled! 

Thanks 
Pete 
Reply all
Reply to author
Forward
0 new messages