Announcement

#1 2024-01-12 00:37:31

dnielso5
Member
2024-01-08
13

setting up password reset email

Hello/Hi/Greetings,

Hello, i have been trying to edit my local file local/config/config.inc.php

<?php
// smtp configuration
// (work if fsockopen function is allowed for smtp port)
// smtp_host: smtp server host
//  if null, regular mail function is used
//   format: hoststring[:port]
//   exemple: smtp.pwg.net:21
// smtp_user/smtp_password: user & password for smtp identication
$conf['smtp_host'] = 'box.nielsonnetwork.com:465';
$conf['smtp_user'] = 'username@nielsonnetwork.com';
$conf['smtp_password'] = 'password';

// 'ssl' or 'tls'
$conf['smtp_secure'] = 'tls';
?>

For the host i have used box.nielsonnetwork.com, box.nielsonnetwork.com:21 box.nielsonnetwork.com:465 box.nielsonnetwork.com:993 and the internal IP address of my mail server.

I either get a "failed to send email" or the page times out with a 504 Gateway Time-out error


Piwigo URL: http://photo.nielsonnetwork.com

Offline

 

#2 2024-01-12 06:57:30

dnielso5
Member
2024-01-08
13

Re: setting up password reset email

detailed logfile:

2024-01-12 05:47:40 SERVER -> CLIENT: 220 box.nielsonnetwork.com ESMTP Hi, I'm a Mail-in-a-Box (Ubuntu/Postfix; see https://mailinabox.email/)
2024-01-12 05:47:40 CLIENT -> SERVER: EHLO laptop
2024-01-12 05:47:40 SERVER -> CLIENT: 250-box.nielsonnetwork.com250-PIPELINING250-SIZE 134217728250-VRFY250-ETRN250-STARTTLS250-ENHANCEDSTATUSCODES250-8BITMIME250-DSN250 CHUNKING
2024-01-12 05:47:40 CLIENT -> SERVER: STARTTLS
2024-01-12 05:47:40 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
SMTP Error: Could not connect to SMTP host. Connection failed. stream_socket_enable_crypto(): Peer certificate CN=`box.nielsonnetwork.com' did not match expected CN=`192.168.1.211'
2024-01-12 05:47:40 CLIENT -> SERVER: QUIT
2024-01-12 05:47:40
2024-01-12 05:47:40
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ … leshooting

Offline

 

#3 2024-01-12 15:10:39

erAck
Only trying to help
2015-09-06
2054

Re: setting up password reset email

Find out why it would expect the internal local IP 192.168.1.211 when you tell it to connect to box.nielsonnetwork.com = 67.210.199.158; apparently there's something odd in your network.


Running Piwigo at https://erack.net/gallery/

Offline

 

#4 2024-01-12 21:52:17

dnielso5
Member
2024-01-08
13

Re: setting up password reset email

Got that fixed, i needed to add box.nielsonnetwork.com to my nginx proxy manager, now i get error:

2024-01-12 20:50:29 SERVER -> CLIENT: 220 box.nielsonnetwork.com ESMTP Hi, I'm a Mail-in-a-Box (Ubuntu/Postfix; see https://mailinabox.email/)
2024-01-12 20:50:29 CLIENT -> SERVER: EHLO laptop
2024-01-12 20:50:29 SERVER -> CLIENT: 250-box.nielsonnetwork.com250-PIPELINING250-SIZE 134217728250-VRFY250-ETRN250-STARTTLS250-ENHANCEDSTATUSCODES250-8BITMIME250-DSN250 CHUNKING
2024-01-12 20:50:29 CLIENT -> SERVER: STARTTLS
2024-01-12 20:50:29 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2024-01-12 20:50:29 CLIENT -> SERVER: EHLO laptop
2024-01-12 20:50:29 SERVER -> CLIENT: 250-box.nielsonnetwork.com250-PIPELINING250-SIZE 134217728250-VRFY250-ETRN250-ENHANCEDSTATUSCODES250-8BITMIME250-DSN250 CHUNKING
SMTP Error: Could not authenticate.
2024-01-12 20:50:29 CLIENT -> SERVER: QUIT
2024-01-12 20:50:29 SERVER -> CLIENT: 221 2.0.0 Bye
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ … leshooting

But the same settings work in Thunderbird so not sure why i get an authentication error.

Offline

 

#5 2024-01-12 22:29:10

dnielso5
Member
2024-01-08
13

Re: setting up password reset email

Fixed it!

The full solution was to set up my proxy manager to forward to port 587. everything is working now.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact