Page 1 of 1
mail is added to domainname.com
Posted: Tue Jan 03, 2006 8:36 pm
by Neonblue
I've recently become aware that my server on one of my domains (the primary one that I set up in scalix) is setting the return address to
myname@mail.domain.com instead of
myname@domain.com. I looked in the admin interface and can't see where this is set...?
Posted: Tue Jan 03, 2006 9:01 pm
by ScalixSupport
Hi. The From: field is derived from the first Internet address listed in either SAC or from an omshowu. So, for example, if an omshowu shows the following:
Internet Address : "Test User" <test.user@mail.domain.com>="Test User" <test.user@domain.com>
then the From: field will be: Test User <test.user@mail.domain.com>
If you switch those around in SAC, then the second address will be used.
Thanks,
Rachel
Re: mail is added to domainname.com
Posted: Wed Jan 04, 2006 7:57 am
by ScalixSupport
Neonblue wrote:I've recently become aware that my server on one of my domains (the primary one that I set up in scalix) is setting the return address to
myname@mail.domain.com instead of
myname@domain.com. I looked in the admin interface and can't see where this is set...?
This also happens when your /etc/mail/local-host-names is empty or does not list your domain.
http://www.faqs.org/docs/securing/chap22sec180.html
and /etc/mail/local-host-names
In short, if a line for your domain is missing in this file, the outgoing hostname is used.
Cheers,
Sascha.
Posted: Thu Jan 05, 2006 12:15 pm
by Neonblue
I verified the local-host-names and both the domainname.com and mail.domainname.com are listed. The domainname.com is listed above the mail.domainname.com.
I also looked in the admin again just to be sure, and I don't see anywhere where the "mail" is listed before the domainname in the config.
Any more ideas?
Posted: Thu Jan 05, 2006 9:50 pm
by ScalixSupport
Hi. Can you post the output from an omshowu of one of your users (see my message from Jan 03 above). The command would be:
omshowu -n "user name"
where "user name" is the name of a user. The specific line I'm looking for is the one that starts with:
Internet Address :
If you want the domain.com to the be the default name in the domainname dropdown, edit:
/etc/opt/scalix/caa/scalix.res/config/ubermanager.properties and search for the line:
ubermanager.console.localDomains=
change that so it reads:
ubermanager.console.localDomains=domain.com,mail.domain.com
or if you never want to use mail.domain.com you can just leave that off. Once that's done restart tomcat.
Thanks,
Rachel
Posted: Fri Jan 06, 2006 12:41 am
by Neonblue
Got it. The etc/mail/local-host-names was the issue; I just didn't restart tomcat. I changes the order that was listed and put the mail.domainname.com at the bottom of the file.
Incidentally, I couldn't run the above command. It kept saying the user did not exist. I tried:
omshowu -n "sjohnson"
and
omshowu -n "sjohnson@domain.com"
The first one says the user doesn't exist and the second states "The name/mailnode contains invalid characters" I assume that it's because of the @.
Thanks for all your help!
Posted: Fri Jan 06, 2006 1:30 pm
by ScalixSupport
Hi. The "-n" parameter would be the name of the user, so if the person's name is "sam johnson", you would type:
omshowu -n "sam johnson"
you can get more details on the usage of omshowu from the manpage (i.e. man omshowu).
Thanks,
Rachel