Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Installing Plesk fails with error: postconf: warning: valid_hostname: numeric hostname: 212

 
autoinstallerclidomain namegohttps

Symptoms

  • When using the Plesk installer script on a fresh server, it fails with:

    postconf: warning: valid_hostname: numeric hostname: 212postconf: fatal: unable to use my own hostnamepostconf: warning: valid_hostname: numeric hostname: 212postconf: fatal: unable to use my own hostnamedpkg: error processing package postfix (--configure):installed postfix package post-installation script subprocess returned error exit status 1Errors were encountered while processing:postfixneedrestart is being skipped since dpkg has failedE: Sub-process /usr/bin/dpkg returned an error code (1)


    Setting up postfix (3.4.13-0ubuntu1.4) ...

    Postfix (main.cf) configuration was untouched. If you need to make changes, edit /etc/postfix/main.cf (and others) as needed. To view Postfix configuration values, see postconf(1).

    After modifying main.cf, be sure to run 'systemctl reload postfix'.

    Running newaliases
    newaliases: warning: valid_hostname: numeric hostname: 203.0.113.2
    newaliases: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: 203.0.113.2
    dpkg: error processing package postfix (--configure):
    installed postfix package post-installation script subprocess returned error exit status 75
    ..........
    Errors were encountered while processing:
    postfix
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Launching component and product checkers...
    Downloading file report-update: 100% was finished.
    Downloading file pool/PSA_18.0.62_14908/examiners/py_launcher.sh: 100% was finished.

    ERROR: An error occurred on attempt to install packages.
    Attention! Your software might be inoperable.
    Visit https://support.plesk.com/ to search for a solution.

Cause

The system hostname only cointains numbers, or ends with numbers.

Resolution

Use valid characters for hostnames as ASCII(7) letters from a to z, and digits from 0 to 9; not numbers only. It is recommended to use a Fully Qualified Domain Name (FQDN) as the hostname. To change it apply one of the following solutions:

In Plesk interface
  1. Log in to Plesk
  2. Go to the menu Tools & Settings > Server Settings, specify the new hostname in the field Full hostname and click OK at the bottom of the page to apply the changes:
Via CLI (Linux only)
  1. Connect to the server via SSH.

  2. execute the following command with preferred hostname value instead of host.example.com:

    # plesk bin server_pref --update -hostname host.example.com

  3. Restart services sw-cp-server and sw-engine:

    # systemctl restart sw-cp-server && systemctl restart sw-engine

It may be also necessary to change parameters myhostname and mydestination in /etc/postfix/main.cf, move out/remove /var/parallels/autoinstaller-installation-failure.flag and run plesk repair installation in case Plesk Installer thinks that Plesk is already installed.

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

How to Host a Go App on Plesk

Read More »

SSL Certificates and Web Security – A Guide

Read More »

Configuring DNS For A Domain With Plesk

Read More »
Knowledge Base

 How to change or get the server hostname on Plesk server

Read More »

 An operation fails in Plesk: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘X’ for key ‘PRIMARY’

Read More »

Emails are not forwarded to the mailbox in Plesk: Permission denied postdrop

Read More »

How to provide Plesk Support with server access?

Read More »

Hosting Wiki

  • Django
  • CLI
  • DBMS Interface
  • Server Redundancy
  • Postfix
  • Linux Containers
  • Google Cloud CDN
  • AMP
  • Bare Metal Server
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • MongoDB
  • Domain
  • Plesk
  • Web Server
  • DNS Server
  • SSH
  • HTTP
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family