[opencms-dev] Setup Amazon SES to mail configuration opencms-system.xml

Ramon Gavira Sáenz ramon.gavira at sagasoluciones.com
Tue May 11 20:49:40 CEST 2021


There is no way!! Sh.t!!

Case 1:

<mailhost name="email-smtp.eu-west-1.amazonaws.com" port="587" order="2" protocol="smtp" user="AKIAZFGPY4WJBREOHGUL" password="yrfihfYS7ddHIh4HgOCCDXf9wQbyLAK413v6EBhH"/>

Results:

[cid:image002.png at 01D7468F.9743F580]

Case 2:

<mailhost name="email-smtp.eu-west-1.amazonaws.com" port="587" order="2" protocol="smtp" security="STARTTLS" user="AKIAZFGPY4WJBREOHGUL" password="yrfihfYS7ddHIh4HgOCCDXf9wQbyLAK413v6EBhH"/>

Results:

[cid:image001.png at 01D7468F.F1C18C20]

Damn!


De: opencms-dev <opencms-dev-bounces at opencms.org> En nombre de Filip.Kratochvil at ibacz.eu
Enviado el: martes, 11 de mayo de 2021 14:29
Para: The OpenCms mailing list <opencms-dev at opencms.org>
Asunto: Re: [opencms-dev] Setup Amazon SES to mail configuration opencms-system.xml

I'm chenking github and it looks that support was added:

https://github.com/alkacon/opencms-core/blob/a8d245c05c8fd1cca776ed22210e2dea10a1308b/src/org/opencms/mail/CmsMailUtil.java
https://github.com/alkacon/opencms-core/blob/a8d245c05c8fd1cca776ed22210e2dea10a1308b/src/org/opencms/mail/CmsMailSettings.java

Try to set mail config attribute "security" to value "ssl" or "tls" (probably "tls").

I'm curious btw. :)

S pozdravem / Kind regards

Filip Kratochvil
Web & Portal Consultant

IBA CZ, s.r.o.

-----"opencms-dev" <opencms-dev-bounces at opencms.org<mailto:opencms-dev-bounces at opencms.org>> wrote: -----
To: "The OpenCms mailing list" <opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>>
From: "Ramon Gavira Sáenz"
Sent by: "opencms-dev"
Date: 05/11/2021 01:50PM
Subject: Re: [opencms-dev] Setup Amazon SES to mail configuration opencms-system.xml

  1.  Thanks!! Amazon SES gives access to this ports:

SMTP Port—25, 587, or 2587 (to connect using STARTTLS), or 465 or 2465 (to connect using TLS Wrapper).

Can anyone from Alkacon confirm that it’s not possible sending e-mails over TLS??

Thanks!!


De: opencms-dev <opencms-dev-bounces at opencms.org<mailto:opencms-dev-bounces at opencms.org>> En nombre de Filip.Kratochvil at ibacz.eu<mailto:Filip.Kratochvil at ibacz.eu>
Enviado el: martes, 11 de mayo de 2021 13:45
Para: The OpenCms mailing list <opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>>
Asunto: Re: [opencms-dev] Setup Amazon SES to mail configuration opencms-system.xml

Hello Ramon,

i'm not 100% sure if that still applies, but as i know OpenCms doesn't support sending e-mails over TLS. So you can try connect to Amazon's SMTP using different unsecured port (if is it supported).

Otherwise, OpenCms modification is required.

S pozdravem / Kind regards

Filip Kratochvil
Web & Portal Consultant

IBA CZ, s.r.o.

-----"opencms-dev" <opencms-dev-bounces at opencms.org<mailto:opencms-dev-bounces at opencms.org>> wrote: -----
To: "opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>" <opencms-dev at opencms.org<mailto:opencms-dev at opencms.org>>
From: "Ramon Gavira Sáenz"
Sent by: "opencms-dev"
Date: 05/11/2021 10:48AM
Subject: [opencms-dev] Setup Amazon SES to mail configuration opencms-system.xml
Hello, Does anybody use Amazon SES to send mail in OpenCms?

How do you configure de mail server in opencms-system.xml config file?

        <mail>
            <mailfrom>ramon.gavira at outlook.es</mailfrom<mailto:ramon.gavira at outlook.es%3c/mailfrom>>
            <mailhost name="email-smtp.eu-west-1.amazonaws.com" port="587" order="1" protocol="smtp"  user="*****" password="*****"/>
        </mail>

I have tried the above, but always got error:

Sending the email to the following server failed : email-smtp.eu-west-1.amazonaws.com:587
220 Ready to start TLS

Could not convert socket to TLS
No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

Am I missing something y mailhost configuration?

[cid:image003.png at 01D7468F.9743F580]

May be security element? Different port?

Thanks!



Ramón Gavira Sáenz

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
https://lists.opencms.org/mailman/listinfo/opencms-dev


________________________________
Disclaimer:

The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it.
It may contain confidential or legally privileged information.
If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful.
If you have received this communication in error, please notify us immediately by forwarding this email to ict at ibacz.eu<mailto:ict at ibacz.eu> and then delete it from your system.
IBA Group is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
https://lists.opencms.org/mailman/listinfo/opencms-dev



________________________________
Disclaimer:

The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it.
It may contain confidential or legally privileged information.
If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful.
If you have received this communication in error, please notify us immediately by forwarding this email to ict at ibacz.eu<mailto:ict at ibacz.eu> and then delete it from your system.
IBA Group is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.opencms.org/pipermail/opencms-dev/attachments/20210511/1621151d/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 14808 bytes
Desc: image002.png
URL: <https://lists.opencms.org/pipermail/opencms-dev/attachments/20210511/1621151d/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 11573 bytes
Desc: image003.png
URL: <https://lists.opencms.org/pipermail/opencms-dev/attachments/20210511/1621151d/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 9899 bytes
Desc: image001.png
URL: <https://lists.opencms.org/pipermail/opencms-dev/attachments/20210511/1621151d/attachment-0002.png>


More information about the opencms-dev mailing list