Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: Jin597 on October 30, 2008, 10:45:50 PM

Title: problems with sender address
Post by: Jin597 on October 30, 2008, 10:45:50 PM
When I send a message, the sender address is of the form:

[email protected]

rather than   [email protected]

I'm not sure how to fix this.  I tried changed the host to just server.com in main.inc.php, but when I did that, I wasn't able to logon.  I don't believe it is a DNS issue, as the url http://domain.com  works without any problem...   and it's the same server as mail.  so, domain.com should be resolving.

At the moment, my server has two domains.  so, I have main.inc.php as the following
$rcmail_config['default_host'] = array('mail.domain1.com' => 'domain1.com', 'mail.domain2.com' => 'domain2.com');

Any ideas on how I can get the sender address to appear right but still be able to logon?
Title: problems with sender address
Post by: JabbaTek on November 10, 2008, 04:53:49 PM
There is a setting in the main.inc.php file the User Domain.  Try setting that to the domain you want to use. There is snother setting that has to do with that as well but  ican't remember it off the top of my head.
Title: Hi JabbaTek
Post by: Jin597 on November 11, 2008, 12:42:50 AM
Thanks for the tip.

Unfortunately when I change any of them, it makes it so I can not login at all.
Not sure what is causing this  *confused*
Title: problems with sender address
Post by: JohnDoh on November 11, 2008, 03:28:59 AM
have you checked your identity, under personal settings? may be if default_domain wasn't set when you first logged in your identity is wrong.
Title: problems with sender address
Post by: JabbaTek on November 11, 2008, 07:30:54 PM
Yes, check the identities.  

There are 3 settings in the config file to look at.  Default host, user domain, and mail domain.  these should all be set to your domain name and not mail.yourdomain.com, just yourdomain.com.
Title: problems with sender address
Post by: stevekwok on December 22, 2008, 08:25:31 PM
I have the same problem.

for example, my domain is xyz.com and my smtp is mail.xyz.com
my imap server do not need a domain in the login, e.g. only "user" not "[email protected]"

$rcmail_config['default_host'] = 'mail.xyz.com';
$rcmail_config['username_domain'] = '';
$rcmail_config['mail_domain'] = 'xyz.com';

It seems default_host = imap server name
when username_domain = blank
roundcube use usename@default_host => [email protected] as the email for sending email.

Regards,
Steve
Title: Solved the problem
Post by: allgama on January 12, 2009, 12:51:12 AM
I dont' know if you solved this problem already but I found the answer. In my case there was a problem with my /etc/hosts and /etc/hostname

It should contain this /etc/hosts

127.0.0.1       localhost
x.x.x.x       ns.domain.com      ns

and /etc/hostname

ns.domain.com

Regarding main.inc.php:

$rcmail_config['default_host'] = 'ns.domain.com';
$rcmail_config['username_domain'] = ''; (I don't need to put a domain in my case to log in)
$rcmail_config['mail_domain'] = 'domain.com';

Apparently the problem was with name resolution. I hope this might work.

Bye

Allan
Title: Same problem
Post by: Gildo Castro on January 14, 2009, 07:48:48 AM
This solution does not work for me.  


// This domain will be used to form e-mail addresses of new users
// Specify an array with 'host' => 'domain' values to support multiple hosts
$rcmail_config['mail_domain'] = 'example.com';

thanks.


Essa solução não funcionou para mim. Essa variavél diz respeito ao comportamento do webmail quanto a adição de usuários.

Grato.
Title: problems with sender address
Post by: animetal on November 09, 2009, 09:39:16 AM
Yes, this will work to those new users, for the previous one you can go to the roundcube database, to the identities table and change the email field for each user or make an SQL Script for all the users.


PD: I know this post is old but this can work for future reference like me.