Jump to content
  • 0

mailer not working, how to set up properly?


drifterxxxx2

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  83
  • Reputation:   3
  • Joined:  10/22/17
  • Last Seen:  

Hi

i'm trying to set up the verification mail and password recovery via mail system in fluxcp, no luck so far

ive tried several things including setting 'MailerUseSMTP' = false

i tried using SSL option since i have SSL installed but nothing changes

i read a few topics about this but i think i have the right configuration... yet it is not working

when trying to send confirmation the page says "Could not send e-mail please contact administration..." etc.

these are my configs, this is not google mail and i can confirm that is my correct smtp host since i use it for other things like forums, etc, and works just fine

	'AllowDuplicateEmails'		=> true,					// Whether or not to allow duplicate e-mails to be used in registration. (See Mailer config options)
	'RequireEmailConfirm'		=> true,					// Require e-mail confirmation during registration.
	'RequireChangeConfirm'		=> true,					// Require confirmation when changing e-mail addresses.
	'EmailConfirmExpire'		=> 48,						// E-mail confirmations expire hours. Unconfirmed accounts will expire after this period of time.
	'PincodeEnabled'		=> false,					// Whether or not the pincode system is enabled in your server. (Check your char_athena.conf file. Enabled by default.)
	'MailerFromAddress'			=> 'noreply@localhost',		// The e-mail address displayed in the From field.
	'MailerFromName'			=> 'Server',			// The name displayed with the From e-mail address.
	'MailerUseSMTP'				=> true,					// Whether or not to use a separate SMTP server for sending mail.
	'MailerSMTPUseSSL'			=> false,					// Whether or not mailer should connect using SSL (yes for GMail).
	'MailerSMTPUseTLS'			=> false,					// Same as above SSL setting, but for TLS.  This setting will override the SSL setting.
	'MailerSMTPPort'			=> 25,					// When MailerUseSMTP is true: SMTP server port (mailer will default to 25).
	'MailerSMTPHosts'			=> 'mail.server.com',					// When MailerUseSMTP is true: A string host or array of hosts (e.g., 'host1' or array('host1', 'backuphost')).
	'MailerSMTPUsername'		=> 'username',					// When MailerUseSMTP is true: Authorized username for SMTP server.
	'MailerSMTPPassword'		=> 'password',					// When MailerUseSMTP is true: Authorized password for SMTP server (for above user).

the debug mode shows this error


Notice: Accessing static property Flux_Mailer::$errLog as non static in /var/www/html/lib/Flux/Mailer.php on line 21

Notice: Accessing static property Flux_Mailer::$log as non static in /var/www/html/lib/Flux/Mailer.php on line 22

Warning: stream_socket_enable_crypto(): Peer certificate CN=`ssl0.host.net' did not match expected CN=`mail.server.com' in /var/www/html/lib/phpmailer/class.smtp.php on line 368

 

any ideas?

thank you

/thx 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  64
  • Reputation:   9
  • Joined:  09/28/13
  • Last Seen:  

Are you using cPanel as your webhost software? If yes, Then you don't need to mess with the SMTP settings. Just disable it and try to send a mail from FluxCP.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

If you use a linux server you can use SSMTP like this: https://unix.stackexchange.com/a/37061
On my server work perfectly with STARTTLS activated!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  5
  • Reputation:   1
  • Joined:  05/28/17
  • Last Seen:  

On 6/14/2018 at 4:18 PM, CyberDevil said:

If you use a linux server you can use SSMTP like this: https://unix.stackexchange.com/a/37061
On my server work perfectly with STARTTLS activated!

super old post, I know. but once SSMTP is installed, which setting do you have to apply to the application.php?

same as in the /etc/ssmtp/ssmtp.conf ??

thanks in advance!

 

 

--update: nevermind it is working now! thanks! everyone with SMTP problems, simply use SSMTP (y)

Edited by wouter2004
found solution
  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...