Author Topic: Unable to send emails from "http://localhost/roundcubemail/"  (Read 5723 times)

Offline appleguru2004

  • Jr. Member
  • **
  • Posts: 10
Unable to send emails from "http://localhost/roundcubemail/"
« on: November 04, 2009, 12:45:26 PM »
Forum users,

I now get a login window and I'm able to login using either of the test accounts I created, "user1@localhost.com" and "user2@localhost.com".

I'm unable to send any outgoing messages from either of the test accounts I created. To help you better understand my problem, I've created a series of screen shots documenting my hMailServer and RoundCube environments. See pdf attachment.

Thank you in advance for your assistance.

Ws

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
Unable to send emails from "http://localhost/roundcubemail/"
« Reply #1 on: November 08, 2009, 05:19:47 AM »
take a look in [rc root]/logs/errors there should be a message there to say why it failed.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline toetag

  • Jr. Member
  • **
  • Posts: 65
Unable to send emails from "http://localhost/roundcubemail/"
« Reply #2 on: November 08, 2009, 09:01:29 AM »
in hMail, what are your settings in IP Ranges under "My Computer". Check the values under "Allows deliveries from" and "Require SMTP Authentication".

also for roundcube, in config/main.inc.php what are your settings for the SMTP fields.  You might need to set those as well.
<[ a desert to an irishman is an empty glass. ]>

Offline appleguru2004

  • Jr. Member
  • **
  • Posts: 10
Unable to send outgoing mail from "http://localhost/roundcubemail/"
« Reply #3 on: November 10, 2009, 10:59:35 AM »
JohnDoh,

Output from the [rc root]/logs/errors is listed below:
[03-Nov-2009 16:11:56] Invalid response code received from server (504):  [03-Nov-2009 16:11:56 -0800] SMTP Error: SMTP error: Authentication failure: Invalid response code received from server (Code: 504) in C:\XAMPP\htdocs\roundcubemail\program\steps\mail\func.inc on line 1296 (POST /roundcubemail/?_task=mail&_action=send)

WS

Offline toetag

  • Jr. Member
  • **
  • Posts: 65
Unable to send emails from "http://localhost/roundcubemail/"
« Reply #4 on: November 10, 2009, 11:08:29 AM »
Did you check the "IP Range" options under the hMail advanced options yet? that's where you configure sending authentication.

As well as the SMTP settings in main.inc.php under /roundcube/config

// use this host for sending mails.
// to use SSL connection, set ssl://smtp.host.com
// if left blank, the PHP mail() function is used
// Use %h variable as replacement for user's IMAP hostname
$rcmail_config['smtp_server'] = 'localhost';

// SMTP port (default is 25; 465 for SSL)
$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'] = '';
<[ a desert to an irishman is an empty glass. ]>

Offline appleguru2004

  • Jr. Member
  • **
  • Posts: 10
Unable to send outgoing mail from "http://localhost/roundcubemail/"
« Reply #5 on: November 10, 2009, 11:56:03 AM »
Toetag,

Screenshots documenting my hMailServer SMTP settings is documented in the accompanying pdf; settings for SMTP fields [inside main.inc.php] are listed below:
/ use this host for sending mails.
// to use SSL connection, set ssl://smtp.host.com
// if left blank, the PHP mail() function is used
$rcmail_config['smtp_server'] = 'localhost';

// SMTP port (default is 25; 465 for SSL)
$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'] = 'PLAIN';

// 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'] = '';

// Log sent messages
$rcmail_config['smtp_log'] = TRUE;

Thanks again for your help.

Sincerely,

Ws

Offline toetag

  • Jr. Member
  • **
  • Posts: 65
Unable to send emails from "http://localhost/roundcubemail/"
« Reply #6 on: November 10, 2009, 12:00:48 PM »
Those aren't the settings i'm referring.   Check under the "Advanced" node in the settings window.   those are the "ports" hMail will listen on and for what protocols.

Your main.inc.php settings look correct.  Check the Advanced - IP Ranges settings for "My Computer" in hMail and get back with me.  Example

and i lied, the screen shots you are showing are not the "ports" and protocols hMail will use. It's the protocols hMail will support. ie: you don't want users using POP3, disable it here.
« Last Edit: November 10, 2009, 12:19:17 PM by toetag »
<[ a desert to an irishman is an empty glass. ]>