Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #21  
Old 23rd March 2007, 17:30
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 210
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default RoundCube: resolve user names and e-mail addresses

@Edge,

I think you're on the right track Edge!

I have something more nice for you:
Within RoundCube's main.inc.php file there is a line like:

// Path to a virtuser table file to resolve user names and e-mail addresses
$rcmail_config['virtuser_file'] = '';

If you change it to:

// Path to a virtuser table file to resolve user names and e-mail addresses
$rcmail_config['virtuser_file'] = '/etc/postfix/virtusertable';
/etc/postfix/virtusertable

Then your users are able to login with their loginname AND emailaddress as well!
(This is not within my howto yet).


@Hagforce,

I do not know if choosing the characterset for one single language is possible (yet).
I also use IlohaMail, this emailclient uses the same default folders as RoundCube (compatible) and has that functionality.
It has a callendar as well, which is on your wishlist.
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
Sponsored Links
  #22  
Old 23rd March 2007, 17:37
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 260
Thanked 145 Times in 127 Posts
Default

Thanks for the info Hans.

re: Then your users are able to login with their loginname AND emailaddress as well!

I did that some time ago allready whe I was playing with RoundCube (http://www.howtoforge.com/forums/sho...86&postcount=9)

Only problem now is the @www.domain.tld email change
__________________
Never execute code written on a Friday or a Monday.

Last edited by edge; 23rd March 2007 at 17:42.
Reply With Quote
  #23  
Old 23rd March 2007, 18:38
Hagforce Hagforce is offline
Senior Member
 
Join Date: Feb 2006
Posts: 210
Thanks: 37
Thanked 1 Time in 1 Post
Default

I tried to edit main.inc
Code:
  // language has special charset configured
  if (isset($rcube_charsets[$lang]))
    $charset = $rcube_charsets[$lang];
  else
    $charset = 'UTF-8';
But that didn`t work.

I want to use iso-8859-1

If I can`t set charset per language, where can I set it for the whole installation?

If you log in with username and if you log in with e-mail different users are created, any way around this?

And the identity added is mailuser@www.domain.com, how do you get mailuser@domain.com?

Last edited by Hagforce; 23rd March 2007 at 18:40.
Reply With Quote
  #24  
Old 23rd March 2007, 18:42
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 260
Thanked 145 Times in 127 Posts
Default

Quote:
Originally Posted by Hagforce
And the identity added is mailuser@www.domain.com, how do you get mailuser@domain.com?
http://www.howtoforge.com/forums/sho...4&postcount=51
If the user is allready created in the Roundcube database, you will need to delete it 1st to make it work!
(i'm talking about the Roundcube database)
__________________
Never execute code written on a Friday or a Monday.
Reply With Quote
  #25  
Old 23rd March 2007, 19:25
Hagforce Hagforce is offline
Senior Member
 
Join Date: Feb 2006
Posts: 210
Thanks: 37
Thanked 1 Time in 1 Post
Default

Ahh Thank you.

Now I just need to change the charset and everything is perfect
Reply With Quote
  #26  
Old 24th March 2007, 02:07
Hagforce Hagforce is offline
Senior Member
 
Join Date: Feb 2006
Posts: 210
Thanks: 37
Thanked 1 Time in 1 Post
Default

I appended $rcmail_config['charset'] = '8859-1'; to my main.inc.php, but then I get a blanck page....

How do you change the charset in this program?
Reply With Quote
  #27  
Old 24th March 2007, 08:04
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 210
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

@Hagforce

At the moment i do not have a solution for that.
I've done some tests like adding:

$rcmail_config['charset'] = '8859-1'; to the main.inc.php

And even adding lines like these:

$labels['defaulteconding'] = 'windows-1251';

or

$labels['defaulteconding'] = '8859-1';

or

$labels['defaulteconding'] = 'iso-8859-1';

to the language labels.inc file within your RoundCube localization folder, but i did not succeed right now.


@Edge,

Thanks for your feedback! Doing so, we can make things better.
Today i've updated my RoundCube howto, which is published here:
http://www.howtoforge.com/roundcube_webmail_ispconfig

The following content has been added:

To login with usernames AND email addresses change the line:

// Path to a virtuser table file to resolve user names and e-mail addresses
$rcmail_config['virtuser_file'] = '';
/etc/postfix/virtusertable

into:

// Path to a virtuser table file to resolve user names and e-mail addresses
$rcmail_config['virtuser_file'] = '/etc/postfix/virtusertable';
/etc/postfix/virtusertable

When a user login with the email address for the first time, within RoundCubes the identities section, the e-mail address will be displayed like: username@www.domain.tld. As we want the email address to be displayed like username@domain.tld do the following:

Change the line 637 within /program/incluse/main.inc file from:

637 $line = trim($line);

to:

637 $line = trim(str_replace("www.", "", $line));
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
  #28  
Old 24th March 2007, 13:12
Hagforce Hagforce is offline
Senior Member
 
Join Date: Feb 2006
Posts: 210
Thanks: 37
Thanked 1 Time in 1 Post
Default

I made this changes to my installation, so the users don`t spoof addresses.

I "$a_save_cols" in the save_identity.inc file I remove e-mail.
From identities.html and editidentity.html in skins I remove the add and delete button.

But my installation don`t lock good without the right charset, I really hope there is a solution for this.
Reply With Quote
  #29  
Old 24th March 2007, 20:52
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 260
Thanked 145 Times in 127 Posts
Default

An other problem is that when a user logs in the 1st time the virtual webname is used as display name (like web1_info)

The code hack below will remove the web1_ part, leaving only the "info" part as display name.

This is what you need to change.
Find in Roundcube's main.inc (it's in /program/included arround line 588):

PHP Code:
    // also create new identity records
    
$DB->query("INSERT INTO ".get_table_name('identities')."
                (user_id, del, standard, name, email)
                VALUES (?, 0, 1, ?, ?)"
,
                
$user_id,
                
$user_name,
                
$user_email); 
Replace it with:

PHP Code:
    // also create new identity records
    
$DB->query("INSERT INTO ".get_table_name('identities')."
                (user_id, del, standard, name, email)
                VALUES (?, 0, 1, ?, ?)"
,
                
$user_id,
                
$user_name preg_replace("/\\w[^\\]]*\\_/"""$user_name),
                
$user_email); 
Three more things.

1) Please note that PHP is not my preferred coding language, and that for sure the "code hack" can be done better!

2) This will only work on a standard ISPconfig. If you have changed the username to look different (not like web[nr]_name) you will need to change the preg_replace code)

3) If the user has already logged in once before, the name will stay as is!
__________________
Never execute code written on a Friday or a Monday.

Last edited by edge; 25th March 2007 at 11:53.
Reply With Quote
  #30  
Old 25th March 2007, 11:07
Hagforce Hagforce is offline
Senior Member
 
Join Date: Feb 2006
Posts: 210
Thanks: 37
Thanked 1 Time in 1 Post
 
Default

Thank you guys!

This install is begining to take form.
I managed to use UTF-8 after rebuilding the database and doing some changes, so now everything is ok.

Just one question though, what permissions do you use on the files and folders?

Now I use apache as owner and 700 on all folders and files, but is this safe?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to uninstall Round Cube that ISPConfig is using ProgressiveBastion Installation/Configuration 7 21st March 2012 16:46
RoundCube Webmail On Your ISPConfig Server Within 10 Easy Steps SoMBS HOWTO-Related Questions 17 25th November 2010 13:19
Webmail on port 80, ISPConfig on port 81 wonka Installation/Configuration 5 3rd March 2007 15:46
Problems with Webmail, ISPConfig, and Debian Sarge Spudchat Installation/Configuration 13 20th September 2006 00:54
IP ISPConfig web + Webmail - (Uebimiau) "url" Felipe Installation/Configuration 7 24th August 2006 10:06


All times are GMT +2. The time now is 04:00.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.