Author Topic: Fix the identity and max upload  (Read 3399 times)

Offline nb91

  • Newbie
  • *
  • Posts: 9
Fix the identity and max upload
« on: August 13, 2010, 07:06:45 AM »
Hi,

I have RoundCube 0.4 stable. It work very well but I have two issues.

In fact, I want to fix the identity of my users automatically in Preferences settings.



 1) I searched how fix the identity (display name and email) to avoid my users to configure themselves this settings. In this image, it's me who change my email and my display but I want do it automatically (change a variable in config file I think but i don't know which change).

 2) I want also to increase the max upload of the attachments. I modified my php.ini to 20mo but I can't send file more 8mo. Do I modify a file in the main.inc.phop ? I searched but I don't found what I must to change.

Thank you for your help.

Best regards,
nb91

Offline nb91

  • Newbie
  • *
  • Posts: 9
Fix the identity and max upload
« Reply #1 on: August 16, 2010, 09:01:06 AM »
Hi,

For the second issue, it's ok, it was a problem with Postfix and not Roundcube.

But for my first issue, anyone for a solution ?:)

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,883
    • SKaero - Custom Roundcube development
Fix the identity and max upload
« Reply #2 on: August 16, 2010, 09:07:49 AM »
In /config/main.inc.php change $rcmail_config['identities_level']

Offline nb91

  • Newbie
  • *
  • Posts: 9
Fix the identity and max upload
« Reply #3 on: August 16, 2010, 09:30:29 AM »
Quote from: skaero;29424
In /config/main.inc.php change $rcmail_config['identities_level']

Hi,

Thank you for your help.

Yes I saw this parameter but it's not totally what I want. The problem is when I manage my identities, I see mail@name.servermail.com and I want that all my users see mail@domainname.com

I want see only my domain name and not my server mail name.

How I can do this ?
« Last Edit: August 16, 2010, 09:49:11 AM by nb91 »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,883
    • SKaero - Custom Roundcube development
Fix the identity and max upload
« Reply #4 on: August 16, 2010, 01:11:35 PM »
It sounds like $rcmail_config['username_domain'] in /config/main.inc.php is set the your mail server not your domain. Keep in mind that changing it now will only work for new RoundCube accounts existing accounts will need it manually changed.

Offline nb91

  • Newbie
  • *
  • Posts: 9
Fix the identity and max upload
« Reply #5 on: September 23, 2010, 03:51:16 AM »
Hi,

I modified $rcmail_config['username_domain'] in main.inc.php but it's the same result. When an user connects to RoundCube, the identity is "user@name.server.com" or I want "user@domain.com"

I modified a lot of parameters in main.inc.php but nothing works. May be I must create a script MySQL and each time a new user logged on Roundcube, ths script modify the identity ?

Have you an idea, please ?

Thank you for your help.
nb91

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
Fix the identity and max upload
« Reply #6 on: September 23, 2010, 04:29:24 AM »
you need to set $rcmail_config['mail_domain'] i think, remember it only works for new users, not for ones which already exist.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline nb91

  • Newbie
  • *
  • Posts: 9
Fix the identity and max upload
« Reply #7 on: September 23, 2010, 04:35:25 AM »
Hi John,

When you  tell "it only works for new users, not for ones which already exist", the users which exist are the users are existing on my rouncdube database ?

I edit my main.inc.php :
Quote
// This domain will be used to form e-mail addresses of new users
// Specify an array with 'host' => 'domain' values to support multiple hosts
// Supported replacement variables:
// %h - user's IMAP hostname
// %n - http hostname ($_SERVER['SERVER_NAME'])
// %d - domain (http hostname without the first part)
// For example %n = mail.domain.tld, %d = domain.tld
$rcmail_config['mail_domain'] = 'mydomain.com';

It's good ?
« Last Edit: September 23, 2010, 04:38:14 AM by nb91 »