Search




TOPページへ

このブログのフィードを取得
[フィードとは]

Powered by
Movable Type 4.23-ja

template by tokyobuddha

 ■■■■■免 責■■■■■
このサイトを参考にしたために発生した一切の損害に「てきとー管理者」は一切関知しませんし、補償もしません。 また、本サイトの記述が正しいことも保証しません。
自己責任にてお願いします。
 -------------------------

Galler Chocolate
ベルギー王室御用達として認定されたチョコレートブランド、ガレー。

SpamAssassinのスレッド数

SpamAssassinのスレッドのスレッド数の調整は

/etc/sysconfig/spamassassin

のオプションで行うようです。

標準では

SPAMDOPTIONS="-d -m5 -v -u vpopmail --virtual-config-dir=/home/vpopmail/domains/%d/%l/.spamassassin"

こんな感じで、 -m5 となっているので、最大で5つまで起動出来るようです。 -> 多分^^; 

試しに

SPAMDOPTIONS="-d -m1 -v -u vpopmail --virtual-config-dir=/home/vpopmail/domains/%d/%l/.spamassassin"

として設定を行い、差を見てみた。

-m5 の時は

# ps axuwf | grep spamd
root 12294 88.4 2.5 60820 52688 ? Ss 16:47 0:28 /usr/bin/spamd -d -m5 -v -u vpopmail --virtual-config-dir=/home/vpopmail/domains/%d/%l/.spamassassin -r /var/run/spamd.pid
vpopmail 12324 0.0 2.4 60820 50524 ? S 16:47 0:00 \_ spamd child
vpopmail 12326 0.0 2.4 60820 50436 ? S 16:47 0:00 \_ spamd child


-m1 の時は

# ps axuwf | grep spamd
root 12439 88.6 2.5 60828 52676 ? Ss 16:48 0:29 /usr/bin/spamd -d -m1 -v -u vpopmail --virtual-config-dir=/home/vpopmail/domains/%d/%l/.spamassassin -r /var/run/spamd.pid
vpopmail 12475 0.0 2.4 60828 50520 ? S 16:49 0:00 \_ spamd child

これ以外に

--max-children 4  とか  あるみたいだけど、
-m4 と --max-children 4 は同じみたい

それと --max-conn-per-child=1  のオプションが有るみたい。


念のため、SpamAssassinのヘルプ
---------
# spamassassin -h
SpamAssassin version 3.3.1
running on Perl version 5.8.8

For more information read the spamassassin man page.

Usage:
spamassassin [options] [ < *mailmessage* | *path* ... ]

spamassassin -d [ < *mailmessage* | *path* ... ]

spamassassin -r [ < *mailmessage* | *path* ... ]

spamassassin -k [ < *mailmessage* | *path* ... ]

spamassassin -W|-R [ < *mailmessage* | *path* ... ]

Options:

-L, --local Local tests only (no online tests)
-r, --report Report message as spam
-k, --revoke Revoke message as spam
-d, --remove-markup Remove spam reports from a message
-C path, --configpath=path, --config-file=path
Path to standard configuration dir
-p prefs, --prefspath=file, --prefs-file=file
Set user preferences file
--siteconfigpath=path Path for site configs
(def: /etc/mail/spamassassin)
--cf='config line' Additional line of configuration
-x, --nocreate-prefs Don't create user preferences file
-e, --exit-code Exit with a non-zero exit code if the
tested message was spam
--mbox read in messages in mbox format
--mbx read in messages in UW mbx format
-t, --test-mode Pipe message through and add extra
report to the bottom
--lint Lint the rule set: report syntax errors
-W, --add-to-whitelist Add addresses in mail to persistent address whitelist
--add-to-blacklist Add addresses in mail to persistent address blacklist
-R, --remove-from-whitelist Remove all addresses found in mail from
persistent address list
--add-addr-to-whitelist=addr Add addr to persistent address whitelist
--add-addr-to-blacklist=addr Add addr to persistent address blacklist
--remove-addr-from-whitelist=addr Remove addr from persistent address list
--ipv4only, --ipv4-only, --ipv4 Disable attempted use of ipv6 for DNS
--progress Print progress bar
-D, --debug [area=n,...] Print debugging messages
-V, --version Print version
-h, --help Print usage message
---------

んで〜、SPAMDOPTIONSのオプションは
---------
spamd [options]

Options:

-l, --allow-tell Allow learning/reporting
-c, --create-prefs Create user preferences files
-C path, --configpath=path Path for default config files
--siteconfigpath=path Path for site configs
--cf='config line' Additional line of configuration
-d, --daemonize Daemonize
-h, --help Print usage message
-i [ipaddr], --listen-ip=ipaddr Listen on the IP ipaddr
--ipv4only, --ipv4-only, --ipv4 Disable attempted use of ipv6 for DNS
-p port, --port=port Listen on specified port
-m num, --max-children=num Allow maximum num children
--min-children=num Allow minimum num children
--min-spare=num Lower limit for number of spare children
--max-spare=num Upper limit for number of spare children
--max-conn-per-child=num Maximum connections accepted by child
before it is respawned
--round-robin Use traditional prefork algorithm
--timeout-tcp=secs Connection timeout for client headers
--timeout-child=secs Connection timeout for message checks
-q, --sql-config Enable SQL config (needs -x)
-Q, --setuid-with-sql Enable SQL config (needs -x,
enables use of -H)
--ldap-config Enable LDAP config (needs -x)
--setuid-with-ldap Enable LDAP config (needs -x,
enables use of -H)
--virtual-config-dir=dir Enable pattern based Virtual configs
(needs -x)
-r pidfile, --pidfile Write the process id to pidfile
-s facility, --syslog=facility Specify the syslog facility
--syslog-socket=type How to connect to syslogd
-u username, --username=username Run as username
-g groupname, --groupname=groupname Run as groupname
-v, --vpopmail Enable vpopmail config
-x, --nouser-config Disable user config files
--auth-ident Use ident to authenticate spamc user
--ident-timeout=timeout Timeout for ident connections
-A host,..., --allowed-ips=..,.. Limit ip addresses which can connect
-D, --debug[=areas] Print debugging messages (for areas)
-L, --local Use local tests only (no DNS)
-P, --paranoid Die upon user errors
-H [dir], --helper-home-dir[=dir] Specify a different HOME directory
--ssl Run an SSL server
--ssl-port port Listen on port for SSL connections
--ssl-version sslversion Specify SSL protocol version to use
--server-key keyfile Specify an SSL keyfile
--server-cert certfile Specify an SSL certificate
--socketpath=path Listen on given UNIX domain socket
--socketowner=name Set UNIX domain socket file's owner
--socketgroup=name Set UNIX domain socket file's group
--socketmode=mode Set UNIX domain socket file's mode
-V, --version Print version and exit
---------

投稿時間: 11:16