LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-15-2008, 11:51 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,902

Rep: Reputation: 73
POSTIX Sends Hostname in Email


I just stood up a super vanilla postfix email server. Right now I have
just a few lines modified in /etc/postfix/main.cf to get email working
however when I send email, it is received as the following:

X-Original-To: carlos
Delivered-To: car...@email.foo.com
To: car...@email.foo.com
Subject: Email Server is up!
Date: Tue, 15 Jan 2008 08:01:32 -0500 (EST)
From: r...@email.foo.com (root)

How and where would I adjust this so email is simply received as
normal like:

car...@foo.com rather car...@email.foo.com?

Is this in the main.cf?
 
Old 01-15-2008, 12:29 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
myhostname, mydomain and myorigin is probably what your looking for from the main.cf file.
 
Old 01-15-2008, 01:42 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,902

Original Poster
Rep: Reputation: 73
Quote:
Originally Posted by trickykid View Post
myhostname, mydomain and myorigin is probably what your looking for from the main.cf file.
I have the following line under "mydestination"

Code:
mydestination = $mydomain, $myhostname, localhost.$mydomain, localhost
Is that wrong? What should it read or is it out of order?
 
Old 01-15-2008, 01:48 PM   #4
edong23
Member
 
Registered: Apr 2005
Distribution: Slackware
Posts: 350

Rep: Reputation: 30
agreed. sounds like you didnt edit quite enough. there's lots of documentation.. but just look through the file.. it is easy enough.
 
Old 01-15-2008, 01:53 PM   #5
edong23
Member
 
Registered: Apr 2005
Distribution: Slackware
Posts: 350

Rep: Reputation: 30
hm.. i dont think that is the right place. what about mydomain?
 
Old 01-15-2008, 01:54 PM   #6
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,902

Original Poster
Rep: Reputation: 73
mydomain = foo.com

my orgin = $mydomain

Is this not the correct thing?

Last edited by carlosinfl; 01-15-2008 at 01:57 PM.
 
Old 01-15-2008, 02:13 PM   #7
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,902

Original Poster
Rep: Reputation: 73
Grrrr - obviously I am unable to spell "myorigin" correctly. Duh!

Thanks all. I got this now working.
 
  


Reply


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
My email server sends mails but does not receive hubergeek Linux - Networking 2 07-14-2010 08:27 AM
Sent Email dropped; invalid hostname; DSN Data format error; Swakoo Linux - General 9 01-31-2007 04:37 AM
hostname / email issue I_AM Linux - General 2 07-15-2005 11:39 AM
bugzilla sends email to UNKNOWN address linuxhelpme Linux - Software 1 07-23-2003 04:09 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM


All times are GMT -5. The time now is 09:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration