Roundcube Community Forum

 

problems with sender address

Started by Jin597, October 30, 2008, 10:45:50 PM

Previous topic - Next topic

Jin597

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?

JabbaTek

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.

Jin597

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*

JohnDoh

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.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

JabbaTek

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.

stevekwok

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

allgama

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

Gildo Castro

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.

animetal

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.