サーバー管理

diffで空行と改行コードを無視する方法

2011年12月9日 金曜日

Apache Killer対策のピンポイント対策方法を発見

2011年9月5日 月曜日

MacでPostfixを使用してメールを飛ばす場合

2011年8月7日 日曜日

ユーザを指定したグループに追加したい場合

2011年7月6日 水曜日

404をhttpd.confで記述する場合

2011年7月4日 月曜日

中間証明書の問題でSSLがエラーになる時がある

2011年6月8日 水曜日

vmware server1台でコマンドからゲストOSを再起動

2011年3月24日 木曜日

CentOS5でRuby on Railsをインストール

2011年2月22日 火曜日

tarでバックアップする際、除外したいディレクトリがある場合

2011年2月16日 水曜日

.htaccessを利用して、ディレクトリをブラウザから閲覧不可にする方法

2011年2月3日 木曜日

DNSのTXTレコードでSPFを設定する

2010年10月13日 水曜日

サーバ移転でDNS浸透待ちをせずに即動作確認する方法

2010年8月31日 火曜日

.tar.bz2の解凍方法

2010年8月11日 水曜日

FTPでファイルをアップしたら時刻が大きくずれた時

2010年8月4日 水曜日

Serversmanのsaslauthd起動に関して

2010年7月2日 金曜日

.htaccessを利用して特定のうざいIPを排除したい場合

2010年6月28日 月曜日

OpenSSLで証明書発行

2010年6月23日 水曜日

SSLでmod_rewriteが効かない時、あるいはZend Frameworkなどのフレームワークが動かない時

2010年6月11日 金曜日

メールアドレスの接続確認をtelnetで行う方法

2010年6月8日 火曜日

[root@localhost test]# telnet 999.999.999 110
Trying 999.999.999.999…
Connected to 999.999.999.999 (999.999.999).
Escape character is ‘^]’.
+OK Dovecot ready.
USER test@example.com
+OK
PASS passworddesu
+OK Logged in.

終了なら
QUIT
+OK Logging out.
Connection closed by foreign host.

-->

postfixadminでメールの保存先

2010年6月8日 火曜日

postfixadminを設置したディレクトリ上の
config.inc.php
で、

// Mailboxes
// If you want to store the mailboxes per domain set this to ‘YES’.
// Examples:
// YES: /usr/local/virtual/domain.tld/username@domain.tld
// NO: /usr/local/virtual/username@domain.tld
$CONF['domain_path'] = ‘YES’;
// If you don’t want to have the domain in your mailbox set this to ‘NO’.
// Examples:
// YES: /usr/local/virtual/domain.tld/username@domain.tld
// NO: /usr/local/virtual/domain.tld/username
// Note: If $CONF['domain_path'] is set to NO, this setting will be forced to YES.
$CONF['domain_in_mailbox'] = ‘YES’;

の項目を修正していけばいい。
$CONF['domain_path'] = ‘YES’;
をYESにするとドメイン名がディレクトリとして作成、Noなら作成されない。

$CONF['domain_in_mailbox'] = ‘YES’;
をYESにすると aiueo@example.comというようにドメインもついたメールアドレスのディレクトリ。
Noだと@より前(前述例だとaiueo)のみとなる。

-->