LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Postfix - Sender address includes localhost (https://www.linuxquestions.org/questions/linux-software-2/postfix-sender-address-includes-localhost-319974/)

buskmann 05-04-2005 05:06 AM

Postfix - Sender address includes localhost
 
I have a toplevel domain hosted by myself. Receiving mail works fine.

However, every mail I send gets a sender with domain like @localhost.domain.com, instead of @domain.com. I am not able to point out where in /etc/postfix/main.cf the configuration is done.

Some of main.cf:
Code:

mydomain = domain.com
myorigin = $mydomain
myhostname = xxx.studby.ntnu.no    # Statically assigned from my ISP
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

Is this the correct setup?

linuxxed 05-04-2005 07:56 AM

Re: Postfix - Sender address includes localhost
 
Quote:

Originally posted by buskmann
I have a toplevel domain hosted by myself. Receiving mail works fine.

However, every mail I send gets a sender with domain like @localhost.domain.com, instead of @domain.com. I am not able to point out where in /etc/postfix/main.cf the configuration is done.

Some of main.cf:
Code:

mydomain = domain.com
myorigin = $mydomain
myhostname = xxx.studby.ntnu.no    # Statically assigned from my ISP
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

Is this the correct setup?

You have to use "masquerade_domains" in your main.cf file.


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