Roundcube Community Forum

 

Urgent help needed

Started by kevuk79, September 29, 2014, 06:04:28 AM

Previous topic - Next topic

kevuk79

Please could someone help fix this issue, I have waded through loads of pages and tried using the fixes but nothing seems to work.

I have had errors while logging onto my account on roundcube as we run a theatre company so thought it would be easier to have roundcube linked to our site which members and staff can log in.

But we can't seem to send out messages as the settings for the smtp doesn't seem to be working, I have tried all types of things the file has been restored to default settings i think now but we are getting this error

SMTP Error (550): Failed to set sender "[email protected]" (bosauthsmtp15: Host 66.96.183.4: No unauthenticated relaying permitted).

SKaero


kevuk79

Would  that be the config.inc.php or defaults.inc.php

SKaero

The config.inc.php and any values that you modified in the defaults.inc.php (Don't edit values in the defaults.inc.php, thats not what its there for.)

kevuk79

#4
<?php

/* Local configuration for Roundcube Webmail */

// ----------------------------------
// SQL DATABASE
// ----------------------------------
// Database connection string (DSN) for read+write operations
// Format (compatible with PEAR MDB2): db_provider://user:password@host/database
// Currently supported db_providers: mysql, pgsql, sqlite, mssql or sqlsrv
// For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
// NOTE: for SQLite use absolute path: 'sqlite:////full/path/to/sqlite.db?mode=0646'
$config['db_dsnw'] = 'mysql://user:pass@domain/database';

// ----------------------------------
// IMAP
// ----------------------------------
// The mail host chosen to perform the log-in.
// Leave blank to show a textbox at login, give a list of hosts
// to display a pulldown menu or set one host as string.
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
// Supported replacement variables:
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %s - domain name after the '@' from e-mail address provided at login screen
// For example %n = mail.domain.tld, %t = domain.tld
// WARNING: After hostname change update of mail_host column in users table is
//          required to match old user data records with the new host.
$config['default_host'] = '11hr-productions.co.uk';

// ----------------------------------
// 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 - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld
$config['smtp_server'] = '11hr-productions.co.uk';

// provide an URL where a user can get support for this Roundcube installation
// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
$config['support_url'] = '';

// this key is used to encrypt the users imap password which is stored
// in the session record (and the client cookie if remember password is enabled).
// please provide a string of exactly 24 chars.
$config['des_key'] = 'BmP8ET78*TrrRJO=IROEN5sP';

// ----------------------------------
// PLUGINS
// ----------------------------------
// List of active plugins (in plugins/ directory)
$config['plugins'] = array();

// Set the spell checking engine. Possible values:
// - 'googie'  - the default
// - 'pspell'  - requires the PHP Pspell module and aspell installed
// - 'enchant' - requires the PHP Enchant module
// - 'atd'     - install your own After the Deadline server or check with the people at http://www.afterthedeadline.com before using their API
// Since Google shut down their public spell checking service, you need to
// connect to a Nox Spell Server when using 'googie' here. Therefore specify the 'spellcheck_uri'
$config['spellcheck_engine'] = 'pspell';

SKaero

Try adding the following the config file:
$config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';

kevuk79

I have added it below $config['smtp_server'] = '11hr-productions.co.uk';

And when I load Roundcube page I get this error

500 Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

kevuk79

Nevermind I have re added it at the end of the file and it works now, thanks for your help you have saved me so much hassle and stress

kevuk79

On that config file is it possible to have a drop down and select which email account you want to log in and you just type in the password, would make it easier as our company as several email address and would save time instead of typing them out.

SKaero

There are some options depending on your configuration:

// Automatically add this domain to user names for login
// Only for IMAP servers that require full e-mail addresses for login
// Specify an array with 'host' => 'domain' values to support multiple hosts
// Supported replacement variables:
// %h - user's IMAP hostname
// %n - hostname ($_SERVER['SERVER_NAME'])
// %t - hostname without the first part
// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld
$config['username_domain'] = '';

kevuk79

I have tried editing things but struggling, sorry to be a pest but you able to show me an example please

We have about 18 email address for the company but what would the coding in the script be for them will just list a few

[email protected]
[email protected]
[email protected]

SKaero

Ah, sorry I miss understood what you wanted to do. There isn't an option for that but you could set the $config['username_domain'] to 11hr-productions.co.uk so you would only have to type the first part of the email (i.e. admin, enquiries, youthweekly, etc.) Or you could code a plugin to add a full drop down.

kevuk79

I haven't managed to find a plugin that can do that but thanks for the alternative method for now at least it would certainly save time in typing all that each time.