九月 25, 2008
by Kiever
1 comment
Use keytool to create ssl certificate – only for self-signed certificate
First, use following command to generate keystore file
keytool -genkey -alias tomcat -keyalg RSA -keystore $SavePath/KeyFile
$SavePath is the path you save the file.
(全文…)
九月 19, 2008
by latteye
0 comments
idhost
idhost 字段用于指定发送邮件中 Message-IDs 的内容。
如果 idhost 设置为: latteye.com
那么 Message-IDs 可能为:xxxx@latteye.com。
他是一个唯一标识。
当存在 QMAILIDHOST 环境变量时,idhost 文件将被忽略。
九月 19, 2008
by latteye
0 comments
defaulthost
用来定义默认主机名。qmail-inject 会将任何不包含主机名的地址后添加 defaulhost。他的默认值为 me。
defaulthost 和你的机器主机名是不同的。
当 QMAILDEFAULTHOST 变量存在时,将忽略 defaulthost 文件中的设置。
九月 17, 2008
by latteye
0 comments
把 defaultdomain 和 plusdomain 放在一起叙述,只因为他们有那么一点点联系……
(全文…)
九月 16, 2008
by latteye
0 comments
logsize 同样为 multilog 的一个参数。通过 -s数字来定义。在 Qmail Toaster 系统中被 /var/qmail/supervise//log/run 脚本调用。
Qmail-Toaster 默认设置其为 1000000(等同1M)
-s数字 设置了日志文件的最大大小。multilog 会判断当前日志文件是否已经达到最大设置。(在距离最大数值只有 2000 字节时,multilog 也会尝试将其结束。(不知道翻译的对不对)multilog will also decide that current is big enough if it sees a newline within 2000 bytes of the maximum file size; it tries to finish log files at line boundaries.) 大小设置必须在 4096 和 16777215之间。其默认值为 99999.
九月 16, 2008
by latteye
0 comments
logcount 是 multilog 命令中的一个参数,通过 -n数字 来指定。在 Qmail-Toaster 系统中,他在 /var/qmail/supervise//log/run 脚本中被调用。而此脚本调用 /var/qmail/control/logcount 中的数字。
Qmail-Toaster 中默认的数值为 100.
此数值控制log文件数量以及后期动作。在将当前日志文件移动后,multilog 检查旧的日志文件。如果日志文件数量大于预设值,则通过时间标签来删除最老的日志。logcount 最小值为2,默认值为 10.
latteye:我很奇怪为啥会用这样一个工具。在我看来 logrotate 已经足够了。而且系统都是自带的。
增加维护节点,会对后期维护留下隐患。
九月 15, 2008
by latteye
0 comments
不要使用网页配置页面来添加域名。这种方式以及过于陈旧并且可能导致不可预期的问题。我们用命令行来添加域名:
/home/vpopmail/bin/vadddomain -q 15000000 testdomain.com newdomain
此命令将创建名为 “testdomain.com” 的邮件域。并且 postmaster 将使用15M的磁盘配额,你必须用比特定义 postmaster 的配额。命令中定义 postmaster 的密码为“newdomain”。
第一步完成了邮件域的基本结构,接着来配置它:
/home/vpopmail/bin/vmoddomlimits -P 100 -A 100 -F 100 -R 100 -L 100 -q 15000000 testdomain.com
这将对此邮件域进行一定的限制。可以根据需求来进行配置。-P 参数设置此域最多可以有 100 个POP 帐户。-A参数允许此域有100个 aliaes。-F参数允许此域有 100 个 forwoard。-R 参数允许此域有 100个 autoresponders (自动回复)。-F 参数设置邮件列表(mailing lists)数量。最后的 -q 参数设置每个用户邮箱的磁盘配额(需要用比特)。还有很多参数可以帮助你定制。看看 vmoddomlimits 的相关内容就知道了。
本文只是一个笼统的介绍。
九月 9, 2008
by latteye
0 comments
昨天遇到了 iptables 同网段端口转发的问题,记录一下。
(全文…)
九月 9, 2008
by latteye
0 comments
九月 1, 2008
by latteye
0 comments
6.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
| #!/usr/bin/perl -w
my %name_hash=(
"fred"=>"flintstone",
"barney"=>"rubble",
"wilma"=>"flintstone");
#print $name_hash{"fred"};
while (chomp($_=<stdin>)){
# chomp ($_);
$name=$name_hash{$_};
print "$name\n";
}
</stdin> |
(全文…)