#Can't send emails.

1 messages · Page 1 of 1 (latest)

uneven glacier
#

Hey, I can't send emails because as the logs say that the email hostname is not reachable. But the mail server is working properly and my uptime kuma can also send emails without any issues.

https://pteropaste.com/rp8n6fmyc9jv/

oak yokeBOT
# uneven glacier Hey, I can't send emails because as the logs say that the email hostname is not ...

Please check if the password reset email sends.
If it does, check your queue workers - https://CtrlPanel.gg/docs/Installation/getting-started#queue-listeners
If it still doesnt work, check your php version is 8.1 - php -v
Make sure to clear the config cache and to restart the queue workers when making changes to the email details.

php artisan queue:restart```

It is recommended that you have some sort of Linux and MariaDB experience before installing this.

uneven glacier
light marten
#

what doesn;t work

#
  1. Please check if the password reset email sends.

what happens?

uneven glacier
light marten
#

you get an error message?

#

] production.ERROR: Connection could not be established with host "email.novacloud-hosting.com:587": stream_socket_client(): Unable to connect to email.novacloud-hosting.com:587 (Connection timed out) {"userId":1,"exception":"[object] (Symfony\Component\Mailer\Exception\TransportException(code: 0): Connection could not be established with host "email.novacloud-hosting.com:587": stream_socket_client(): Unable to connect to email.novacloud-hosting.com:587 (Connection timed out) at /var/www/controlpanel/vendor/symfony/mailer/Transport/Smtp/Stream/SocketStream.php:154)
[stacktrace]

#

aah yea you already send it

uneven glacier
#

yh XD

light marten
#

🤷‍♂️

uneven glacier
#

The password, user etc. are all correct

light marten
#

appearntly not

uneven glacier
#

And the mail server works. My uptime kuma is also working

light marten
#

wel its not correct

uneven glacier
#

it can send mails

light marten
#

the password reset does not run thru a queue or anything, just straight up sends it

uneven glacier
#

but only my uptime kuma

light marten
#

the details are not correct, or your panel is unable to make request to your smtp, aka firewall (less likely than the details not being correct)

#

are you also using the correct mail encryption?

#

tls/ssl

uneven glacier
#

my uptime kuma is configured like this: and it works

light marten
uneven glacier
light marten
#

yes you told me

uneven glacier
light marten
#

you can try ssl, in your second screenshot i see a checkmark not being checked at TLS but since it says STARTLS i would assume its tls

#

i don't know your details or why i doesn't work, is this smtp self hosted? is this a service?

cntrlpanel just passes the details straight to the laravel mailer when making a password reset request

you can try and clear the cache but i think it should not matter.

#
 php artisan cache:clear php artisan config:clear 
uneven glacier
light marten
uneven glacier
#

Umm I have an idea for the issue:

The Mailserver has an A record and an AAAA record pointing to its ipv4 and ipv6.

#

but only the ipv4 ports are allowed by the firewall