このチュートリアルに従うには、, you must first perform these requirements:

Then follow this five simple steps:
1. EasyESPをインストールします。

Note:The video tutorials are of the version of EasyESP that is installed in Debian 8 and can also be useful for this new version, but you must follow the updated textual tutorial.

コピー the following script ( click on the small image that appears at the top right of script ) そして ペースト その中に 一度だけ使用する「エリア’ 未満.
Between the quotation marks change The_URL_of_the_EasyESP_script with theEasyESP scriptURL received via email.
それから 選択する, コピー, ‘右クリック‘ PuTTYのウィンドウとヒットに ⤶入力してください to install EasyESP on your server.
When request コピー your License Key received via email, ‘右クリックto paste ( here you can’t see anything ) and hit ⤶入力してください .
Then hit to continue and hit ⤶入力してください .
When the script has finished the installation, the last line looks like this: EasyESP was successfully installed.

cd && wget -q --restrict-file-names=unix "The_URL_of_the_EasyESP_script" -O easyesp && chmod +x easyesp && ./easyesp
一度だけ使用する領域: * あなたがこのページを更新する場合は、このエリアにテキストが削除されます !

  Create a password for MySQL database
Generate a new password to be used for the administrative access to MySQL database with the pwgen utility. It helps you create secure passwords.
Run the following script, それから 選択する そして save the password on a text file.

pwgen -s 20 1

  Enter some data in the configuration file
コピー this script and ペースト it on the 一度だけ使用する「エリア’ below to change your_db_password そして alter (choose a word as user for an initial email address) with yours, 選択する all, コピー そして run.

echo db_passwd=your_db_password >> /my.cfg
echo admin_adds=alter >> /my.cfg
一度だけ使用する領域: * あなたがこのページを更新する場合は、このエリアにテキストが削除されます !

  Configure your server running:


2. Setup DNS records in Digital Ocean


then enter your domain name and click ‘Add Domain’. ( EX: withyourdomain.com )

Resume using PuTTy and run the following script:

cat /dns.cfg
The result looks like this:

Select all output result and ペースト in the 一度だけ使用する「エリア’ 未満.
Now 選択する the long string after the p= コピー そして ペースト to the line of mail._domainkey in place of: your-string-in-a-single-line in the 一度だけ使用する「エリア’ 未満.

一度だけ使用する領域: * あなたがこのページを更新する場合は、このエリアにテキストが削除されます !

You can コピー all records now and save them to the text file.
Thus, it also checks that the value of p= is a single line. ( no ‘Word Wrapselected in ‘Formaton your ‘Notepad’ )

At this point go back to Digital Ocean, click on your domain name and setup DNS records.


3. Create SSL certificates with Let’s Encrypt on your server


Run this to get the certificates for your domain:

Certbot can be configured to renew your SSL certificates automatically before they expire after every 90 days.

crontabファイルを開きます。 ランニング この:

sudo crontab -e
This will create a new cron job that will execute the letsencrypt-auto renew command every Monday at 2:30 am.
下矢印」を使用して開いたファイルの一番下に移動します’ .
コピー this line, それから ‘右クリック‘ それを貼り付け.
保存して終了: 押す Ctrlキー + バツ 保存する, 押し 確認とヒットへ ⤶入力してください 出る.

30 2 * * 1 certbot renew >> /var/log/le-renew.log
Configure by ランニング:


4. Create the first email account with Postfix Admin

Generate a new setup password with the pwgen utility. ( EX: Gb54ejK87r332svbqa7 )
Run the following script, それから 選択する そして save the password on a text file.

pwgen -s 20 1
Open up a web browser and visit your mail server at:
Enter the setup password you just created and generate a hash of that password.

コピー this script and ペースト it on the 一度だけ使用する「エリア’ below to change ...the long hash string here... with the generated hash, 選択する all, コピー そして run.

cat <<END >> /srv/postfixadmin/config.local.php
\$CONF['setup_password'] = '...the long hash string here...';
一度だけ使用する領域: * あなたがこのページを更新する場合は、このエリアにテキストが削除されます !

Then return to the setup page. You can now use the setup password you selected ( EX: Gb54ejK87r332svbqa7 ) in order to create an superadmin account. After that, you will never need this setup password again.

As email address use the ‘user for an initial email addresschosen at the beginning. ( EX: alter@withyourdomain.com )
As password create a login password ( EX: 4y77d3f453re3502613e ) そして save it to the text file.

You should close off access to HTTPS://alter.withyourdomain.com/postfixadmin/setup.php after having used it.
それから run この:

echo "<Files \"setup.php\">
deny from all
</Files>" > /srv/postfixadmin/public/.htaccess

Navigate to the main Postfix Admin login page:
Log in as the newly created administrator account. ( EX: alter@withyourdomain.com , 4y77d3f453re3502613e )
Choose the Domain List -> New Domain option in order to create the withyourdomain.com domain, and check Add default mail aliases.

Next navigate to Domain List -> Domain List and click on the name of your domain to view it. From that page you can then add mail users (Add mailbox) and aliases (Add alias).
Create a new mailbox for your domain ( EX: alter@withyourdomain.com , 4y77d3f453re3502613e, Alter )
Create another ( EX: bounce@withyourdomain.com )
5. Phpmyadmin

Only if you need of Phpmyadmin run this to install it:


  Finally you have your own SMTP Mail Server provider for sending unlimited emails via these SMTP settings:

SMTP settings
Host: alter.withyourdomain.com
港:   25           587           465
Username: alter@withyourdomain.com
Password: ステップで作成したパスワード 4

Access web interfaces via a web browser


► Access the Postfix Admin for adding mail users HTTPS://alter.withyourdomain.com/postfixadmin/
( EX: alter@withyourdomain.com , 4y77d3f453re3502613e )

► Access the Roundcube webmail user interface via HTTPS://alter.withyourdomain.com/roundcube/
Login with the credentials you created in step 4.
( EX: Username: alter@withyourdomain.com and Password: 4y77d3f453re3502613e )

► Now you can access the Phpmyadmin web interface via HTTPS://alter.withyourdomain.com/phpmyadmin/
Then enter mailadmin as user and the password you chose in in step 1.
( mailadmin, your_db_password )

What’s next?

Based on what you need to do, you can choose every one of these tutorials: