OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
all outgoing mail is written as userlocalhost.localdomain

From: Aaron Harwood (aharwoodcs.mu.oz.au)
Date: Mon Nov 21 2005 - 02:49:32 CST


Dear Postfix-users,

I've tried setting up postfix on a server, behind a netcomm router
that uses NAT. I'm running my own DNS server.

All outgoing mail from the server is written as

userlocalhost.localdomain

rather than

useraerosoul.com.au

For example, here is mail that I sent to myself on the machine:

[aharwoodhome ~]$ mail aharwoodaerosoul.com.au
Subject: adfa
asdfad
asdf
.
Cc:
[aharwoodhome ~]$ mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/spool/mail/aharwood": 1 message 1 new
>N 1 aharwoodlocalhost.l Mon Nov 21 19:37 19/770 "adfa"
& 1
Message 1:
>From aharwoodlocalhost.localdomain Mon Nov 21 19:37:49 2005
X-Original-To: aharwoodaerosoul.com.au
Delivered-To: aharwoodaerosoul.com.au
Date: Mon, 21 Nov 2005 19:37:49 +1100
From: Aaron Harwood <aharwoodlocalhost.localdomain>
To: aharwoodaerosoul.com.au
Subject: adfa

asdfad
asdf

& q
Saved 1 message in mbox
[aharwoodhome ~]$

I can't seem to make it put the proper origin on the return address.
Among other things, I have this in my main.cf:

myhostname = home.aerosoul.com.au
mydomain = aerosoul.com.au
myorigin = $mydomain
proxy_interfaces = 210.15.217.001 # this is the external IP address
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
        mail.$mydomain, www.$mydomain, ftp.$mydomain home.$mydomain
mynetworks = 192.168.1.0/24, 192.168.0.0/24, 127.0.0.0/8
relay_domains =

Anyone out there that can help?

--Aaron