LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-01-2010, 05:05 AM   #1
forudal
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Rep: Reputation: 0
user@host.domain instead user@domain


Hi,

I installed mail server using postfix dovecot spamassassin squirrelmail;. I can able to send and receive the mails. But my mail id is showing as username@hostname.domain name instead of username@domainname.
Example:
username:test
hostname:mailserver
domainname: xyz.com
then the mail id shold be test@xyz.com
but for me it showing as test@mailserver.uceou.edu......

here is my postfix configuration details..
/etc/postfix/main.cf
________________________________________________________________________
myhostname = mailserver.xyz.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $mydomain, $myhostname, localhost.$mydomain,localhost xyz.com
local_recipient_maps = unixasswd.byname $alias_maps
mynetworks_style = host

________________________________________________________________________
here is my /etc/hosts file
________________________________________________________________________

127.0.0.1 mailserver mailserver localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
________________________________________________________________________


With the above configuration i was able to send and receive the mails..




Thanks in advance.
 
Old 07-01-2010, 05:19 AM   #2
Blue_Ice
Member
 
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 361

Rep: Reputation: Disabled
Add an MX record to your DNS server.

Example (for bind):
Code:
domain MX 10 host.domain
 
Old 07-01-2010, 06:01 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
If you want to rewrite mailserver.xyz.com to just xyz.com, you have to use masquerade_domains:
Code:
masquerade_domains = xyz.com
in main.cf
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give Domain Administrator privileges to Root user in Domain Controller Sumitsm Linux - Newbie 12 08-24-2009 12:53 AM
redirect user.domain.com to www.domain.com/user macadam Linux - Newbie 2 05-15-2008 01:07 PM
DHCPD is updating BIND with <host>.<domain>.<domain>. diabelek Linux - Networking 15 10-11-2007 05:58 AM
Joined Domain, can't login as domain user mikeyt_333 Linux - Networking 12 08-26-2005 08:25 AM
Change user@host.domain to user@domain Wynand1 Linux - Networking 7 09-13-2004 11:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration