Applicable to:
- Plesk for Linux
Question
-
How to change the hostname in Postfix on the Plesk server?
-
How to change the SMTP banner in Postfix on the Plesk server?
Answer
-
Connect to your Plesk server via SSH.
-
For security reasons, create a backup file of the Postfix configuration file
main.cf
:# cp /etc/postfix/main.cf /etc/postfix/main.cf.bak
-
Open the
main.cf
file in a text editor. In this example, we are using vi editor:# vi /etc/postfix/main.cf
-
Add/modify the Postfix configuration parameters
myhostname
andsmtpd_banner
the following way:CONFIG_TEXT: myhostname = server.example.com
smtpd_banner = $myhostname ESMTP $mail_nameNote: Make sure that other
myhostname
andsmtpd_banner
parameters are disabled (have # at the beginning of the line). -
Save the changes and close the file.
-
Check Postfix configuration syntax:
# postfix check
(empty output means syntax is OK) -
Restart Postfix service to apply the chnages:
# service postfix restart
Comments
1 comment
Hi Kuzma Ivanov,
Plesk still lacks KB articles regarding postfix. For example:
1. What are the keys in the pem file
2. Where is the path to access the dkim private key file is set, and can that file be replaced, and set with a key to open it
Please sign in to leave a comment.