Warning: Undefined array key "cperpage" in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 134

Warning: Undefined variable $output in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 204

Warning: Undefined variable $fixed_tag in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 205

Warning: Undefined variable $showfullstop in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 206

Warning: Undefined variable $m_tag in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 209

Warning: Undefined variable $m_tag in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 212

Warning: Undefined variable $m_tag in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 215

Warning: Undefined variable $post in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 224

Warning: Attempt to read property "ID" on null in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 224

Warning: Undefined variable $post in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 224

Warning: Attempt to read property "ID" on null in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 224

Warning: Undefined variable $m_link_title in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/functions.php on line 224
メールサーバ移行に関しての覚書き(qmailからpostfix + qmail) | じゃみじゃみ.net
じゃみじゃみ.net

先日、社内のメールサーバ移行を行いました。
次の移行はいつになるか分からないが、覚書きをしておこう。


まず、事前にやっておいたこと。

 ○ドメイン登録+メールボックスの容量制限

 ○全アカウントを事前登録

 ○移行後用の設定ファイル作成(main.cf、virtualdomains、rcpthosts、smtproutes)

 ○旧サーバのメールボックスをNFSにて新サーバで簡単に操作できるようにする

 ○メールコピーのシェル作成


ぐらいでしょうか。


次に、移行当日の作業。
旧サーバのMTAはqmail、新サーバのMTAはpostfix(内部配送でqmail)です。
 ※■:旧サーバ、△:新サーバ、◎:ネームサーバ

 ■旧サーバの qmail 停止

 ■virtualdomains に移行後用の設定ファイルを上書き(移行アカウントをコメントアウト)

 ■smtproutes に移行後用の設定ファイルを上書き( .hoge.co.jp : [新サーバIP or サーバ名])
  → 旧サーバの hoge.co.jp ドメインの全てのメールアドレスにメールが届いた場合に、新サーバに転送
  → rcpthosts はコメントアウトせず、そのまま

 △新サーバの postfix、qmail 停止

 ◎DNS の切り替え(あ、ネームサーバ持ちです。TTL自在です。)

 ◎named リロード

 ◎cmd から該当ドメインが新サーバのIPに変更されているか、ゾーンファイルのシリアルが変更されているか確認

 △virtualdomains、rcpthosts に移行後用の設定ファイルを上書き

 △main.cf に移行後用の設定ファイルを上書き(ドメインをカンマ区切りで追加)

 △旧サーバから新サーバへメールのコピー(シェル)

 △postfix、qmail の起動

 ■qmail の起動

メール送受信のテストを行って終了。


以上で終了!



トラックバック

コメントをどうぞ


Warning: Undefined variable $user_ID in /home/c0488491/public_html/blog.jamijami.net/wp-content/themes/eureka/comments.php on line 83

Proudly powered by WordPress. EureKa theme designer denied.
Copyright © じゃみじゃみ.net. All rights reserved. Theme Provided By Web Resources