Author Topic: installation help - outgoing domain name  (Read 4410 times)

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
installation help - outgoing domain name
« 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 "username@domain1.com"
- if user logs in with username@domain2.com then it sends email as "username@domain2.com"
Thanks in advance.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: installation help - outgoing domain name
« Reply #1 on: October 17, 2013, 02:06:27 PM »
You should just need to set username_domain to domain1.com in the main.inc.php.

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
Re: installation help - outgoing domain name
« Reply #2 on: October 17, 2013, 02:09:21 PM »
ok I did that and now I get "login failed"

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: installation help - outgoing domain name
« Reply #3 on: October 17, 2013, 02:54:09 PM »
Can users login with username@domain1.com?

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
Re: installation help - outgoing domain name
« Reply #4 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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: installation help - outgoing domain name
« Reply #5 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.

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
Re: installation help - outgoing domain name
« Reply #6 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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: installation help - outgoing domain name
« Reply #7 on: October 17, 2013, 05:53:41 PM »
Its only going to change for new RoundCube accounts not ones already in the database.

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
Re: installation help - outgoing domain name
« Reply #8 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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: installation help - outgoing domain name
« Reply #9 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.