Author Topic: Wrong sender's email address when writing a mesage!  (Read 5521 times)

Offline romain

  • Newbie
  • *
  • Posts: 2
Wrong sender's email address when writing a mesage!
« on: March 02, 2010, 06:41:55 AM »
Hello.
I connect to roundcube via LDAP authentication (with dovecot imap server).
For example, with user (uid) "romain" and password "azerty", stored in LDAP, I can receive all messages sent to "romain@xxx.fr" and "romain@xxx.com"

But when I write an email, my associated address ("FROM") is romain@localhost ...

I see 2 solutions :
- Force client to log into roundcube with "email/passwd" and not "uid/passwd"
- Force roundcube to set a default sender's address : "uid@xxx.fr", for example, when writing a message.

But I don't really know how to implemente this into roundcube.

Thanks in advance for your help

Offline RedAntArmy

  • Newbie
  • *
  • Posts: 1
Wrong sender's email address when writing a mesage!
« Reply #1 on: March 03, 2010, 12:31:47 AM »
romain,

I have not installed roundcube yet, but I ran across this:

   $rcmail_config['mail_domain'] = '';
If you do not enter your domain into the above setting when users login to Roundcube they will be sending mail as "username@localhost" (where username is the user's login name). The user would need to manually edit their default Identity in Roundcube to the proper email address.

altered in /websites/roundcubemail/config/main.inc.php

I found this on page 4 of berylium's Guide to Installing Roundcube Webmail on Mac OS X Leopard

In this thread

I hope this works for you.

RedAntArmy

Offline romain

  • Newbie
  • *
  • Posts: 2
Wrong sender's email address when writing a mesage!
« Reply #2 on: March 03, 2010, 03:52:32 AM »
Thanks, that was exactly what I was looking for!
In fact I had to change the setting 'username_domain', because 'mail_domain' only concerns new users (which do not concerns me since I create users via LDAP)