• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Change host name?

Pleskie

Regular Pleskian
Hello. I rent a VPS at STRATO.

When I send someone a mail (from the server) quite often it ends up in the spam folder.

The source of my mail says something like:

Received: from my.domain.com (h1234567.stratoserver.net. [80.123.456.789])

Is there a way to change "h1234567.stratoserver.net" into "my.domain.com"?

Maybe this will help to stop my mails from getting into the spam folder.
 
Hi Pleskie,

first, pls. make sure, that your domain has an "A" entry on the nameserver from your domain - provider, pointing to your desired "servername.domain.com" and resolving to your IP (if you changed it, consider to wait at least 24-48 hours, to be sure that all worlwide nameservers are synched).

Second, pls. make sure, that the reverse entry over the Strato Control has the ability to change the reverse dns entry for your IP to your desired hostname ( some hosting providers charge an extra monthly amount for that option and I don't know about your terms and condition of your server - hosting contract ). IF, for any reason, you don't have the option to change the reverse entry, consider NOT to change the hostname, because you might experience issues/problems/errors, if the reverse IP doesn't resolve to your desired hostname!

Third, check now with for example:


... if all resolves to the expected IP/hostname.


Fourth, If all above is done, you can now continue to switch over to your Plesk Control Panel ( => Home > Tools & Settings > Server Settings ), where you are able to change the hostname. Plesk will as well try to modify depending configuration files and you should just control the changes:

Example command to check for OLD hostname settings over the command line at "/etc":

grep -r "h1234567.stratoserver.net" /etc
 
Thanks UFHH01 for your nice answer.

I tried a few things but still no solution ... and I found out something really strange.

I will inform STRATO about "reverse dns entry for your IP to your desired hostname" but as far as I know the VPS is "as is" and they don't do any configuration.

I tried to add the STRATO hostname to my spf-record by adding "a:h12345.stratoserver.net" however this didn't change anything. I actually don't think that spf is the problem, because the source of my mail messages says that spf-test passed. So i don't think that that is the problem.

Now here comes the strange thing ... and believe me ... I think it is really strange. There is one situation that all mail ends up in the inbox like it is supposed to. Do you know when? When I set my From address and return-path to the mail address that I used to register my domain (as administrative and technical contact). When I use that mail address (something like [email protected]) all mail ends up in the inbox as supposed to, but whenever I try any other name, for example [email protected], [email protected], [email protected] and so on, it ends up in the spam folder.

How can this be? It seems like the spam filter checks the administrative or technical contact, notices the match and declares the mail as legit. But with any other name it is marked as spam. How can this be? I think this is so strange! By the way ... it's a new VPS, there isn't a live website on my server yet and I'm the only one with access. So it's impossible that it's on a blacklist.

The only thing that makes the difference between spam or no-spam is the name I use to send the mail. [email protected] => to inbox. Any other name: spam.

Any ideas about what is going on? Every thought/idea is welcome ...
 
Back
Top