Author Topic: [SOLVED] Upgrading from 7.1 to 8.1 - SMTP won't work  (Read 6550 times)

Offline heinohund

  • Jr. Member
  • **
  • Posts: 17
[SOLVED] Upgrading from 7.1 to 8.1 - SMTP won't work
« on: September 11, 2012, 07:40:02 AM »
Hi there,

I have upgradede from 7.1 to 8.1 with no problem.

When going trugh the installer script i can test the SMTP and have no problem.

But in real life - in roundcube - i can't sent mail. I get no fail but the mail is never sent.

Let me know what you need to help :-)

Best regards
Henrik
« Last Edit: September 13, 2012, 06:34:20 AM by heinohund »

Offline Yoni

  • Full Member
  • ***
  • Posts: 164
    • MyRoundcube
Re: Upgrading from 7.1 to 8.1 - SMTP won't work
« Reply #1 on: September 11, 2012, 03:18:09 PM »
It might be your smtp server  requiring authentication for outgoing email (you should have gotten an error message though, maybe checking your logs will help). Please, configure Roundcube to use authentication for outgoing emails and see if that solves the problem.
« Last Edit: September 12, 2012, 03:12:15 PM by Yoni »

Offline heinohund

  • Jr. Member
  • **
  • Posts: 17
Re: Upgrading from 7.1 to 8.1 - SMTP won't work
« Reply #2 on: September 12, 2012, 05:25:48 AM »
It sounds like your smtp server might be requiring authentication for outgoing email (you should have gotten an error message though, maybe checking your logs will help). Please, configure Roundcube to use authentication for outgoing emails and see if that solves the problem.

Hi Yoni:

This is my config fil for SMTP:

Code: [Select]
// ----------------------------------
// SMTP
// ----------------------------------

// SMTP server host (for sending mails).
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
// If left blank, the PHP mail() function is used
// Supported replacement variables:
// %h - user's IMAP hostname
// %n - http hostname ($_SERVER['SERVER_NAME'])
// %d - domain (http hostname without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %d = domain.tld
$rcmail_config['smtp_server'] = 'smtp2.servage.net';

// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
// deprecated SSL over SMTP (aka SMTPS))
$rcmail_config['smtp_port'] = 25;

// SMTP username (if required) if you use %u as the username Roundcube
// will use the current username for login
$rcmail_config['smtp_user'] = '%u';

// SMTP password (if required) if you use %p as the password Roundcube
// will use the current user's password for login
$rcmail_config['smtp_pass'] = '%p';

// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['smtp_auth_type'] = '';

// Optional SMTP authentication identifier to be used as authorization proxy
$rcmail_config['smtp_auth_cid'] = NULL;

// Optional SMTP authentication password to be used for smtp_auth_cid
$rcmail_config['smtp_auth_pw'] = NULL;

// SMTP HELO host
// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
// Leave this blank and you will get the server variable 'server_name' or
// localhost if that isn't defined.
$rcmail_config['smtp_helo_host'] = '';

// SMTP connection timeout, in seconds. Default: 0 (no limit)
$rcmail_config['smtp_timeout'] = 0;

And here is the log:

Code: [Select]
1327.[12-Sep-2012 09:20:58] PHP Fatal error:  Class 'html2text' not found in /mounted-storage/home61c/sub001/sc38369-GDQX/jegerglad.dk/rc81/program/steps/mail/sendmail.inc on line 501
I don't think the log-text af somthing to do with the send -

I hope you can help me :-)

Offline Yoni

  • Full Member
  • ***
  • Posts: 164
    • MyRoundcube
Re: Upgrading from 7.1 to 8.1 - SMTP won't work
« Reply #3 on: September 12, 2012, 08:31:02 AM »
From that error log there is a PHP class error. It could be as simple as the wrong permissions for files on your server. Please check permissions before you attempt to do anything else. (make sure you propagate permissions further down).

Can you check if that error also happens when sending plain text e-mails or it is only happening when sending e-mails composed in HTML?
« Last Edit: September 12, 2012, 08:33:17 AM by Yoni »

Offline heinohund

  • Jr. Member
  • **
  • Posts: 17
Re: Upgrading from 7.1 to 8.1 - SMTP won't work
« Reply #4 on: September 12, 2012, 09:16:06 AM »
From that error log there is a PHP class error. It could be as simple as the wrong permissions for files on your server. Please check permissions before you attempt to do anything else. (make sure you propagate permissions further down).

Can you check if that error also happens when sending plain text e-mails or it is only happening when sending e-mails composed in HTML?

There is no error if i send plain text.

What fil du i have to give permissions and where do i find the file?

My host is servage.net

You can see my PHP info here http://jegerglad.dk/info.php
« Last Edit: September 12, 2012, 09:32:31 AM by heinohund »

Offline heinohund

  • Jr. Member
  • **
  • Posts: 17
Re: Upgrading from 7.1 to 8.1 - SMTP won't work
« Reply #5 on: September 12, 2012, 09:46:38 AM »
I found the file html2text.inc in /program/steps/utils

What permissions do I have to give it?

Right now it is Chmod - 644

Or do I just move it to /program/steps/mail/  ?
« Last Edit: September 12, 2012, 11:08:34 AM by heinohund »

Offline Yoni

  • Full Member
  • ***
  • Posts: 164
    • MyRoundcube
Re: Upgrading from 7.1 to 8.1 - SMTP won't work
« Reply #6 on: September 12, 2012, 03:11:40 PM »
Leave html2text.inc in its place. It is where it is suppose to be. Check your PHP installation requirements. I noticed you are missing intl extension. Perhaps you are missing another ones as well. Use the installer (step 1) to check requirements. Maybe someone else with a better understanding in the subject than myself could help you here as well.

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: Upgrading from 7.1 to 8.1 - SMTP won't work
« Reply #7 on: September 13, 2012, 02:35:58 AM »
There should be html2text.php file in lib/ directory. I suppose you have installed dependent version of the Roundcube package and your system lacks some libs.

Offline heinohund

  • Jr. Member
  • **
  • Posts: 17
Re: Upgrading from 7.1 to 8.1 - SMTP won't work
« Reply #8 on: September 13, 2012, 02:55:29 AM »
OK thanks.

The file is missing :-)

I proberly can't do anything befor Sunday - I'll update alle files again and get back to you

Thanks again

Offline heinohund

  • Jr. Member
  • **
  • Posts: 17
Re: Upgrading from 7.1 to 8.1 - SMTP won't work
« Reply #9 on: September 13, 2012, 06:33:39 AM »
Got some time and uploadede the file.

ITS WORKING!!!  :D

Thanks!