Hello all,
As mentioned previously we are looking at putting Roundcube out as a dev client in the following setup;
L O C A L H O S T | External Roundcube -> Perdition -> IMAP Server \
Roundcube and Perdition are on the same server. The IMAP servers are seperate entities. The config of roundcube means that in this instance I would need to set
$rcmail_config['default_host'] = 'localhost';
Unfortunately this means the knock on effect is that any logged in users gets 'username'@'localhost' as their originating email address. Is there any way for me to specify a default domain for email addresses or to set this parameter on a per-user basis? The alternative solution is to attempt to pre-populate the roundcube database with our user ID's or to ensure that our users know that when they initially log in that they will need to setup their identities before they are allowed to send email.
Your thoughts on this are appreciated.
Cheers, Gavin
I think it would be nice touch if RoundCube could be configured to automatically take them through some "identity creation wizard" or something when their account is first created.
-j
On Thu, 2005-12-15 at 16:15 +0000, Gavin Conway wrote:
Hello all,
As mentioned previously we are looking at putting Roundcube out as a dev client in the following setup;
L O C A L H O S T | External Roundcube -> Perdition -> IMAP Server \
Roundcube and Perdition are on the same server. The IMAP servers are seperate entities. The config of roundcube means that in this instance I would need to set
$rcmail_config['default_host'] = 'localhost';
Unfortunately this means the knock on effect is that any logged in users gets 'username'@'localhost' as their originating email address. Is there any way for me to specify a default domain for email addresses or to set this parameter on a per-user basis? The alternative solution is to attempt to pre-populate the roundcube database with our user ID's or to ensure that our users know that when they initially log in that they will need to setup their identities before they are allowed to send email.
Your thoughts on this are appreciated.
Cheers, Gavin
Hi,
Could you just make your default host be the name of your server,
even if it is localhost? Or use the $_SERVER["server_name"]
variable? (http://us3.php.net/reserved.variables)
In any case, you can definitely do what I did which was to hack /
program/include/main.inc, around line 332, the function called
rcmail_create_user() - this is a great function to hack because it
lets you manually manipulate things like replyto, signature ("sent
from Conway's awesome RoundCube install!"), or even your own
preference fields. Here, you can change $host by going
$host = "mydarnhost";
anywhere after
function rcmail_create_user($user, $host) { global $DB, $CONFIG, $IMAP;
On a development note, we DESPERATELY need the array of possible IMAP
servers to be multi-dimensional, so that yo can config with the
server, a user-readable server-name, and perhaps some server-specific
data.
Best, J-dawg
On Dec 15, 2005, at 11:15 AM, Gavin Conway wrote:
Roundcube and Perdition are on the same server. The IMAP servers
are seperate entities. The config of roundcube means that in this
instance I would need to set$rcmail_config['default_host'] = 'localhost';
Unfortunately this means the knock on effect is that any logged in
users gets 'username'@'localhost' as their originating email
address. Is there any way for me to specify a default domain for
email addresses or to set this parameter on a per-user basis? The
alternative solution is to attempt to pre-populate the roundcube
database with our user ID's or to ensure that our users know that
when they initially log in that they will need to setup their
identities before they are allowed to send email.
I could also see a nice "testing page" where you put in your data and
it tries to send an email, receive an email, etc. based on test
information - similar to that on imp/test.php - that way you could be
confident about the parameters you're putting in.
Whoever wants to volunteer for that... I'm currently working on an
AJAX/LDAP dynamic read program that will allow the user to query an
LDAP directory and their address books (without loading the silly
things hard-code!) - hope to be done by tomorrow. I don't really do
CVS and stuff - so if/when I get that done, let me know if anyone
want to put it in the right way.
J-dawg
On Dec 15, 2005, at 11:24 AM, Jeremy Jongsma wrote:
I think it would be nice touch if RoundCube could be configured to automatically take them through some "identity creation wizard" or something when their account is first created.
-j
I do have te same problem.
The folowing patch allows to set a default maildomain, using /rcmail_config['from_domain'] = /'example.com'. http://lists.dorkzilla.org/archive/roundcube-dev/2005Nov/0997.html
I still would love to see the patch to be included! :-)
Pieter.
Gavin Conway schreef:
Hello all,
As mentioned previously we are looking at putting Roundcube out as a dev client in the following setup;
L O C A L H O S T | External Roundcube -> Perdition -> IMAP Server \
Roundcube and Perdition are on the same server. The IMAP servers are seperate entities. The config of roundcube means that in this instance I would need to set
$rcmail_config['default_host'] = 'localhost';
Unfortunately this means the knock on effect is that any logged in users gets 'username'@'localhost' as their originating email address. Is there any way for me to specify a default domain for email addresses or to set this parameter on a per-user basis? The alternative solution is to attempt to pre-populate the roundcube database with our user ID's or to ensure that our users know that when they initially log in that they will need to setup their identities before they are allowed to send email.
Your thoughts on this are appreciated.
Cheers, Gavin