バーチャルドメイン宛のメールを主サーバーメールで受ける
[root@falcon21 ~]# vi /etc/postfix/main.cf

164 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, a npachi.moe.hm

---------------------------

バーチャルホストのためのサーバー証明書certbot修正
[root@falcon21 ~]# /usr/local/certbot/certbot-auto certonly --webroot -w /home/anpachi/html -m webmaster@falcon21.space -d anpachi.moe.hm

WARNING: unable to check for updates.
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Cert not yet due for renewal

You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
(ref: /etc/letsencrypt/renewal/anpachi.moe.hm.conf)

What would you like to do?


1: Keep the existing certificate for now
2: Renew & replace the cert (limit ~5 per 7 days)


Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for anpachi.moe.hm
Using the webroot path /home/anpachi/html for all unmatched domains.
Waiting for verification...
Cleaning up challenges

IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/anpachi.moe.hm/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/anpachi.moe.hm/privkey.pem
Your cert will expire on 2018-07-30. To obtain a new or tweaked
version of this certificate in the future, simply run certbot-auto
again. To non-interactively renew *all* of your certificates, run
"certbot-auto renew"
- If you like Certbot, please consider supporting our work by:

Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le

*************************************************************
[root@falcon21 ~]# systemctl restart postfix

***********************************************************

投票数:1 平均点:10.00

 
Back to Top