https://gist.github.com/raw/4140449/PS%20Vita
http://gamegaz.com/2013010310456/
2013年1月7日月曜日
2013年1月5日土曜日
digコマンドを理解する
* usage
dig [@server] domain [query-type]
* query-type
a (Aレコード) any (任意の情報) mx (MXレコード) ns (NSレコード) soa (SOAレコード) hinfo (HINFOレコード) axfr (ゾーン転送) txt (TXTレコード)
* status
NOERROR (正常) NXDOMAIN (ドメインは存在しない) SERVFAIL (サーバの応答エラー)
* flags
qr (クエリの回答) aa (権威ある回答) tc (TCPフォールバック) ra (フルサービスリゾルバ) rd (再帰要求,+norecオプションで消える)
参考リンク
http://d.hatena.ne.jp/japanrock_pg/20090410/1239355230
http://www.syon.co.jp/syontech/tech002.html
2013年1月3日木曜日
2013年1月2日水曜日
postfix & dovecotを特定ユーザのみログイン可能にする
/etc/pam.d/dovecot
/etc/pam.d/smtp(無かったら作る)
を以下のの内容にした
hogeuserのみログインを許す設定
#%PAM-1.0 @include common-auth account required pam_succeed_if.so user = hogeuser @include common-account @include common-session
設定を変更したら再起動を忘れずに
/etc/init.d/saslauthd restart
その他pamモジュールの詳しい使い方は
man pam_listfile
みたいにする
あとログを見ればpamで使うサービス名を特定できた
参考リンク
http://wiki.debian.org/PostfixAndSASL
http://d.hatena.ne.jp/hiro-ueda/20090901/1251811629
http://www.usupi.org/sysad/105.html
http://www.usupi.org/sysad/106.html
apacheのログをsyslogにも出す
CustomLog ${APACHE_LOG_DIR}/access.log combined
CustomLog "|/usr/bin/logger -p local6.info --" combined
参考リンク
http://d.hatena.ne.jp/oratta/20101121/1290341166
postfixでバーチャルドメイン
postfixでバーチャルドメイン
参考リンク
http://tmtm.org/postfix/tutorial/virtual.html
http://bitwalker.dtiblog.com/blog-entry-151.html
参考リンク
http://tmtm.org/postfix/tutorial/virtual.html
http://bitwalker.dtiblog.com/blog-entry-151.html
smtp-authの設定(Postfix)
1. saslインストール
aptでsasl2-binを入れる
2. postfixの設定(main.cf)
#mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 smtpd_sasl_auth_enable = yes smtpd_sasl_path = smtpd smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destinationmynetworksからはauth無しで許可する場合はコメント外してもOK
3. postfixの設定(master.cf)
ポイントはchrootをnにすること
しないとsocketを見つけられないのでエラーになる
submission inet n - n - - smtpd -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject
4.グループへ参加
adduser postfix sasl
5. smtpd.conf追加
sasl/smtpd.conf
pwcheck_method: saslauthd mech_list: plain login
参考リンク
http://www.docunext.com/wiki/Postfix#Postfix_and_SASL
http://www.uetyi.mydns.jp/wordpress/postfix-setting/entry-465.html
2012年12月27日木曜日
2012年12月24日月曜日
unboundのインストールと初期設定
1.インストール
普通にaptで入れる
2.初期設定
unbound.conf
3.レコード設定
本物のDNSに問い合わせないで無しで返してしまうので注意
4.ulimitの設定
warningsがうるさいなら
普通にaptで入れる
2.初期設定
unbound.conf
interface: 0.0.0.0 access-control: 192.168.0.0/24 allow
3.レコード設定
local-data: "hoge.net. IN A 192.168.0.4" local-data: "hoge.net. IN MX 10 hoge.net." local-data-ptr: "192.168.0.4 hoge.net."※ hoge.netのAレコードを設定してしまうと、hoge.netのMXレコードを
本物のDNSに問い合わせないで無しで返してしまうので注意
4.ulimitの設定
warningsがうるさいなら
ulimit -n 4140を/etc/init.d/unboundの頭の方に書いておくと良いんじゃないでしょうか?
2012年12月23日日曜日
Debianにpostfixadminをインストール
1.インストール
2.Webサーバ設定
/etc/postfixadminに設定ファイルがあるのでリンクを張る
今回はlighttpdで
3.初期セットアップ
http://yourdomain.com/postfixadmin/setup.php
にアクセスしてセットアップ
初期パスワードとadminアカウントを作成
4.その他の設定
/usr/share/doc/postfixadmin/DOCUMENTS
↑を読む
# apt-get install postfixadmin
2.Webサーバ設定
/etc/postfixadminに設定ファイルがあるのでリンクを張る
今回はlighttpdで
# ln -s /etc/postfixadmin/lighttpd.conf /etc/lighttpd/conf-enabled/60-postfixadmin.conf # /etc/init.d/lighttpd restart
3.初期セットアップ
http://yourdomain.com/postfixadmin/setup.php
にアクセスしてセットアップ
初期パスワードとadminアカウントを作成
4.その他の設定
/usr/share/doc/postfixadmin/DOCUMENTS
↑を読む
2012年12月21日金曜日
2012年12月19日水曜日
登録:
コメント (Atom)