Author Topic: replace email settings (identity) @127.0.0.1 by @my.domain  (Read 3974 times)

Offline milo

  • Newbie
  • *
  • Posts: 6
replace email settings (identity) @127.0.0.1 by @my.domain
« on: August 12, 2015, 03:13:07 AM »
Hi,

I use Roundcube 1.1 with Dovecot and Opensmtpd.
Users are local (BSDauth). I host only one domain : example.fr

When i connect on Roundcube, the default email address for my user is user@127.0.0.1 instead of user@example.fr.
At each new user, i need to set manually the good email address (newuser@example.fr).

Is there a way to achieve this :-\ ?

Thank you very much.


Cheers,

Milo

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,898
    • SKaero - Custom Roundcube development
Re: replace email settings (identity) @127.0.0.1 by @my.domain
« Reply #1 on: August 12, 2015, 03:25:03 AM »
Set $config['mail_domain'] in the Roundcube config:
Code: [Select]
// This domain will be used to form e-mail addresses of new users
// Specify an array with 'host' => 'domain' values to support multiple hosts
// Supported replacement variables:
// %h - user's IMAP hostname
// %n - http hostname ($_SERVER['SERVER_NAME'])
// %d - domain (http hostname without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %t = domain.tld
$config['mail_domain'] = '';

Offline milo

  • Newbie
  • *
  • Posts: 6
Re: replace email settings (identity) @127.0.0.1 by @my.domain
« Reply #2 on: August 12, 2015, 03:51:44 AM »
Excellent, merci!