Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: boxyball on October 17, 2013, 01:54:30 PM

Title: installation help - outgoing domain name
Post by: boxyball on October 17, 2013, 01:54:30 PM
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.
Title: Re: installation help - outgoing domain name
Post by: SKaero on October 17, 2013, 02:06:27 PM
You should just need to set username_domain to domain1.com in the main.inc.php.
Title: Re: installation help - outgoing domain name
Post by: boxyball on October 17, 2013, 02:09:21 PM
ok I did that and now I get "login failed"
Title: Re: installation help - outgoing domain name
Post by: SKaero on October 17, 2013, 02:54:09 PM
Can users login with [email protected]?
Title: Re: installation help - outgoing domain name
Post by: boxyball on October 17, 2013, 02:58:26 PM
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.
Title: Re: installation help - outgoing domain name
Post by: SKaero on October 17, 2013, 04:17:28 PM
Ah I see, forgot what I said before then. You'll need to setup the mail_domain option using the array format.
Title: Re: installation help - outgoing domain name
Post by: boxyball on October 17, 2013, 05:22:16 PM
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.
Title: Re: installation help - outgoing domain name
Post by: SKaero on October 17, 2013, 05:53:41 PM
Its only going to change for new RoundCube accounts not ones already in the database.
Title: Re: installation help - outgoing domain name
Post by: boxyball on October 17, 2013, 06:37:05 PM
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.
Title: Re: installation help - outgoing domain name
Post by: SKaero on October 18, 2013, 01:20:36 PM
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.