UJP - dovecotのデータ移行考察 その3 MacOS X 10.6 Snow Leopardのメール転送設定の保管場所

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

  • カテゴリ サイト構築 の最新配信
  • RSS
  • RDF
  • ATOM

ブログ - dovecotのデータ移行考察 その3 MacOS X 10.6 Snow Leopardのメール転送設定の保管場所

dovecotのデータ移行考察 その3 MacOS X 10.6 Snow Leopardのメール転送設定の保管場所

カテゴリ : 
サイト構築
ブロガー : 
ujpblog 2016/8/23 1:18
 振り返ると,Appleが一番力を入れていたのが,Snow Leopardの頃だった.サーバも5万円出して買ったし.でも,いまは1800円でServer.Appを買えば良い.そもそも本来はそれすら入らないのだけれど.
 愚痴は置いといて,MacOS X 10.6のメールサーバはPostfixですが,これでワークグループマネージャを使ってメール転送設定をしているとき,その設定がいくら探しても見つからない.
 メール関連の設定は,メーリングリストのmailmanも含めてコマンド1つで全部リストされる.
serveradmin settings mail
 しかしこの中にもなくて,実はディレクトリサービスの中に設定が入っています.
 dsclコマンドで,たとえばこの例の場合はmというユーザの詳細情報を表示させます.
dscl . -read /Users/m
 すると,次のような感じでリストされます.
sh-3.2# dscl . -read /Users/m
AppleMetaNodeLocation: /Local/Default
AuthenticationAuthority: ;ShadowHash; ;Kerberosv5;;m@LKDC:SHA1.CCDA1E6B1D1523045B;LKDC:SHA1.CCDA1EB55EE9A09CC9D1523045B;
Comment: ujp.jp@docomo.ne.jpへ転送するためのもの.
FirstName: m
GeneratedUID: BD96-B6D5F22545-8924DFA5-1133-4546-CE
MailAttribute:
 <?xml version="1.0" encoding="UTF-8"?>
<dict>
       	<key>kAPOPRequired</key>
       	<string>APOPNotRequired</string>
       	<key>kAltMailStoreLoc</key>
       	<string></string>
       	<key>kAttributeVersion</key>
       	<string>Apple Mail 1.0</string>
       	<key>kAutoForwardValue</key>🈁
       	<string>tensosaki@mailserverx.jp</string>🈁
       	<key>kIMAPLoginState</key>
       	<string>IMAPAllowed</string>
       	<key>kMailAccountLocation</key>
       	<string>mercury</string>
       	<key>kMailAccountState</key>
       	<string>Forward</string>
       	<key>kPOP3LoginState</key>
       	<string>POP3Allowed</string>
       	<key>kUserDiskQuota</key>
       	<string>0</string>
</dict>

MCXFlags:
 <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com
/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
       	<key>simultaneous_login_enabled</key>
       	<false/>
</dict>
</plist>

Password: ********
PrimaryGroupID: 20
RealName: m
RecordName: m
RecordType: dsRecTypeStandard:Users
UniqueID: 515
UserShell: /bin/bash
sh-3.2#
 kAutoForwardValueキーで拾えるようです.これを全部拾いだすのは面倒だなぁ.

トラックバック


広告スペース
Google