Problems with bouncing mail

8 posts / 0 new
Last post
#1 Tue, 07/12/2011 - 08:04
harmstra

Problems with bouncing mail

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

Tue, 07/12/2011 - 09:34
andreychek

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

Thu, 07/14/2011 - 05:02 (Reply to #2)
harmstra

Howdy, I mean mails sent from our server to others servers sometimes bounce.

Re-Check Config sais everything is fine.

-Fré

Thu, 07/14/2011 - 09:29
andreychek

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

Thu, 07/14/2011 - 11:14
harmstra

Eric, how and/or where can i set this?

Thu, 07/14/2011 - 12:23
andreychek

Howdy,

Those are settings in your /etc/postfix/main.cf file. When you run "postconf", the values it has come from that file.

-Eric

Thu, 07/14/2011 - 12:31
harmstra

Ok, already figured that out and it works.

is this a bug? Shouldn't postfix find this out by using gethostname()?

Thanks

Thu, 07/14/2011 - 12:37
andreychek

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

Topic locked