Articles in this section

How to change the IP address for outgoing emails in Plesk for Linux with Postfix mail server

kb: how-to Plesk for Linux

Applicable to:

  • Plesk for Linux

Question

How to change the IP address for outgoing emails in Plesk for Linux with Postfix mail server?

How to change outbound mail IP address for Postfix, if the primary IP address is blacklisted and mail is not going out?

Answer

Plesk interface
  1. Log in to Plesk.
  2. Go to Tools & Settings > Mail Server Settings.
  3. Set outgoing mail mode to Send from the specified IP addresses.
  4. In the drop-down menu, select the IP address that will be used for sending mail.

    Note: Once this mode is selected, Plesk updates the A record of the hostname that the domain's MX record points to. Before proceeding, it is best to verify your MX record configuration.

  5. Apply the changes.

     

    Screenshot_2020-04-01_Plesk_Obsidian_18_0_25.png
Command-line interface
  1. Connect to your Plesk server via SSH.
  2. Run the command:

    # plesk bin site -u example.com -mail-service-ip 203.0.113.2

    where

    • example.com - domain name
    • 203.0.113.2 - IP address that will be used for mail of a domain
Was this article helpful?

Comments

1 comment
Date Votes
  • Changing to a different IP address broke the mail and all websites on the dedicated server.

    This function is probably fully tested.

    Maybe someone will answer why everything stops working normally.

    0

Please sign in to leave a comment.