[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:45841] Re: Postfix Mail System 動作確認について



武藤様、早速のご教示ありがとうございます。

> スタートの確認はよいのですが、各メールを処理するたびにpostfix/smtpd,
> amavisは動作しているようですか?

> 経由しているなら、メールのヘッダにも何か情報が付くと思います。


>
> どうにも難しいようであれば、/etc/postfix/master.cf、postconf -nの結果、
> /etc/amavis/amavisd.confといったものから、差し支えのない範囲での情報を
> ご提供いただく必要があるでしょう。
>
> また、clamavにヒットするかどうかのサンプルウイルスが必要であれば、
> clamav-testfilesパッケージの/usr/share/clamav-testfiles/にいくつか
> clamavのダミーチェック(実害を及ぼさないもの)にひっかけられるものが
> ありますね。

良く分かりませんので少し長くなってしまいましたが、下記の通りお送りします。
amavisd.conf につきましては大きなファイルのようですのでどの辺が必要か分かれば
お送りできると思うのですが、とりあえず下記の分だけお送りします。
どうぞよろしくお願い申し上げます。


■サンプルウィルス送受信のヘッダ
To: goahead@xxxxxxxxxxxxx
Subject: test
From: T.WATANABE<goahead@xxxxxxxxxxxxx>
Date: Tue, 07 Feb 2006 14:31:38 +0900
Message-ID: <87r76fpwed.wl%goahead@xxxxxxxxxxxxx>
User-Agent: Wanderlust/2.11.30 (Wonderwall) SEMI/1.14.6 (Maruoka)
 FLIM/1.14.6 (Marutamachi) APEL/10.6 MULE XEmacs/21.4 (patch 17)
 (Jumbo Shrimp) (i386-debian-linux)
MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka")
Content-Type: multipart/mixed; boundary="Multipart_Tue_Feb__7_14:31:38_2006-1"

[1  <text/plain; US-ASCII (7bit)>]
test
[2 clam.exe <application/octet-stream (base64)>]



■master.cf の一部

# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
#submission inet n      -       -       -       -       smtpd
#	-o smtpd_etrn_restrictions=reject
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       -       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail 
($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender 
$recipient
scalemail-backend unix	-	n	n	-	2	pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store 
${nexthop} ${user} ${extension}

# only used by postfix-tls
#tlsmgr	  fifo	-	-	n	300	1	tlsmgr
#smtps	  inet	n	-	n	-	-	smtpd -o smtpd_tls_wrappermode=yes -o 
smtpd_sasl_auth_enable=yes
#587	  inet	n	-	n	-	-	smtpd -o smtpd_enforce_tls=yes -o 
smtpd_sasl_auth_enable=yes


smtp-amavis unix -	-	n	-	2  smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes

127.0.0.1:10025 inet n	-	n	-	-  smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_client_restrictions=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000




###################################################################
#smtp-amavis unix -	-	n	-	2 smtp
#  -o smtp_data_done_timeout=1200
#  -o smtp_send_xforward_command=yes
#  -o disable_dns_lookups=yes
#
#127.0.0.1:10025 inet n -	n	-	-smtpd
#  -o content_filter=
#  -o local_recipient_maps=
#  -o relay_recipient_maps=
#  -o smtpd_restriction_classes=
#  -o smtpd_client_restrictions=
#  -o smtpd_helo_restrictions=
#  -o smtpd_seder_restrictions=
#  -o smtpd_recipient_restrictions=permit_mynetworks,reject
#  -o mynetworks=127.0.0.0/8
#  -o strict_rfc821_envelopes=yes
#  -o smtpd_error_sleep_time=0
#  -o smtpd_sort_error_limit=1001
#  -o smtpd_hard_error_limit=1000


■ postconf -n > postconf.txt 
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
disable_vrfy_command = yes
inet_interfaces = loopback-only
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = localhost.localdomain, localhost.localdomain, localhost
myhostname = localhost.localdomain
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost = 
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_helo_required = yes
smtpd_helo_restrictions = reject_non_fqdn_hostname


■/var/log/mail.log の最新起動時のログ(これ以降記録ありません)

Feb  7 13:56:19 localhost amavis[1428]: starting.  amavisd-new at localhost 
amavisd-new-20030616-p10, Unicode aware
Feb  7 13:56:19 localhost amavis[1428]: Perl version               5.008004
Feb  7 13:56:19 localhost amavis[1428]: Module Amavis::Conf        1.15
Feb  7 13:56:19 localhost amavis[1428]: Module Archive::Tar        1.23
Feb  7 13:56:19 localhost amavis[1428]: Module Archive::Zip        1.14
Feb  7 13:56:19 localhost amavis[1428]: Module Compress::Zlib      1.34
Feb  7 13:56:19 localhost amavis[1428]: Module Convert::TNEF       0.17
Feb  7 13:56:19 localhost amavis[1428]: Module Convert::UUlib      1.051
Feb  7 13:56:19 localhost amavis[1428]: Module DB_File             1.808
Feb  7 13:56:19 localhost amavis[1428]: Module MIME::Entity        5.417
Feb  7 13:56:19 localhost amavis[1428]: Module MIME::Parser        5.417
Feb  7 13:56:19 localhost amavis[1428]: Module MIME::Tools         5.417
Feb  7 13:56:19 localhost amavis[1428]: Module Mail::Header        1.62
Feb  7 13:56:19 localhost amavis[1428]: Module Mail::Internet      1.62
Feb  7 13:56:19 localhost amavis[1428]: Module Mail::SpamAssassin  3.000003
Feb  7 13:56:19 localhost amavis[1428]: Module Net::Cmd            2.26
Feb  7 13:56:19 localhost amavis[1428]: Module Net::SMTP           2.29
Feb  7 13:56:19 localhost amavis[1428]: Module Net::Server         0.87
Feb  7 13:56:19 localhost amavis[1428]: Module Time::HiRes         1.59
Feb  7 13:56:19 localhost amavis[1428]: Module Unix::Syslog        0.100
Feb  7 13:56:19 localhost amavis[1429]: Found $file       at /usr/bin/file
Feb  7 13:56:19 localhost amavis[1429]: No $arc,          not using it
Feb  7 13:56:19 localhost amavis[1429]: Found $gzip       at /bin/gzip
Feb  7 13:56:19 localhost amavis[1429]: Found $bzip2      at /usr/bin/bzip2
Feb  7 13:56:19 localhost amavis[1429]: No $lzop,         not using it
Feb  7 13:56:19 localhost amavis[1429]: No $lha,          not using it
Feb  7 13:56:19 localhost amavis[1429]: No $unarj,        not using it
Feb  7 13:56:19 localhost amavis[1429]: Found $uncompress at /bin/uncompress
Feb  7 13:56:19 localhost amavis[1429]: No $unfreeze,     not using it
Feb  7 13:56:19 localhost amavis[1429]: No $unrar,        not using it
Feb  7 13:56:19 localhost amavis[1429]: No $zoo,          not using it
Feb  7 13:56:19 localhost amavis[1429]: Found $cpio       at /bin/cpio
Feb  7 13:56:19 localhost amavis[1429]: Using internal av scanner code for 
(primary) Clam Antivirus-clamd
Feb  7 13:56:19 localhost amavis[1429]: Found secondary av scanner Clam 
Antivirus - clamscan at /usr/bin/clamscan
Feb  7 13:56:27 localhost postfix/postfix-script: starting the Postfix mail 
system
Feb  7 13:56:27 localhost postfix/master[1661]: daemon started -- version 
2.1.5
Feb  7 13:56:27 localhost postfix/pickup[1664]: AA251EF326: uid=65534 
from=<nobody>
Feb  7 13:56:27 localhost postfix/cleanup[1667]: AA251EF326: 
message-id=<20060207045613.AA251EF326@xxxxxxxxxxxxxxxxxxxxx>
Feb  7 13:56:27 localhost postfix/qmgr[1665]: AA251EF326: 
from=<nobody@xxxxxxxxxxxxxxxxxxxxx>, size=760, nrcpt=1 (queue active)
Feb  7 13:56:29 localhost postfix/smtpd[1675]: connect from 
localhost.localdomain[127.0.0.1]
Feb  7 13:56:29 localhost postfix/smtpd[1675]: 05279EF327: 
client=localhost.localdomain[127.0.0.1]
Feb  7 13:56:29 localhost postfix/cleanup[1667]: 05279EF327: 
message-id=<20060207045613.AA251EF326@xxxxxxxxxxxxxxxxxxxxx>
Feb  7 13:56:29 localhost postfix/qmgr[1665]: 05279EF327: 
from=<nobody@xxxxxxxxxxxxxxxxxxxxx>, size=1243, nrcpt=1 (queue active)
Feb  7 13:56:29 localhost postfix/smtpd[1675]: disconnect from 
localhost.localdomain[127.0.0.1]
Feb  7 13:56:29 localhost amavis[1451]: (01451-01) Passed, 
<nobody@xxxxxxxxxxxxxxxxxxxxx> -> <root@xxxxxxxxxxxxxxxxxxxxx>, Message-ID: 
<20060207045613.AA251EF326@xxxxxxxxxxxxxxxxxxxxx>, Hits: -2.4
Feb  7 13:56:29 localhost postfix/smtp[1669]: AA251EF326: 
to=<root@xxxxxxxxxxxxxxxxxxxxx>, orig_to=<root>, relay=127.0.0.1[127.0.0.1], 
delay=16, status=sent (250 2.6.0 Ok, id=01451-01, from MTA: 250 Ok: queued as 
05279EF327)
Feb  7 13:56:29 localhost postfix/qmgr[1665]: AA251EF326: removed
Feb  7 13:56:29 localhost postfix/local[1676]: warning: 
database /etc/aliases.db is older than source file /etc/aliases
Feb  7 13:56:29 localhost postfix/local[1676]: 05279EF327: 
to=<tw@xxxxxxxxxxxxxxxxxxxxx>, orig_to=<root@xxxxxxxxxxxxxxxxxxxxx>, 
relay=local, delay=0, status=sent (delivered to command: procmail -a 
"$EXTENSION")
Feb  7 13:56:29 localhost postfix/qmgr[1665]: 05279EF327: removed
Feb  7 13:58:32 localhost ipop3d[1901]: pop3s SSL service init from 127.0.0.1