Author Topic: Urgent help needed  (Read 6143 times)

Offline kevuk79

  • Jr. Member
  • **
  • Posts: 12
Urgent help needed
« on: September 29, 2014, 06:04:28 AM »
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 "youthweekly@11hr-productions.co.uk" (bosauthsmtp15: Host 66.96.183.4: No unauthenticated relaying permitted).

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Urgent help needed
« Reply #1 on: September 29, 2014, 10:36:09 AM »
Can you post your config?

Offline kevuk79

  • Jr. Member
  • **
  • Posts: 12
Re: Urgent help needed
« Reply #2 on: September 29, 2014, 12:47:32 PM »
Would  that be the config.inc.php or defaults.inc.php

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Urgent help needed
« Reply #3 on: September 29, 2014, 03:57:04 PM »
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.)

Offline kevuk79

  • Jr. Member
  • **
  • Posts: 12
Re: Urgent help needed
« Reply #4 on: September 29, 2014, 04:07:30 PM »
<?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';
« Last Edit: September 29, 2014, 04:45:47 PM by SKaero »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Urgent help needed
« Reply #5 on: September 29, 2014, 04:47:11 PM »
Try adding the following the config file:
Code: [Select]
$config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';

Offline kevuk79

  • Jr. Member
  • **
  • Posts: 12
Re: Urgent help needed
« Reply #6 on: September 29, 2014, 04:58:59 PM »
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.

Offline kevuk79

  • Jr. Member
  • **
  • Posts: 12
Re: Urgent help needed
« Reply #7 on: September 29, 2014, 05:02:39 PM »
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

Offline kevuk79

  • Jr. Member
  • **
  • Posts: 12
Re: Urgent help needed
« Reply #8 on: September 29, 2014, 05:49:01 PM »
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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Urgent help needed
« Reply #9 on: September 29, 2014, 05:51:58 PM »
There are some options depending on your configuration:
Code: [Select]
// 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'] = '';

Offline kevuk79

  • Jr. Member
  • **
  • Posts: 12
Re: Urgent help needed
« Reply #10 on: September 29, 2014, 05:55:41 PM »
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

admin@11hr-productions.co.uk
enquiries@11hr-productions.co.uk
youthweekly@11hr-production.co.uk

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: Urgent help needed
« Reply #11 on: September 30, 2014, 03:14:19 PM »
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.

Offline kevuk79

  • Jr. Member
  • **
  • Posts: 12
Re: Urgent help needed
« Reply #12 on: September 30, 2014, 04:14:57 PM »
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.