Wile configuring email i got this error
Email could not be sent: stream_socket_client(): unable to connect to tcp://{domain}:587 (Permission denied)
while using ./cake command to send email i got email but email configuration is default
Host: localhost
Port: 25
Username:
Password: *********
TLS: false
Sending email from: Passbolt you@localhost
Sending email to: {mail}@gmail.com
i change the config file on passbolt.default.php…but not working i tried to rename file to passbolt.php
as per documentation in Email/SMTP Configuration
i cannot find config/passbolt.php
@_jc
I am running on centos 7.
i simply install my application shown on homepage and tried to setup smtp. I am not using gmail as SMTP provider.
Email setting in /etc/passbolt/passbolt.default.php
// Email configuration.
‘EmailTransport’ => [
‘default’ => [
‘host’ => ‘mail.domain.com’,
‘port’ => 465,
‘username’ => ‘it@domain.com’,
‘password’ => ‘i******’,
// Is this a secure connection? true if yes, null if no.
‘tls’ => null,
//‘timeout’ => 30,
//‘client’ => null,
//‘url’ => null,
],
],
‘Email’ => [
‘default’ => [
// Defines the default name and email of the sender of the emails.
‘from’ => [‘it@domain.com’ => ‘Passbolt’],
//‘charset’ => ‘utf-8’,
//‘headerCharset’ => ‘utf-8’,
@_jc
i already did that. Once i reached at email setup page i entered all parameters and test but i got
Email could not be sent: stream_socket_client(): unable to connect to tcp://{domain}:587 (Permission denied)
Ok perfect. Can you check if selinux is enabled with the sestatus command ?
We have a known issue with the current passbolt-selinux package, there is a missing rule for allowing communication with standard smtp ports.
The issue has been fixed but the new package is not yet published. You can try to reduce selinux hardening and check if it is your issue.
Open /etc/selinux/config and replace enforcing with permissive and reboot your server to apply.
I will keep you posted when the new passbolt-selinux package will be released.