Hi,
I’m pretty new to Virtualmin, so bear with me.
Last week we move from a Plesk server to a Virtualmin server. Now i get bouncing mails saying:
550 5.7.0 HELO s3.localdomain from RFC2606 reserved domain #427
or
Sorry, your helo has been denied. 550 5.7.1
which i think have the same cause. When i run the postconf command, i see
mydomain = localdomain
myhostname = ns2.localdomain
I assume this is wrong and localdomain should be my domain name?
How can i change this?
command hostname : ns2
command hostname -f : ns2.sibben.nl
/etc/hosts
127.0.0.1 localhost
78.46.90.76 ns2.sibben.nl ns2
Eric
July 12, 2011, 2:34pm
2
Howdy,
So what’s bouncing exactly… mail being sent to your server?
Or mail being sent from your server to other servers?
Also, if you go into System Settings and run Re-Check Config, does it notice anything out of the ordinary?
-Eric
Howdy,
I mean mails sent from our server to others servers sometimes bounce.
Re-Check Config sais everything is fine.
-Fré
Eric
July 14, 2011, 2:29pm
4
Howdy,
Yeah, you may be right then. You may want to try setting “mydomain” to your server’s domain name, and “myhostname” to your full hostname.
After you do that, restart Postfix, and see if that works for you.
-Eric
Eric, how and/or where can i set this?
Eric
July 14, 2011, 5:23pm
6
Howdy,
Those are settings in your /etc/postfix/main.cf file. When you run “postconf”, the values it has come from that file.
-Eric
Ok, already figured that out and it works.
is this a bug? Shouldn’t postfix find this out by using gethostname()?
Thanks
Eric
July 14, 2011, 5:37pm
8
If those values are unset, Postfix should attempt to automatically determine what those setting should be. However, if they’re set – the settings override the existing hostname of your server.
Virtualmin doesn’t set those values – if you found them set in your main.cf file, that may mean your provider set them for you when creating your OS image.
-Eric