Author Topic: problems with sender address  (Read 6146 times)

Offline Jin597

  • Newbie
  • *
  • Posts: 3
problems with sender address
« on: October 30, 2008, 10:45:50 PM »
When I send a message, the sender address is of the form:

user@mail.server.com

rather than   user@server.com

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?

Offline JabbaTek

  • Jr. Member
  • **
  • Posts: 20
problems with sender address
« Reply #1 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.

Offline Jin597

  • Newbie
  • *
  • Posts: 3
Hi JabbaTek
« Reply #2 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*

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
problems with sender address
« Reply #3 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.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline JabbaTek

  • Jr. Member
  • **
  • Posts: 20
problems with sender address
« Reply #4 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.

Offline stevekwok

  • Newbie
  • *
  • Posts: 1
problems with sender address
« Reply #5 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 "user@xyz.com"

$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 => user@mail.xyz.com as the email for sending email.

Regards,
Steve

Offline allgama

  • Newbie
  • *
  • Posts: 3
Solved the problem
« Reply #6 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

Offline Gildo Castro

  • Newbie
  • *
  • Posts: 1
Same problem
« Reply #7 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.

Offline animetal

  • Newbie
  • *
  • Posts: 5
problems with sender address
« Reply #8 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.