Roundcube Community Forum

 

installation help - outgoing domain name

Started by boxyball, October 17, 2013, 01:54:30 PM

Previous topic - Next topic

boxyball

I have installed version 0.9.2 and it appears to work if I leave the defaults.
The problem is that I need to change the domain of outgoing email FROM address to something other than the server name.
Whenever I attempt to change anything in the main.inc.php, I start getting authentication errors.
I have read many posts on this and get more confused with every one.
I need to be able to do the following without messing with authentication:
- if user logs in with username only then it sends email as "[email protected]"
- if user logs in with [email protected] then it sends email as "[email protected]"
Thanks in advance.

SKaero

You should just need to set username_domain to domain1.com in the main.inc.php.

boxyball

ok I did that and now I get "login failed"

SKaero


boxyball

No.  That's the whole problem.  All my users are system users so I don't want to mess with authentication ... but every setting I touch in RC also changes authentication.

SKaero

Ah I see, forgot what I said before then. You'll need to setup the mail_domain option using the array format.

boxyball

ok I tried that ... mine now looks like this:
$rcmail_config['mail_domain'] = array(
        '' => 'domain1.com',
        'localhost' => 'domain1.com'
        );
But sent mail still has <username>@<server name> in the from address.  So nothing changed.
But at least I can still log in.

SKaero

Its only going to change for new RoundCube accounts not ones already in the database.

boxyball

do you have a tool that edits the database?
how do I delete an existing user and what is the preferred method to add one?
I just been doing Linux useradd command.

SKaero

You can delete the user record in the RoundCube database (will not delete the actual account) alternatively you can just change the identity in the RoundCube setting for existing accounts.