Link to home
Start Free TrialLog in
Avatar of Goutham
GouthamFlag for India

asked on

Linux Mailserver POSTFIX as MTA

Dear Sir/Madam:

I have mail server in redhat enterprsie linux POSTFIX as an MTA and dovecot imap,  for the web access iam using squirrelmail but when the mail is sent from the squirrelmail users are receiving as username.localhost.domainname.com
1, please tell me how to make only as username.domainname.com
2, in the webmail (squirrelmail)sent folder i can see username.localhost.com
please tell me in this.







Avatar of fosiul01
fosiul01
Flag of United Kingdom of Great Britain and Northern Ireland image

whats in your /etc/hosts file ??

it should be   domain.com

127.0.0.1  yourdomain.com  localhost localhost.localdomain
Avatar of Goutham

ASKER

sir , i just changed it to

127.0.0.1 mail.domainname.com  mail localhost.localdomain localhost

please tell me is this correct or should i change it.
ok if your mx record say primary mailserver is mail.domainname.com

then its seems right.
Avatar of Goutham

ASKER

also after this change when the mail is sent from the webmail(squirrelmail) still the users receive as username.localhost.domainname.com , please help me to solve this .
ASKER CERTIFIED SOLUTION
Avatar of fosiul01
fosiul01
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
check thsi one

http://www.nabble.com/SM-Appends-the-Wrong-Domain-td19442861.html

as i said, you will have to check server configuration for squirrelmail.
Avatar of David Beveridge
In SquirrelMail, goto

Options -> Personal Information

set the email address and Users Full name in there.

Also, if the users login with their email address as their username, then is will be set correctly from the start.
But this depends on who you setup the authentication.