postfix virtual

postfix の virtual 設定を外す
[root@falcon21 ~]# vi /etc/postfix/virtual

691 #virtual_alias_domains = anpachi.moe.hm            //コメント化
692 #virtual_alias_maps = hash:/etc/postfix/virtual        //コメント化


//最終行へ追加した設定を削除
anpachi.moe.hm anything
@anpachi.moe.hm @falcon21.space

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

[root@falcon21 ~]# postmap /etc/postfix/virtual
postmap: warning: /etc/postfix/virtual: logical line must not start with whitespace: " ..."
postmap:警告:/ etc / postfix / virtual:論理行は空白で始まってはいけません: "..."

編集過程で最終行の先頭、# が削除されていたのを修正。
#           VIRTUAL(5)
******************************

バーチャルドメイン宛のメールを主サーバーメールで受ける。
[root@falcon21 ~]# vi /etc/postfix/main.cf
164 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, anpachi.mo e.hm


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

バーチャルホストのためのサーバー証明書certbot修正

[root@falcon21 ~]# /usr/local/certbot/certbot-auto certonly --webroot -w /home/anpachi/html -m webmaster@falcon21.space -d anpachi.moe.hm
/root/.local/share/letsencrypt/lib/python2.6/site-packages/cryptography/__init__.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop support for Python 2.6
DeprecationWarning
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Cert not yet due for renewal
/root/.local/share/letsencrypt/lib/python2.6/site-packages/cryptography/__init__.py:26:DeprecationWarning:Python 2.6チームはPythonコアチームによってサポートされなくなりました。Pythonをアップグレードしてください。 暗号の将来のバージョンでは、Python 2.6のサポートが廃止される予定です
非推奨警告
/var/log/letsencrypt/letsencrypt.logにデバッグログを保存する
まだ更新されていない証明書

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)
証明書を更新し、交換する(7日間?5日以内)
-------------------------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Renewing an existing certificate
/root/.local/share/letsencrypt/lib/python2.6/site-packages/acme/jose/jwa.py:110: DeprecationWarning: signer and verifier have been deprecated. Please use sign and verify instead.
signer = key.signer(self.padding, self.hash)
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
適切な番号[1-2]を選択して[enter](キャンセルするには 'c'を押します):2
既存の証明書を更新する
/root/.local/share/letsencrypt/lib/python2.6/site-packages/acme/jose/jwa.py:110:DeprecationWarning:署名者と検証者は廃止されました。 代わりに標識を使用して確認してください。
署名者= key.signer(self.padding、self.hash)
次の課題を実行します。
anpachi.moe.hmのhttp-01チャレンジ
一致しないすべてのドメインに/ home / anpachi / htmlというWebルートパスを使用する。
確認を待っています...
課題を解決する

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 2017-11-10. 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:
重要なメモ:
- おめでとう! 証明書とチェーンは以下の場所に保存されています:
/etc/letsencrypt/live/anpachi.moe.hm/fullchain.pem
あなたのキーファイルは以下の場所に保存されています:
/etc/letsencrypt/live/anpachi.moe.hm/privkey.pem

あなたの証明書は2017-11-10に期限が切れます。 新しい、または微調整された
将来この証明書のバージョンを取得するには、certbot-autoを実行するだけです
再び。 非対話的に*すべての証明書を更新するには、

"certbot-auto renew"
- Certbotが好きな人は、

Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
ISRGに寄付/暗号化しよう:https://letsencrypt.org/donate
EFFへの寄付:https://eff.org/donate-le
 


[root@falcon21 ~]# /etc/rc.d/init.d/postfix restart
postfix を停止中: [ OK ]
postfix を起動中: [ OK ]

投票数:5 平均点:10.00

 
Back to Top