You are not logged in.
Hi all
I am having problems sending mail to some email providers from my server, and I would guess the problem is that domain is not set correctly. When I look at the detailed information on received mail it says Received: from jupiter.localdomain.
'jupiter.localdomain' also shows up on 'Message-ID:' and 'Return-Path:'
If this might be the reason to why emails are having problems getting through, where can I change the 'localdomain' to my domain? I have searched in /etc but I cant find 'localdomain' text anywhere.
Greatful for help
//L
Offline
You can either set your full qualified domain name in /etc/hosts for localhost, or configure your MTA correctly. Which one are you using?
Offline
I am not familiar at all with MTA. Never used it.
In my hosts file I have:
127.0.0.1 jupiter.domain.se localhost
192.168.3.20 jupiter.domain.se jupiter
(not really domain.se, but for privacy reason I wrote that instead)
192.168.3.20 is only used internally against another server, but I have no clue if this affects the mail in any way.
In rc.conf I have:
HOSTNAME="jupiter"
If I understood install correctly HOSTNAME needs to match what I have in hosts file.
See anything wrong with this?
Offline
Okay, looks good. MTA is the mail transfer agent, maybe you have postfix?
If it's postfix, then edit /etc/postfix/main.cf
The most interesting lines are:
myhostname = jupiter.domain.se
mydomain = domain.se
myorigin = $mydomain
Perhaps this should be enough to send mail into the public (my ISP for example requires relaying through their mail gateway, that needs more config)
Offline
Yes, that is right, I use postfix
I changed what you said and now I get Message-ID: in detailed information about email with right domain but both “Received: from” and “Return-Path:” has jupiter.localdomain still. Any clue what to do to get those right to?
Offline
You could try doing an address rewrite with smtp_generic_maps. It's explained here: http://www.postfix.org/ADDRESS_REWRITIN … ml#generic
Offline
Okay, I will have a look at that
Thank you for your help teekay!
Offline