Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-21-2013, 10:49 PM   #1
Registered: May 2013
Location: Bronx, New York
Posts: 40

Rep: Reputation: Disabled
E-mail sends as user@localhost.domainname


I have a dev server set up and this is what I was able to set up so far and have working:


When I send a e-mail to someone, my e-mail address shows up as user@localhost.dominename

I would like it to show up as user@domainname

I have postfix set up to use the system users and not users in a file or database for post fix. Could this be the reason? I have checked /etc/hosts and that seems fine. Not sure what else to do and I have been looking in google for a few days now and tried different things but nothing.

Thank you for any and all help!!!
Old 07-22-2013, 03:59 PM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,220

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
Edit /etc/postfix/ (after making a backup copy, of course)
masquerade_domains =
Then restart postfix. This will change to
Old 07-22-2013, 06:32 PM   #3
Registered: May 2013
Location: Bronx, New York
Posts: 40

Original Poster
Rep: Reputation: Disabled

This has worked! Thank you so much for your help!!!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mail received at sendmail has relay=localhost [[UNIX: localhost]] check_rcpt fails chingupt Linux - Distributions 3 04-25-2013 05:36 PM
Evolution mail with Exchange server only sends mail.(don't recieve/download) knockout_artist Linux - Newbie 5 05-03-2012 03:42 PM
sendmail server just sends mail from localhost reneve59 Linux - Server 3 09-21-2007 09:32 PM
Mutt sends mail as root <> FatOldSun Linux - Software 1 08-17-2005 04:56 AM
postfix sends mail t X but not to Y? tethysgods Linux - Networking 4 09-09-2004 12:12 PM

All times are GMT -5. The time now is 06:04 AM.

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