Roundcube Community Forum

 

Fix the identity and max upload

Started by nb91, August 13, 2010, 07:06:45 AM

Previous topic - Next topic

nb91

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

nb91

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 ?:)

SKaero

In /config/main.inc.php change $rcmail_config['identities_level']

nb91

#3
Quote from: skaero;29424In /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 [email protected] and I want that all my users see [email protected]

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

How I can do this ?

SKaero

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.

nb91

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 "[email protected]" or I want "[email protected]"

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

JohnDoh

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...

nb91

#7
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 ?