nothings works)
it`s just help to add domain for sender. But not for contact in addressbook.
// PLUGINS
$config['plugins'] = array('managesieve', 'password');
$config['autocomplete_addressbooks'] = array("sql", "somedomain2.com");
$config['ldap_public']["global_ldap_abook"] = array(
'name' => 'global_ldap_abook',
'hosts' => array("dc1.somedomain1.int"),
'port' => 389,
'use_tls' => false,
'ldap_version' => '3',
'network_timeout' => 10,
'user_specific' => false,
'base_dn' => "OU=Users,OU=LOQ,DC=somedomain1,DC=int",
'bind_dn' => "vmail",
'bind_pass' => "veryStR0ngPasswd",
'writable' => false,
'search_fields' => array('mail', 'cn', 'sAMAccountName', 'displayname', 'sn', 'givenName'),
'fieldmap' => array(
'name' => 'cn',
'surname' => 'sn',
'firstname' => 'givenName',
'title' => 'title',
'email' => 'sAMAccountName',
'phone:work' => 'telephoneNumber',
'phone:mobile' => 'mobile',
'street' => 'street',
'zipcode' => 'postalCode',
'locality' => 'l',
'department' => 'departmentNumber',
'notes' => 'description',
'name' => 'cn',
'surname' => 'sn',
'firstname' => 'givenName',
'title' => 'title',
'phone:work' => 'telephoneNumber',
'phone:mobile' => 'mobile',
'phone:workfax' => 'facsimileTelephoneNumber',
'street' => 'street',
'zipcode' => 'postalCode',
'locality' => 'l',
'department' => 'departmentNumber',
'notes' => 'description',
'photo' => 'jpegPhoto',
),
'sort' => 'cn',
'scope' => 'sub',
'filter' => "(&(objectClass=person)(memberOf:1.2.840.113556.1.4.1941:=cn=Mail_Users_somedomain1_int,OU=Groups,OU=LOQ,DC=somedomain1,DC=int))",
'fuzzy_search' => true,
'vlv' => false, // Enable Virtual List View to more efficiently fetch paginated data (if server supports it)
'sizelimit' => '0', // Enables you to limit the count of entries fetched. Setting this to 0 means no limit.
'timelimit' => '0', // Sets the number of seconds how long is spend on the search. Setting this to 0 means no limit.
'referrals' => true, // Sets the LDAP_OPT_REFERRALS option. Mostly used in multi-domain Active Directory setups
);
$config['autocomplete_addressbooks'] = array('sql', 'global_ldap_abook');
with
$rcmail_config['username_domain'] = array(
'127.0.0.1' => 'somedomain2',
);
or
$config['username_domain'] = array(
'127.0.0.1' => 'somedomain2',
);
or
$config['username_domain'] = 'somedomain2',
it`s just one result - change of sender`s domain name. But nothing for contacts in AddressBook.
In /var/www/roundcubemail/config/defaults.inc.php i see intresting thing
'autovalues' => array(
// 'uid' => 'md5(microtime())', // You may specify PHP code snippets which are then eval'ed
// 'mail' => '{givenname}.{sn}@mydomain.com', // or composite strings with placeholders for existing attributes
),
but when i add this
'autovalues' => array(
'mail' => '{sAMAccountName}@somedomain2',
),
array after fieldmap array it`s not working.
--
Roundcube recieve just a username. I need to add domain, but nothing works.