Re: popサーバのログは何処に
KMochidaです。ご回答誠に有難うございます。
> In article <co4s79$mae$1@caraway.media.kyoto-u.ac.jp>
> はい。splogger の設定は問題ないでしょう。
安心しました。
>> うーん、何が原因なんですかね。
> あとは、pop3d しか残っていません。つまり、pop3d が何か標準出
> 力か標準エラーになにかログを write すれば、ssplogger が拾っ
> てくれるはずです。でもそうはなっていない。ということは、
> pop3d が何も write してないということです。
ログを吐くのは
/bin/checkpassword
や
/var/qmail/bin/qmail-pop3d
が吐くのではなく。
pop3dが吐くのですね。
$ which pop3d
としてもそのコマンドは無いようなんですが、、、
> man pop3d して、ログを出すようなオプションを見つけてそれを付
> けて起動すればいいんじゃないですか。ありそうなのは、-l とか
> -v とか、-d とかそんな感じ。コマンドラインの引数ではなくて
> 設定ファイルかもしれません。
以下がpop3dとqmail-pop3dのmanですがログとか設定ファイルとかの記述は無いよう
です。
うーん、やはり無理なんですかね。。。
$ man pop3d
Error parsing *roff command from file /usr/share/man/mann/pop3d.n.gz
pop3d(n) Tcl POP3 Server Package
pop3d(n)
____________________________________________________________________________
__
NAME
pop3d - Tcl POP3 server implementation
SYNOPSIS
package require Tcl 8.2
package require pop3d ?1.0?
::pop3d::new ?serverName?
serverName option ?arg arg ...?
serverName up
serverName down
serverName destroy ?mode?
serverName configure
serverName configure -option
serverName configure -option value...
serverName cget -option
serverName conn list
serverName conn state id
authCmd lookup name
storageCmd dele mbox msgList
storageCmd lock mbox
storageCmd unlock mbox
storageCmd size mbox msgId
storageCmd stat mbox
storageCmd get mbox msgId
_________________________________________________________________
DESCRIPTION
::pop3d::new ?serverName?
This command creates a new server object with an
associated
global Tcl command whose name is serverName. The
command
serverName may be used to invoke various operations on
the
server. It has the following general form:
serverName option ?arg arg ...?
Option and the args determine the exact behavior of the
command.
A pop3 server can be started on any port the caller has permission
for
from the operating system. The default port will be 110, which is
the
port defined by the standard (RFC 1939). After creating,
configuring
and starting a the server object will listen for and accept
connections
on that port and handle them according to the POP3 protocol.
Note: The server provided by this module will handle only the
basic
protocol by itself. For the higher levels of user authentication
and
handling of the actual mailbox contents callbacks will be invoked.
The following commands are possible for server objects:
serverName up
After this call the server will listen for connections on
its
configured port.
serverName down
After this call the server will stop listening for
connections.
This does not affect existing connections.
serverName destroy ?mode?
Destroys the server object. Currently open connections are
han-
dled depending on the chosen mode. The provided modes are:
kill Destroys the server immediately, and forcefully
closes
all currently open connections. This is the default
mode.
defer Stops the server from accepting new connections and
will
actually destroy it only after the last of the
currently
open connections for the server is closed.
serverName configure
Returns a list containing all options and their current
values
in a format suitable for use by the command array set.
The
options themselves are described in section OPTIONS.
serverName configure -option
Returns the current value of the specified option. This is
an
alias for the method cget. The options themselves are
described
in section OPTIONS.
serverName configure -option value...
Sets the specified option to the provided value. The
options
themselves are described in section OPTIONS.
serverName cget -option
Returns the current value of the specified option. The
options
themselves are described in section OPTIONS.
serverName conn list
Returns a list containing the ids of all connections
currently
open.
serverName conn state id
Returns a list suitable for [array set] containing the state
of
the connection referenced by id.
OPTIONS
The following options are available to pop3 server objects.
-port port
Defines the port to listen on for new connections. Default
is
110. This option is a bit special. If port is set to "0"
the
server, or rather the operating system, will select a free
port
on its own. When querying -port the id of this chosen port
will
be returned. Changing the port while the server is up will
nei-
ther change the returned value, nor will it change on which
port
the server is listening on. Only after resetting the server
via
a call to down followed by a call to up will the new port
take
effect. It is at that time that the value returned when
querying
-port will change too.
-auth command
Defines a command prefix to call whenever the authentication
of
a user is required. If no such command is specified the
server
will reject all users. The interface which has to be provided
by
the command prefix is described in section AUTHENTICATION.
-storage command
Defines a command prefix to call whenever the handling of
mail-
box contents is required. If no such command is specified
the
server will claim that all mailboxes are empty. The
interface
which has to be provided by the command prefix is described
in
section MAILBOXES.
AUTHENTICATION
Here we describe the interface which has to be provided by the
authen-
tication callback so that pop3 servers following the interface of
this
module are able to use it.
authCmd lookup name
This method is given a username and has to return a
two-element
list containing the password for this user and a storage
refer-
ence, in this order.
The storage reference is passed unchanged to the storage
call-
back, see sections OPTIONS and MAILBOXES for either the
option
defining it and or the interface to provide, respectively.
MAILBOXES
Here we describe the interface which has to be provided by the
storage
callback so that pop3 servers following the interface of this
module
are able to use it. The mbox argument is the storage reference
as
returned by the lookup method of the authentication command, see
sec-
tion AUTHENTICATION.
storageCmd dele mbox msgList]
Deletes the messages whose numeric ids are contained in
the
msgList from the mailbox specified via mbox.
storageCmd lock mbox
This method locks the specified mailbox for use by a single
con-
nection to the server. This is necessary to prevent havoc
if
several connections to the same mailbox are open. The
complemen-
tary method is unlock. The command will return true if the
lock
could be set successfully or false if not.
storageCmd unlock mbox
This is the complementary method to lock, it revokes the lock
on
the specified mailbox.
storageCmd size mbox msgId
Determines the size of the message specified through its id
in
msgId, in bytes, and returns this number.
storageCmd stat mbox
Determines the number of messages in the specified mailbox
and
returns this number.
storageCmd get mbox msgId
Returns a handle for the specified message. This handle is
a
mime token following the interface described in the
documenta-
tion of package mime. The pop3 server will use the
functionality
of the mime token to send the mail to the requestor at the
other
end of a pop3 connection.
KEYWORDS
pop3, internet, network, protocol, rfc1939
pop3d 1.0
pop3d(n)
$ man qmail-pop3d
qmail-pop3d(8)
qmail-pop3d(8)
NAME
qmail-pop3d - distribute mail via POP
SYNOPSIS
qmail-pop3d maildirname
DESCRIPTION
qmail-pop3d lets a user read and delete his mail through the network.
Mail is stored in a maildir called maildirname, normally Maildir,
in
the user's home directory.
qmail-pop3d is normally invoked under qmail-popup, which reads a
user-
name and password, and /bin/checkpassword, which checks the
password
and sets up environment variables.
qmail-pop3d has a 20-minute idle timeout.
qmail-pop3d supports UIDL, TOP, and LAST.
qmail-pop3d appends an extra blank line to every message to work
around
serious bugs in certain clients.
qmail-pop3d is based on a program contributed by Russ Nelson.
SEE ALSO
maildir(5), qmail-local(8), qmail-popup(8)
qmail-pop3d(8)
Fnews-brouse 1.9(20180406) -- by Mizuno, MWE <mwe@ccsf.jp>
GnuPG Key ID = ECC8A735
GnuPG Key fingerprint = 9BE6 B9E9 55A5 A499 CD51 946E 9BDC 7870 ECC8 A735