pierobot / mangapie

This is a self-hosted server for archived manga.
BSD 3-Clause "New" or "Revised" License
63 stars 9 forks source link

Mail Notification #219

Closed kurim closed 4 years ago

kurim commented 4 years ago

Does mail notification support TLS or STARTTLS for IMAP?

In AbstractSmtpTransport.php line 473: Connection to tcp://xxxxxxx:465 Timed Out

In StreamBuffer.php line 166: Connection to tcp://xxxxxxx:465 Timed Out

pierobot commented 4 years ago

IMAP is for receiving emails so it's useless in the context of sending emails, which is all mangapie does.

If you want TLS or STARTTLS try setting MAIL_ENCRYPTION in your .env file to tls or starttls.
If that doesn't work then try setting MAIL_DRIVER to sendmail but you'll need the sendmail binary.

Remember to php artisan config:cache if you make changes.

kurim commented 4 years ago

yes your right it was to late yesterday, my bad I mean stmp and 465 is smtp, I will try it with MAIL_ENCRYPTION

MAIL_ENCRYPTION -> was set to TLS will try starttls (server supports both)

pierobot commented 4 years ago

Ah okay. I believe both the smtp and sendmail drivers support TLS and STARTTLS.

The connection being timed out makes me think the service isn't running or behind a firewall.

kurim commented 4 years ago

TLS shows in mail Server log this:

connect from xxxxxx.de SSL_accept error from xxxxxx.de: lost connection lost connection after CONNECT from xxxxxx.de

starttls also not work ends in:

Connection could not be established with host xxxxxx.de :stream_socket_client(): unable to connect to starttls://xxxxxx.de:465 (Unable to find the socket transport "starttls" - did you forget to enable it when you configured PHP?)

sendmail

Expected response code 220 but got an empty response

test connection with openssl works fine: openssl s_client -connect xxxxxx:587 -starttls smtp openssl s_client -connect xxxxxx:465