LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Postfix $myorigin issues (https://www.linuxquestions.org/questions/linux-software-2/postfix-%24myorigin-issues-333434/)

clickster 06-14-2005 08:23 AM

Postfix $myorigin issues
 
I have:

myorigin = $mydomain

But instead of mail showing up as coming from user@mydomain.com, it shows up as user@localhost.mydomain.com. The $myhostname parameter is set to a different hostname.domain.com, but my server's hostname (outside of Postfix) is localhost.localdomain. This box is behind a router that is simply doing port forwarding to the NATed mail server.

Any help would be greatly appreciated. I am somewhat new to Postfix.

trickykid 06-14-2005 08:33 AM

What is the value given for $mydomain in your config file?

And how are you sending emails out? You know you can change your outgoing mail address in the client you use to send mail..

clickster 06-14-2005 08:46 AM

$mydomain = domain.com

I am logged onto the server using squirrelmail. I haven't set it up on a software client yet.

Once you mentioned that, it hit me that it might be squirrelmail causing the problems, so I took a look at the config.php, and this section stood out:


$domain = 'localhost';
$imapServerAddress = 'localhost';
$imapPort = 143;
$useSendmail = true;
$smtpServerAddress = 'localhost';
$smtpPort = 25;

Is that where the problem is at? If so, what should I change it to? it doesn't say localhost.domain.com, it just says localhost. Should I just leave those as empty ticks on the $domain line?

clickster 06-14-2005 09:45 AM

OK. I removed the $domain 'localhost' entry and just left it as ''
Then it wouldn't send mail at all. So I just changed localhost to domain.com (for my domain) and it works perfectly now. Thank you for your help trickykid.


All times are GMT -5. The time now is 04:54 PM.