Google
 

メイン | 2007年02月 »

2007年01月27日

●postfixインストール

wget http://ftp.wl0.org/official/2.1/SRPMS/postfix-2.1.6-1.src.rpm
groupadd sjmudd
useradd sjmudd -g sjmudd
rpm -ivh postfix-2.1.6-1.src.rpm
cd /usr/src/redhat/SOURCES
chmod +x make-postfix.spec
POSTFIX_MYSQL_REDHAT=1 POSTFIX_MYSQL_QUERY=1 POSTFIX_TLS=1 POSTFIX_VDA=1 POSTFIX_SASL=2 ./make-postfix.spec
cd ../SPECS/

perl -pi -e "s#%define with_alt_prio 30#%define with_alt_prio 100#" postfix.spec

rpmbuild -bb postfix.spec
rpm -Uvh /usr/src/redhat/RPMS/i386/postfix-2.1.6-1.mysql.sasl2.rhel4.i386.rpm


続きを読む "postfixインストール"

2007年01月26日

●courier-imapインストール

tar jxf courier-authlib-0.57.tar.bz2
chown -R vpopmail:vchkpw courier-authlib-0.57
cd courier-authlib-0.57

./configure --with-redhat --with-db=gdbm --with-db=db --with-mailuser=vpopmail --with-mailgroup=vchkpw
make
su
make install
make install-migrate
make install-configure


cp courier-authlib.sysvinit /etc/rc.d/init.d/courier-authlib

# vi /usr/local/etc/authlib/authdaemonrc

authmodulelist="authvchkpw authuserdb authpam"


続きを読む "courier-imapインストール"

2007年01月12日

●functions to transition Mysql SQL to PostgreSQL

drop function ifnull (text, text);
create function ifnull (text, text) returns text AS '
select coalesce($1, $2) as result
' language 'sql';


drop function ifnull (int4, int4);
create function ifnull (int4, int4) returns int4 as '
select coalesce($1, $2) as result
' language 'sql';


drop function from_unixtime(integer);
create function from_unixtime(integer) returns timestamp as '
select abstime($1) as result
' language 'sql';


drop function unix_timestamp(timestamp);
create function unix_timestamp(timestamp) returns integer as '
select date_part(''epoch'', $1)::int4 as result
' language 'sql';


drop function to_days(timestamp);
create function to_days(timestamp) returns integer as '
select date_part(''day'', $1 - ''0000-01-01'')::int4 as result
' language 'sql';


drop function from_days(integer);
create function from_days(integer) returns timestamp as '
select ''0000-01-02''::timestamp + ($1 || '' days'')::interval as result
' language 'SQL';


drop function convert_date_format(text);
create function convert_date_format(text)
returns text
as '
set old_format $1
array set substitutions {%% %
%M Month
%W Day
%D FMDDth
%Y YYYY
%y YY
%X ""
%x ""
%a Dy
%d DD
%e FMDD
%m MM
%c FMmm
%b Mon
%j DDD
%H HH24
%k FMHH24
%h HH12
%I HH12
%l FMHH12
%i MI
%r {HH12:MI:SS AM}
%T HH24:MI:SS
%S SS
%s SS
%p AM}

set string_size [string length $old_format]
set i 0
set new_format ""

while { $i < $string_size } {
set fchar [string index $old_format $i]
if { $fchar == "%" } {
set code [string range $old_format $i [expr $i + 1]]
if [info exists substitutions($code)] {
append new_format $substitutions($code)
incr i
} else {
append new_format $fchar
}
} else {
append new_format $fchar
}

incr i
}
return $new_format
' language 'pltcl';


drop function date_format(timestamp, text);
create function date_format(timestamp, text)
returns text
as '
select to_char($1, convert_date_format($2))
' language 'sql';

2007年01月08日

●iptables

*mangle
:PREROUTING ACCEPT [4058027:957022546]
:INPUT ACCEPT [4058027:957022546]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [5036321:2147483647]
:POSTROUTING ACCEPT [5036321:2147483647]
COMMIT

*nat
:PREROUTING ACCEPT [185405:10151373]
:POSTROUTING ACCEPT [40964:3098021]
:OUTPUT ACCEPT [40964:3098021]
COMMIT

*filter
:INPUT DROP [28679:1754394]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [5076631:2147483647]
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -d 192.168.1.100 -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -d 192.168.1.100 -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -d 192.168.1.100 -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -d 192.168.1.100 -p tcp -m tcp --dport 25 -j ACCEPT
-A INPUT -s 192.168.1.100 -p tcp -m tcp --sport 25 -j ACCEPT
-A INPUT -d 192.168.1.100 -p tcp -m tcp --dport 110 -j ACCEPT
-A INPUT -s 192.168.1.100 -p tcp -m tcp --sport 110 -j ACCEPT
-A INPUT -d 192.168.1.100 -p tcp -m tcp --dport 20 -j ACCEPT
-A INPUT -d 192.168.1.100 -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -d 192.168.1.100 -p tcp -m tcp --dport 1024:65535 -j ACCEPT
-A INPUT -s 192.168.2.100 -d 192.168.1.100 -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -s 192.168.1.0/255.255.255.0 -d 192.168.0.100 -i eth0 -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -p icmp -j ACCEPT
COMMIT

2007年01月07日

●料金

個人(非営利)の方

初年度
ドメイン取得 実費
レンタルサーバ(初期設定) 10,000
レンタルサーバ(月額1,000円X12) 12,000
---------------------------------------------
合計 22,000

2年目以降
ドメイン更新 実費
レンタルサーバ(月額1,000円X12) 12,000
---------------------------------------------
合計 12,000

法人(営利)の方

初年度
ドメイン取得 実費
レンタルサーバ(初期設定) 10,000
レンタルサーバ(月額2,000円X12) 24,000
---------------------------------------------
合計 35,000

2年目以降
ドメイン更新 実費
レンタルサーバ(月額2,000円X12) 24,000
---------------------------------------------
合計 25,000

2007年01月06日

●概要

お客さま独自ドメインのホームページが持てるホスティングサービスです。
(共用ホスティングサービス)
月々1,000円からの価格設定。500Mバイトまでのディスクスペースをレンタル。
ホームページに加え、WordPress、Xoops、PHPNuke、OSコマースなどのオープンソースの
プログラムやデータベースにも対応しています。

基本的に小樽に在住の個人・企業の方を対象としています。

2007年01月04日

●ぜにばこ拉麺屋

塩ラーメンにこだわるお店。

場所は、国道5号線沿い。
3種類ある塩ラーメンの中から、一番安い「重臣の塩」を注文。
「化学調味料を一切使用していないカラダに優しいラーメン」と店内に書かれており、
化学調味料を使用せず、外国製岩塩と国産自然塩をブレンドするという徹底さ。
因みにコショウも置いていない。


00b3f63887f1afa3ccd062365df1aec3.jpg

続きを読む "ぜにばこ拉麺屋"

2007年01月03日

●tcpdump

tcpdump host xxx.xxx.xxx.xxx and port smtp

tcpdump host xxx.xxx.xxx.xxx and port smtp -q