/l3/users/25-05-2009/nt-net/debian5.unix.nt/root :1 :2 :3 :4 |
|
#tail -f /var/log/mail.log
May 29 10:19:37 debian5 sm-mta[13322]: starting daemon (8.13.8): SMTP+queueing@00:10:00 May 29 10:26:27 debian5 sm-mta[14020]: gethostbyaddr(192.168.56.190) failed: 1 May 29 10:26:27 debian5 sm-mta[14020]: gethostbyaddr(192.168.56.193) failed: 1 May 29 10:26:27 debian5 sm-mta[14022]: starting daemon (8.13.8): SMTP+queueing@00:10:00 May 29 10:44:05 debian5 sm-mta[17309]: n4T7i4hN017309: ruleset=check_rcpt, arg1=<user@elena.net.nt>, relay=debian1.sergey.net.nt [192.168.16.1], reject=553 5.1.8 <user@elena.net.nt>... Domain of sender address user@debian1.net.nt does not exist May 29 10:44:05 debian5 sm-mta[17309]: n4T7i4hN017309: from=<user@debian1.net.nt>, size=745, class=0, nrcpts=0, bodytype=8BITMIME, proto=ESMTP, daemon=MTA-v4, relay=debian1.sergey.net.nt [192.168.16.1] May 29 11:02:16 debian5 sm-mta[14022]: restarting /usr/sbin/sendmail-mta due to signal May 29 11:02:16 debian5 sm-mta[14022]: gethostbyaddr(192.168.56.190) failed: 1 May 29 11:02:16 debian5 sm-mta[14022]: gethostbyaddr(192.168.56.193) failed: 1 May 29 11:02:16 debian5 sm-mta[17675]: starting daemon (8.13.8): SMTP+queueing@00:10:00 |
#tail -f /var/log/mail.log
[root@debian5:mail]# May 29 11:03:35 debian5 sm-mta[17712]: n4T83Zih017712: Milter (clamav): local socket name /var/run/clamav/clamav-milter.ctl unsafe May 29 11:03:35 debian5 sm-mta[17712]: n4T83Zih017712: Milter (clamav): to error state May 29 11:03:36 debian5 sm-mta[17712]: n4T83Zih017712: ruleset=check_rcpt, arg1=<user@elena.net.nt>, relay=debian1.sergey.net.nt [192.168.16.1], reject=553 5.1.8 <user@elena.net.nt>... Domain of sender address user@debian1.net.nt does not exist May 29 11:03:36 debian5 sm-mta[17712]: n4T83Zih017712: from=<user@debian1.net.nt>, size=907, class=0, nrcpts=0, bodytype=8BITMIME, proto=ESMTP, daemon=MTA-v4, relay=debian1.sergey.net.nt [192.168.16.1] May 29 11:10:07 debian5 sm-mta[17841]: n4T8A7xG017841: Milter (clamav): local socket name /var/run/clamav/clamav-milter.ctl unsafe May 29 11:10:07 debian5 sm-mta[17841]: n4T8A7xG017841: Milter (clamav): to error state May 29 11:10:08 debian5 sm-mta[17841]: n4T8A7xG017841: from=<user@elena.net.nt>, size=1362, class=0, nrcpts=3, msgid=<1243584622.3780.11.camel@debian6.net.nt>, proto=ESMTP, daemon=MTA-v4, relay=debian6.elena.net.nt [192.168.16.6] May 29 11:10:09 debian5 sm-mta[17843]: n4T8A7xG017841: to=<user@andrey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian8.andrey.net.nt. [192.168.16.8], dsn=2.0.0, stat=Sent (n4T8ACSB002025 Message accepted for delivery) May 29 11:10:10 debian5 sm-mta[17843]: n4T8A7xG017841: to=<user@lnet.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:02, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian10.lnet.net.nt. [192.168.16.10], dsn=2.0.0, stat=Sent (n4T8AFag008755 Message accepted for delivery) ... May 29 11:18:45 debian5 sm-mta[21438]: n4T8Ih4f021434: to=<user@andrey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian8.andrey.net.nt. [192.168.16.8], dsn=2.0.0, stat=Sent (n4T8ImVi002052 Message accepted for delivery) May 29 11:18:46 debian5 sm-mta[21438]: n4T8Ih4f021434: to=<user@lnet.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:02, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian10.lnet.net.nt. [192.168.16.10], dsn=2.0.0, stat=Sent (n4T8IpsT008796 Message accepted for delivery) May 29 11:18:47 debian5 sm-mta[21438]: n4T8Ih4f021434: to=<user@sergey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:03, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian1.sergey.net.nt. [192.168.16.1], dsn=2.0.0, stat=Sent (n4T8IqJ5031007 Message accepted for delivery) May 29 11:21:01 debian5 sm-mta[22753]: n4T8L0CV022753: from=<user@elena.net.nt>, size=1362, class=0, nrcpts=3, msgid=<1243584622.3780.11.camel@debian6.net.nt>, proto=ESMTP, daemon=MTA-v4, relay=debian6.elena.net.nt [192.168.16.6] May 29 11:21:01 debian5 sm-mta[22753]: n4T8L0CV022753: milter=clamav, quarantine=quarantined by clamav-milter May 29 11:21:01 debian5 sm-mta[22753]: n4T8L0CV022753: to=<user@andrey.net.nt>, delay=00:00:00, mailer=esmtp, pri=91362, quarantine=quarantined by clamav-milter, stat=quarantined May 29 11:21:01 debian5 sm-mta[22753]: n4T8L0CV022753: to=<user@lnet.net.nt>, delay=00:00:00, mailer=esmtp, pri=91362, quarantine=quarantined by clamav-milter, stat=quarantined May 29 11:21:01 debian5 sm-mta[22753]: n4T8L0CV022753: to=<user@sergey.net.nt>, delay=00:00:00, mailer=esmtp, pri=91362, quarantine=quarantined by clamav-milter, stat=quarantined May 29 11:21:28 debian5 sendmail[22779]: gethostbyaddr(192.168.56.190) failed: 1 May 29 11:21:28 debian5 sendmail[22779]: gethostbyaddr(192.168.56.193) failed: 1 |
#tail -f /var/log/mail.
tail: невозможно открыть `/var/log/mail.' для чтения: Нет такого файла или каталога tail: больше нет файлов |
#vim /etc/
|
#tail -f /var/log/mail.
tail: невозможно открыть `/var/log/mail.' для чтения: Нет такого файла или каталога tail: больше нет файлов |
#tail -f /var/log/mail.log
May 29 11:03:35 debian5 sm-mta[17712]: n4T83Zih017712: Milter (clamav): local socket name /var/run/clamav/clamav-milter.ctl unsafe May 29 11:03:35 debian5 sm-mta[17712]: n4T83Zih017712: Milter (clamav): to error state May 29 11:03:36 debian5 sm-mta[17712]: n4T83Zih017712: ruleset=check_rcpt, arg1=<user@elena.net.nt>, relay=debian1.sergey.net.nt [192.168.16.1], reject=553 5.1.8 <user@elena.net.nt>... Domain of sender address user@debian1.net.nt does not exist May 29 11:03:36 debian5 sm-mta[17712]: n4T83Zih017712: from=<user@debian1.net.nt>, size=907, class=0, nrcpts=0, bodytype=8BITMIME, proto=ESMTP, daemon=MTA-v4, relay=debian1.sergey.net.nt [192.168.16.1] May 29 11:10:07 debian5 sm-mta[17841]: n4T8A7xG017841: Milter (clamav): local socket name /var/run/clamav/clamav-milter.ctl unsafe May 29 11:10:07 debian5 sm-mta[17841]: n4T8A7xG017841: Milter (clamav): to error state May 29 11:10:08 debian5 sm-mta[17841]: n4T8A7xG017841: from=<user@elena.net.nt>, size=1362, class=0, nrcpts=3, msgid=<1243584622.3780.11.camel@debian6.net.nt>, proto=ESMTP, daemon=MTA-v4, relay=debian6.elena.net.nt [192.168.16.6] May 29 11:10:09 debian5 sm-mta[17843]: n4T8A7xG017841: to=<user@andrey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian8.andrey.net.nt. [192.168.16.8], dsn=2.0.0, stat=Sent (n4T8ACSB002025 Message accepted for delivery) May 29 11:10:10 debian5 sm-mta[17843]: n4T8A7xG017841: to=<user@lnet.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:02, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian10.lnet.net.nt. [192.168.16.10], dsn=2.0.0, stat=Sent (n4T8AFag008755 Message accepted for delivery) May 29 11:10:11 debian5 sm-mta[17843]: n4T8A7xG017841: to=<user@sergey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:03, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian1.sergey.net.nt. [192.168.16.1], dsn=2.0.0, stat=Sent (n4T8AGKC030969 Message accepted for delivery) |
#vim /etc/mail/sendmail.mc
|
#less /var/log/clamav/clamav.log
|
#vim /etc/clamav/clamav-milter.conf
--- /tmp/l3-saved-17765.28805.14351 2009-05-29 11:11:28.000000000 +0300 +++ /etc/clamav/clamav-milter.conf 2009-05-29 11:11:55.000000000 +0300 @@ -12,10 +12,10 @@ OnClean Accept OnInfected Quarantine OnFail Defer -AddHeader false +AddHeader true LogSyslog true -LogFacility LOG_LOCAL6 -LogVerbose false +LogFacility LOG_DAEMON +LogVerbose true LogInfected Off MaxFileSize 25M TemporaryDirectory /tmp |
#exit
|
#mv /etc/default/clamav-milter /tmp
[root@debian5:~]# /etc/init.d/clamav-milter restart Stopping Sendmail milter plugin for ClamAV: clamav-milter. Starting Sendmail milter plugin for ClamAV: clamav-milter/usr/sbin/clamav-milter: unrecognized option `--max-children=2' ERROR: Unknown option passed ERROR: Can't parse command line options failed! |
#/etc/init.d/clamav-milter restart
Stopping Sendmail milter plugin for ClamAV: clamav-milter. Starting Sendmail milter plugin for ClamAV: clamav-milterWARNING: Ignoring option local:/var/run/clamav/milter-milter.ctl . |
#vim /etc/mail/sendmail.mc
|
#less /var/log/daemon.log
|
#tail -f /var/log/daemon.log
May 29 11:11:42 debian5 popa3d[17965]: Session from 192.168.16.6 May 29 11:11:42 debian5 popa3d[17965]: Authentication passed for user May 29 11:11:42 debian5 popa3d[17965]: 18 messages (19653 bytes) loaded May 29 11:11:42 debian5 popa3d[17965]: 0 (0) deleted, 18 (19653) left May 29 11:12:26 debian5 clamav-milter[18558]: Local socket unix:/var/run/clamav/clamd.ctl added to the pool (slot 1) May 29 11:12:26 debian5 clamav-milter[18558]: Probe for slot 1 returned: success May 29 11:12:42 debian5 popa3d[18611]: Session from 192.168.16.6 May 29 11:12:42 debian5 popa3d[18611]: Authentication passed for user May 29 11:12:42 debian5 popa3d[18611]: 18 messages (19653 bytes) loaded May 29 11:12:42 debian5 popa3d[18611]: 0 (0) deleted, 18 (19653) left May 29 11:12:58 debian5 popa3d[18615]: Session from 192.168.16.6 May 29 11:12:58 debian5 popa3d[18615]: Authentication passed for user May 29 11:12:58 debian5 popa3d[18615]: 18 messages (19653 bytes) loaded May 29 11:12:58 debian5 popa3d[18615]: 0 (0) deleted, 18 (19653) left May 29 11:13:00 debian5 popa3d[18619]: Session from 192.168.16.6 May 29 11:13:00 debian5 popa3d[18619]: Authentication passed for user May 29 11:13:00 debian5 popa3d[18619]: 18 messages (19653 bytes) loaded May 29 11:13:00 debian5 popa3d[18619]: 0 (0) deleted, 18 (19653) left |
#ps aux | grep clam
[root@debian5:~]# tail -f /var/log/mail.log May 29 11:10:08 debian5 sm-mta[17841]: n4T8A7xG017841: from=<user@elena.net.nt>, size=1362, class=0, nrcpts=3, msgid=<1243584622.3780.11.camel@debian6.net.nt>, proto=ESMTP, daemon=MTA-v4, relay=debian6.elena.net.nt [192.168.16.6] May 29 11:10:09 debian5 sm-mta[17843]: n4T8A7xG017841: to=<user@andrey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian8.andrey.net.nt. [192.168.16.8], dsn=2.0.0, stat=Sent (n4T8ACSB002025 Message accepted for delivery) May 29 11:10:10 debian5 sm-mta[17843]: n4T8A7xG017841: to=<user@lnet.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:02, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian10.lnet.net.nt. [192.168.16.10], dsn=2.0.0, stat=Sent (n4T8AFag008755 Message accepted for delivery) May 29 11:10:11 debian5 sm-mta[17843]: n4T8A7xG017841: to=<user@sergey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:03, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian1.sergey.net.nt. [192.168.16.1], dsn=2.0.0, stat=Sent (n4T8AGKC030969 Message accepted for delivery) May 29 11:12:58 debian5 sm-mta[18614]: n4T8CwGP018614: Milter (clamav): local socket name /var/run/clamav/clamav-milter.ctl unsafe May 29 11:12:58 debian5 sm-mta[18614]: n4T8CwGP018614: Milter (clamav): to error state May 29 11:12:59 debian5 sm-mta[18614]: n4T8CwGP018614: from=<user@elena.net.nt>, size=1362, class=0, nrcpts=3, msgid=<1243584622.3780.11.camel@debian6.net.nt>, proto=ESMTP, daemon=MTA-v4, relay=debian6.elena.net.nt [192.168.16.6] May 29 11:13:00 debian5 sm-mta[18618]: n4T8CwGP018614: to=<user@andrey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian8.andrey.net.nt. [192.168.16.8], dsn=2.0.0, stat=Sent (n4T8D3XN002033 Message accepted for delivery) May 29 11:13:01 debian5 sm-mta[18618]: n4T8CwGP018614: to=<user@lnet.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:02, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian10.lnet.net.nt. [192.168.16.10], dsn=2.0.0, stat=Sent (n4T8D6ka008767 Message accepted for delivery) May 29 11:13:02 debian5 sm-mta[18618]: n4T8CwGP018614: to=<user@sergey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:03, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian1.sergey.net.nt. [192.168.16.1], dsn=2.0.0, stat=Sent (n4T8D7pU030975 Message accepted for delivery) clamav 15171 0.0 0.1 5748 720 ? Ss 10:32 0:00 /usr/bin/freshclam -d --quiet clamav 16454 0.0 11.3 78508 67260 ? Ssl 10:38 0:00 /usr/sbin/clamd root 17483 0.0 0.1 5004 972 ttyp5 S+ 10:54 0:00 less /usr/share/doc/clamav-milter/README.Debian.gz clamav 18558 0.0 0.1 42980 688 ? Ssl 11:12 0:00 /usr/sbin/clamav-milter -p /var/run/clamav/clamav-milter.pid local:/var/run/clamav/milter-milter.ctl root 18658 0.0 0.1 4784 776 ttyp7 R+ 11:13 0:00 grep clam |
#/etc/init.d/clamav-daemon resatrt
Usage: /etc/init.d/clamav-daemon {start|stop|restart|force-reload|reload-log|reload-database|status} failed! |
#/etc/init.d/clamav-daemon restart
Stopping ClamAV daemon: clamd. Starting ClamAV daemon: clamd LibClamAV Warning: ************************************************** LibClamAV Warning: *** The virus database is older than 7 days! *** LibClamAV Warning: *** Please update it as soon as possible. *** LibClamAV Warning: ************************************************** . |
#less /var/log/clamav/clamav.log
|
#ps aux | grep clam
clamav 15171 0.0 0.1 5748 720 ? Ss 10:32 0:00 /usr/bin/freshclam -d --quiet root 17483 0.0 0.1 5004 972 ttyp5 S+ 10:54 0:00 less /usr/share/doc/clamav-milter/README.Debian.gz clamav 18558 0.0 0.1 42980 688 ? Ssl 11:12 0:00 /usr/sbin/clamav-milter -p /var/run/clamav/clamav-milter.pid local:/var/run/clamav/milter-milter.ctl clamav 19534 0.0 11.3 78508 67232 ? Ssl 11:14 0:00 /usr/sbin/clamd root 19574 0.0 0.1 4780 772 ttyp7 R+ 11:14 0:00 grep clam |
#kill -9 15171
|
#ps aux | grep clam
root 17483 0.0 0.1 5004 972 ttyp5 S+ 10:54 0:00 less /usr/share/doc/clamav-milter/README.Debian.gz clamav 18558 0.0 0.1 42980 688 ? Ssl 11:12 0:00 /usr/sbin/clamav-milter -p /var/run/clamav/clamav-milter.pid local:/var/run/clamav/milter-milter.ctl clamav 19534 0.0 11.3 78508 67232 ? Ssl 11:14 0:00 /usr/sbin/clamd root 19611 0.0 0.1 4780 772 ttyp7 R+ 11:14 0:00 grep clam |
#/etc/init.d/clamav-milter restart
[root@debian5:~]# tail -f /var/log/daemon.log May 29 11:13:00 debian5 popa3d[18619]: 18 messages (19653 bytes) loaded May 29 11:13:00 debian5 popa3d[18619]: 0 (0) deleted, 18 (19653) left May 29 11:13:42 debian5 popa3d[18666]: Session from 192.168.16.6 May 29 11:13:42 debian5 popa3d[18666]: Authentication passed for user May 29 11:13:42 debian5 popa3d[18666]: 18 messages (19653 bytes) loaded May 29 11:13:42 debian5 popa3d[18666]: 0 (0) deleted, 18 (19653) left May 29 11:14:42 debian5 popa3d[20294]: Session from 192.168.16.6 May 29 11:14:42 debian5 popa3d[20294]: Authentication passed for user May 29 11:14:42 debian5 popa3d[20294]: 18 messages (19653 bytes) loaded May 29 11:14:42 debian5 popa3d[20294]: 0 (0) deleted, 18 (19653) left Stopping Sendmail milter plugin for ClamAV: clamav-milter. Starting Sendmail milter plugin for ClamAV: clamav-milterWARNING: Ignoring option local:/var/run/clamav/milter-milter.ctl . |
#tail -f /var/log/daemon.log
May 29 11:13:42 debian5 popa3d[18666]: Session from 192.168.16.6 May 29 11:13:42 debian5 popa3d[18666]: Authentication passed for user May 29 11:13:42 debian5 popa3d[18666]: 18 messages (19653 bytes) loaded May 29 11:13:42 debian5 popa3d[18666]: 0 (0) deleted, 18 (19653) left May 29 11:14:42 debian5 popa3d[20294]: Session from 192.168.16.6 May 29 11:14:42 debian5 popa3d[20294]: Authentication passed for user May 29 11:14:42 debian5 popa3d[20294]: 18 messages (19653 bytes) loaded May 29 11:14:42 debian5 popa3d[20294]: 0 (0) deleted, 18 (19653) left May 29 11:14:58 debian5 clamav-milter[20579]: Local socket unix:/var/run/clamav/clamd.ctl added to the pool (slot 1) May 29 11:14:58 debian5 clamav-milter[20579]: Probe for slot 1 returned: success |
#tail -f /var/log/mail.
tail: невозможно открыть `/var/log/mail..log' для чтения: Нет такого файла или каталога tail: больше нет файлов |
#clamscan -r /usr/share/clamav-testfiles/
LibClamAV Warning: ************************************************** LibClamAV Warning: *** The virus database is older than 7 days! *** LibClamAV Warning: *** Please update it as soon as possible. *** LibClamAV Warning: ************************************************** /usr/share/clamav-testfiles/clam-v2.rar: OK /usr/share/clamav-testfiles/clam-v3.rar: OK /usr/share/clamav-testfiles/debugm.c: OK /usr/share/clamav-testfiles/clam.cab: ClamAV-Test-File FOUND /usr/share/clamav-testfiles/clam.exe: ClamAV-Test-File FOUND /usr/share/clamav-testfiles/clam.zip: ClamAV-Test-File FOUND /usr/share/clamav-testfiles/clam.exe.bz2: ClamAV-Test-File FOUND ----------- SCAN SUMMARY ----------- Known viruses: 538745 Engine version: 0.95.1 Scanned directories: 1 Scanned files: 7 Infected files: 4 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 2.678 sec (0 m 2 s) |
#tail -f /var/log/mail.log
May 29 11:12:59 debian5 sm-mta[18614]: n4T8CwGP018614: from=<user@elena.net.nt>, size=1362, class=0, nrcpts=3, msgid=<1243584622.3780.11.camel@debian6.net.nt>, proto=ESMTP, daemon=MTA-v4, relay=debian6.elena.net.nt [192.168.16.6] May 29 11:13:00 debian5 sm-mta[18618]: n4T8CwGP018614: to=<user@andrey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian8.andrey.net.nt. [192.168.16.8], dsn=2.0.0, stat=Sent (n4T8D3XN002033 Message accepted for delivery) May 29 11:13:01 debian5 sm-mta[18618]: n4T8CwGP018614: to=<user@lnet.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:02, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian10.lnet.net.nt. [192.168.16.10], dsn=2.0.0, stat=Sent (n4T8D6ka008767 Message accepted for delivery) May 29 11:13:02 debian5 sm-mta[18618]: n4T8CwGP018614: to=<user@sergey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:03, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian1.sergey.net.nt. [192.168.16.1], dsn=2.0.0, stat=Sent (n4T8D7pU030975 Message accepted for delivery) May 29 11:15:22 debian5 sm-mta[20612]: n4T8FMeL020612: Milter (clamav): local socket name /var/run/clamav/clamav-milter.ctl unsafe May 29 11:15:22 debian5 sm-mta[20612]: n4T8FMeL020612: Milter (clamav): to error state May 29 11:15:23 debian5 sm-mta[20612]: n4T8FMeL020612: from=<user@elena.net.nt>, size=1362, class=0, nrcpts=3, msgid=<1243584622.3780.11.camel@debian6.net.nt>, proto=ESMTP, daemon=MTA-v4, relay=debian6.elena.net.nt [192.168.16.6] May 29 11:15:25 debian5 sm-mta[20614]: n4T8FMeL020612: to=<user@andrey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=181362, relay=debian8.andrey.net.nt. [192.168.16.8], dsn=2.0.0, stat=Sent (n4T8FSuM002041 Message accepted for delivery) May 29 11:15:26 debian5 sm-mta[20614]: n4T8FMeL020612: to=<user@lnet.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:03, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian10.lnet.net.nt. [192.168.16.10], dsn=2.0.0, stat=Sent (n4T8FUw3008780 Message accepted for delivery) May 29 11:15:27 debian5 sm-mta[20614]: n4T8FMeL020612: to=<user@sergey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:04, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian1.sergey.net.nt. [192.168.16.1], dsn=2.0.0, stat=Sent (n4T8FVV9030984 Message accepted for delivery) |
#vim /etc/clamav/clamav-milter.conf
|
#tail -f /var/log/mail.log
|
#vim /etc/clamav/clam
|
#/etc/init.d/clamav-
[root@debian5:~]# clamav-daemon clamav-freshclam clamav-milter |
#tail -f /var/log/clamav/clamav.log
LibClamAV debug: regex_list: added new suffix /nc.moc.lapyap, for regex: /nc.moc.lapyap LibClamAV debug: regex_list: added new suffix /kh.moc.lapyap, for regex: /kh.moc.lapyap LibClamAV debug: regex_list: added new suffix /ym.moc.lapyap, for regex: /ym.moc.lapyap LibClamAV debug: regex_list: added new suffix /gs.moc.lapyap, for regex: /gs.moc.lapyap LibClamAV debug: regex_list: added new suffix /rb.moc.ocsedarb, for regex: /rb.moc.ocsedarb LibClamAV debug: regex_list: added new suffix /moc.omb, for regex: /moc.omb LibClamAV debug: regex_list: added new suffix /moc.knabtsorf, for regex: /moc.knabtsorf LibClamAV debug: regex_list: added new suffix /zn.oc.knabiwik, for regex: /zn.oc.knabiwik LibClamAV debug: /tmp/clamav-d20c940b8a80858fb201166f2992082e/daily.pdb loaded LibClamAV debug: Loading regex_list ... Fri May 29 11:18:16 2009 -> Portable Executable support enabled. Fri May 29 11:18:16 2009 -> ELF support enabled. Fri May 29 11:18:16 2009 -> Mail files support enabled. Fri May 29 11:18:16 2009 -> OLE2 support enabled. Fri May 29 11:18:16 2009 -> PDF support enabled. Fri May 29 11:18:16 2009 -> HTML support enabled. Fri May 29 11:18:16 2009 -> Self checking every 3600 seconds. Fri May 29 11:18:16 2009 -> Listening daemon: PID: 21421 Fri May 29 11:18:16 2009 -> MaxQueue set to: 100 Fri May 29 11:18:16 2009 -> fds_poll_recv: timeout after 3600 seconds |
#apt-get --purge remove clamav-milter
ЧÑение ÑпиÑков пакеÑов... ÐоÑово ÐоÑÑÑоение деÑева завиÑимоÑÑей... ÐоÑово ÐакеÑÑ, коÑоÑÑе бÑдÑÑ Ð£ÐÐÐlamav-milter* обновлено 0, ÑÑÑановлено 0 новÑÑ Ð¿Ð°ÐºÐµÑов, Ð´Ð»Ñ ÑÐ´Ð°Ð»ÐµÐ½Ð¸Ñ Ð¾ÑмеÑено 1 пакеÑов, и 356 пакеÑов не обновлено. ÐÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¾ ÑкаÑаÑÑ 0РаÑÑ Ð¸Ð²Ð¾Ð². ÐоÑле ÑаÑпаковки обÑем занÑÑого диÑкового пÑоÑÑÑанÑÑва ÑменÑÑиÑÑÑ Ð½Ð° 528kB. ХоÑиÑе пÑодолжиÑÑ [Ð/н]? (ЧÑение Ð±Ð°Ð·Ñ Ð´Ð°Ð½Ð½ÑÑ ... на даннÑй Ð¼Ð¾Ð¼ÐµÐ½Ñ ÑÑÑановлено 26021 Ñайлов и каÑалогов.) УдалÑеÑÑÑ Ð¿Ð°ÐºÐµÑ clamav-milter... Stopping Sendmail milter plugin for ClamAV: clamav-milter. УдалÑÑÑÑÑ ÑÐ°Ð¹Ð»Ñ ÐºÐ¾Ð½ÑигÑÑаÑии пакеÑа clamav-milter... |
#rm /var/run/clamav/clamd.
clamd.ctl clamd.pid |
#rm /var/run/clamav/
clamd.ctl clamd.pid freshclam.pid |
#rm /var/run/clamav/
|
#rm /etc/clamav/
[root@debian5:~]# rm /etc/clamav/ clamd.conf freshclam.conf onerrorexecute.d/ onupdateexecute.d/ virusevent.d/ |
#apt-get install clamav-milter
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово Предлагаемые пакеты: daemon clamav-docs НОВЫЕ пакеты, которые будут установлены: clamav-milter обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 356 пакетов не обновлено. Необходимо скачать 0B/259kB архивов. После распаковки объем занятого дискового пространства возрастёт на 528kB. Предварительная настройка пакетов ... Выбор ранее не выбранного пакета clamav-milter. (Чтение базы данных... на данный момент установлено 26000 файлов и каталогов.) Распаковывается пакет clamav-milter (из файла .../clamav-milter_0.95.1+dfsg-2_i386.deb)... Настраивается пакет clamav-milter (0.95.1+dfsg-2) ... Starting Sendmail milter plugin for ClamAV: clamav-milterWARNING: Ignoring option local:/var/run/clamav/milter.ctl . |
#/etc/init.d/clamav-milter restart
9 Foreground false$ 10 PidFile /var/run/clamav/clamav-milter.pid$ 11 ClamdSocket unix:/var/run/clamav/clamd.ctl$ 12 OnClean Accept$ 13 OnInfected Quarantine$ 14 OnFail Defer$ 15 AddHeader false$ 16 LogSyslog true$ 17 LogFacility LOG_DAEMON$ 18 LogVerbose true$ ... ~ ~ ~ ~ ~ ~ "/etc/clamav/clamav-milter.conf" 21L, 589C записано сь Stopping Sendmail milter plugin for ClamAV: clamav-milter. Starting Sendmail milter plugin for ClamAV: clamav-milterWARNING: Ignoring option local:/var/run/clamav/clamav-milter.ctl . |
#tail -f /var/log/mail.log
May 29 11:15:23 debian5 sm-mta[20612]: n4T8FMeL020612: from=<user@elena.net.nt>, size=1362, class=0, nrcpts=3, msgid=<1243584622.3780.11.camel@debian6.net.nt>, proto=ESMTP, daemon=MTA-v4, relay=debian6.elena.net.nt [192.168.16.6] May 29 11:15:25 debian5 sm-mta[20614]: n4T8FMeL020612: to=<user@andrey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=181362, relay=debian8.andrey.net.nt. [192.168.16.8], dsn=2.0.0, stat=Sent (n4T8FSuM002041 Message accepted for delivery) May 29 11:15:26 debian5 sm-mta[20614]: n4T8FMeL020612: to=<user@lnet.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:03, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian10.lnet.net.nt. [192.168.16.10], dsn=2.0.0, stat=Sent (n4T8FUw3008780 Message accepted for delivery) May 29 11:15:27 debian5 sm-mta[20614]: n4T8FMeL020612: to=<user@sergey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:04, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian1.sergey.net.nt. [192.168.16.1], dsn=2.0.0, stat=Sent (n4T8FVV9030984 Message accepted for delivery) May 29 11:18:43 debian5 sm-mta[21434]: n4T8Ih4f021434: Milter (clamav): local socket name /var/run/clamav/clamav-milter.ctl unsafe May 29 11:18:43 debian5 sm-mta[21434]: n4T8Ih4f021434: Milter (clamav): to error state May 29 11:18:44 debian5 sm-mta[21434]: n4T8Ih4f021434: from=<user@elena.net.nt>, size=1362, class=0, nrcpts=3, msgid=<1243584622.3780.11.camel@debian6.net.nt>, proto=ESMTP, daemon=MTA-v4, relay=debian6.elena.net.nt [192.168.16.6] May 29 11:18:45 debian5 sm-mta[21438]: n4T8Ih4f021434: to=<user@andrey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian8.andrey.net.nt. [192.168.16.8], dsn=2.0.0, stat=Sent (n4T8ImVi002052 Message accepted for delivery) May 29 11:18:46 debian5 sm-mta[21438]: n4T8Ih4f021434: to=<user@lnet.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:02, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian10.lnet.net.nt. [192.168.16.10], dsn=2.0.0, stat=Sent (n4T8IpsT008796 Message accepted for delivery) May 29 11:18:47 debian5 sm-mta[21438]: n4T8Ih4f021434: to=<user@sergey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:03, xdelay=00:00:01, mailer=esmtp, pri=181362, relay=debian1.sergey.net.nt. [192.168.16.1], dsn=2.0.0, stat=Sent (n4T8IqJ5031007 Message accepted for delivery) May 29 11:21:01 debian5 sm-mta[22753]: n4T8L0CV022753: from=<user@elena.net.nt>, size=1362, class=0, nrcpts=3, msgid=<1243584622.3780.11.camel@debian6.net.nt>, proto=ESMTP, daemon=MTA-v4, relay=debian6.elena.net.nt [192.168.16.6] May 29 11:21:01 debian5 sm-mta[22753]: n4T8L0CV022753: milter=clamav, quarantine=quarantined by clamav-milter May 29 11:21:01 debian5 sm-mta[22753]: n4T8L0CV022753: to=<user@andrey.net.nt>, delay=00:00:00, mailer=esmtp, pri=91362, quarantine=quarantined by clamav-milter, stat=quarantined May 29 11:21:01 debian5 sm-mta[22753]: n4T8L0CV022753: to=<user@lnet.net.nt>, delay=00:00:00, mailer=esmtp, pri=91362, quarantine=quarantined by clamav-milter, stat=quarantined May 29 11:21:01 debian5 sm-mta[22753]: n4T8L0CV022753: to=<user@sergey.net.nt>, delay=00:00:00, mailer=esmtp, pri=91362, quarantine=quarantined by clamav-milter, stat=quarantined |
#mailq
MSP Queue status... /var/spool/mqueue-client is empty Total requests: 0 MTA Queue status... /var/spool/mqueue (1 request) -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient----------- n4T8L0CV022753 1026 Fri May 29 11:21 <user@elena.net.nt> QUARANTINE: quarantined by clamav-milter <user@andrey.net.nt> <user@lnet.net.nt> <user@sergey.net.nt> Total requests: 1 |
#apt-get install spamassassin spamass-milter
LibClamAV debug: regex_list: added new suffix /moc.knab-pooc, for regex: /moc.knab-pooc LibClamAV debug: regex_list: added new suffix /moc.knabellasal, for regex: /moc.knabellasal LibClamAV debug: regex_list: added new suffix /moc.enilnoknab-pooc, for regex: /moc.enilnoknab-pooc LibClamAV debug: regex_list: added new suffix /moc.detinutaknab, for regex: /moc.detinutaknab LibClamAV debug: regex_list: added new suffix /moc.blown, for regex: /moc.blown LibClamAV debug: regex_list: added new suffix /ua.moc.egroegts.www, for regex: /ua.moc.egroegts.www LibClamAV debug: regex_list: added new suffix /ku.oc.anbm, for regex: /ku.oc.anbm LibClamAV debug: regex_list: added new suffix /moc.enilnoknabsnezitic, for regex: /moc.enilnoknabsnezitic LibClamAV debug: regex_list: added new suffix /moc.snoiger, for regex: /moc.snoiger LibClamAV debug: regex_list: added new suffix /ed.knabitic, for regex: /ed.knabitic |
#vim /etc/default/spamass-milter
|
#ls -l
-rw-r--r-- 1 root root 730 2009-01-24 07:21 /etc/default/spamass-milter |
#vim /etc/default/spamass-milter
|
#vim /etc/spamassassin/local.cf
--- /tmp/l3-saved-2422.15572.26429 2009-05-29 11:58:37.000000000 +0300 +++ /etc/spamassassin/local.cf 2009-05-29 11:59:10.000000000 +0300 @@ -31,7 +31,7 @@ # Set the threshold at which a message is considered spam (default: 5.0) # -# required_score 5.0 + required_score -0.8 # Use Bayesian classifier (default: 1) |
#vim /etc/default/spamassassin
--- /tmp/l3-saved-2422.8520.14376 2009-05-29 11:59:27.000000000 +0300 +++ /etc/default/spamassassin 2009-05-29 11:59:42.000000000 +0300 @@ -5,7 +5,7 @@ # There may be security risks. # Change to one to enable spamd -ENABLED=0 +ENABLED=1 # Options # See man spamd for possible options. The -d option is automatically added. |
#vim /etc/mail/sendmail.mc
--- /tmp/l3-saved-2422.29574.24628 2009-05-29 12:00:53.000000000 +0300 +++ /etc/mail/sendmail.mc 2009-05-29 12:13:16.000000000 +0300 @@ -61,7 +61,8 @@ define(`confPRIVACY_FLAGS',dnl `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav/clamav-milter.ctl, F=, T=S:4m;R:4m' )dnl -define(`confINPUT_MAIL_FILTERS', `clamav')dnl +INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass.sock, F=, T=C:15m;S:4m;R:4m:E:10m' )dnl +define(`confINPUT_MAIL_FILTERS', `spamassassin,clamav')dnl dnl # Define connection throttling and window length define(`confCONNECTION_RATE_THROTTLE', `15')dnl define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl |
#dpkg --help
Использование: dpkg [<параметр> ...] <команда> Команды: -i|--install <имя файла .deb> ... | -R|--recursive <каталог> ... --unpack <имя файла .deb> ... | -R|--recursive <каталог> ... -A|--record-avail <имя файла .deb> ... | -R|--recursive <каталог> ... --configure <имя пакета> ... | -a|--pending --triggers-only <имя пакета> ... | -a|--pending -r|--remove | <имя пакета> ... | -a|--pending -P|--purge <имя пакета> ... | -a|--pending --get-selections [<шаблон> ...] Вывести список в стандартный поток ... Прекратить работу при обнаружении проблем --abort-after <n> Прекратить работу после обнаружения <n> количества ошибок Операторы сравнения, возможные в --compare-versions: lt le eq ne ge gt (пустое значение версии считать самой ранней); lt-nl le-nl ge-nl gt-nl (пустое значение версии считать самой поздней); < << <= = >= >> > (для совместимости с синтаксисом файла control). Программы `dselect' или 'aptitude' предоставляют дружественный интерфейс управления пакетами. |
#mc
|
#apt-get install mc
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово Будут установлены следующие дополнительные пакеты: libglib2.0-0 libgpm2 libpcre3 libselinux1 libslang2 Предлагаемые пакеты: gpm zip unzip arj xpdf dbview odt2txt Рекомендуемые пакеты: libglib2.0-data НОВЫЕ пакеты, которые будут установлены: libgpm2 mc ... Подготовка к замене пакета libpcre3 6.7+7.4-4 (используется файл .../libpcre3_7.8-2+b1_i386.deb) ... Распаковывается замена для пакета libpcre3 ... Подготовка к замене пакета libglib2.0-0 2.12.4-2+etch1 (используется файл .../libglib2.0-0_2.20.1-2_i386.deb) ... Распаковывается замена для пакета libglib2.0-0 ... Выбор ранее не выбранного пакета mc. Распаковывается пакет mc (из файла .../mc_2%3a4.6.2-2_i386.deb)... Настраивается пакет libgpm2 (1.20.4-3.2) ... Настраивается пакет libpcre3 (7.8-2+b1) ... Настраивается пакет libglib2.0-0 (2.20.1-2) ... Настраивается пакет mc (2:4.6.2-2) ... |
#whereis spamassassin
â<â / ÐÐ¼Ñ âÐ Ð°Ð·Ð¼ÐµÑ âv>ââ<â ~ ââââââââââââââââââââââââÑÐµÐ¼Ñ Ð¿Ñавки ââââââââââââââââââââââââââââââââââââââââââââââv>â â/bin â 2480âÐай 29 10:18 â´â/.. Ñ C-x q â 48âÐÐ°Ñ 13 2008 â â/dev â 282016âÐ7ай 8 ââ/.gconfd â â 176âÐай 25 10:32 â â/home и â â 72âÐÐ°Ñ 13 2008 â â/lib â ÐÑ Ð´ÐµÐ¹ÑÑвиÑелÑно Ñ Ð¾ÑиÑе вÑйÑи из Midnight Commander? ⠰й 29 11:21 â â/media â [ Ðа ] [ ÐÐµÑ ] â â 444âÐÐ°Ñ 12 2008 â â/opt â â 99âÐай 29 11:14 â â/root â 44836âÐай 9 ââ .profile âââââââââââââââ â â/selinux â 4Фев 21 15 ââ .viminfo ââââââââââââââââââ â/sys â 028âÐ7ай 89 12:04 â â â â â/tmp â 328âÐай 29 12:04 ââ â â â âbin âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ # spamassassin: /usr/bin/spamassassin /etc/spamassassin /usr/X11R6/bin/spamassassin /usr/bin/X11/spamassassin /usr/share/spamassassin /usr/share/man/man1/spamassassin.1p.gz |
#/usr/share/man/man1/spamassassin.1p.gz
bash: /usr/share/man/man1/spamassassin.1p.gz: Отказано в доступе |
#make
Updating databases ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#/etc/init.d/sendmail reload
Reloading Mail Transport Agent configuration: sendmail. |
#vim /etc/spamassassin/local.cf
|
#vim /etc/spamassassin
|
#make
Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Creating /etc/mail/relay-domains # Optional file... The following file(s) have changed: ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#/etc/init.d/sendmail reload
Reloading Mail Transport Agent configuration: sendmail. |
#tail /var/log/mail.log
May 29 12:21:49 debian5 sm-mta[25164]: gethostbyaddr(192.168.56.193) failed: 1 May 29 12:21:49 debian5 sm-mta[25310]: starting daemon (8.13.8): SMTP+queueing@00:10:00 May 29 12:22:44 debian5 sm-mta[25332]: n4T9Mibb025332: Milter (spamassassin): local socket name /var/run/spamass.sock unsafe May 29 12:22:44 debian5 sm-mta[25332]: n4T9Mibb025332: Milter (spamassassin): to error state May 29 12:22:45 debian5 sm-mta[25332]: n4T9Mibb025332: from=<user@andrey.net.nt>, size=7125, class=0, nrcpts=1, msgid=<1243588968.6502.23.camel@debian7.andrey.net.nt>, proto=ESMTP, daemon=MTA-v4, relay=debian8.andrey.net.nt [192.168.16.8] May 29 12:22:45 debian5 sm-mta[25334]: n4T9Mibb025332: to=<user@elena.net.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=37323, dsn=2.0.0, stat=Sent May 29 12:24:20 debian5 sm-mta[25342]: n4T9OJqo025342: Milter (spamassassin): local socket name /var/run/spamass.sock unsafe May 29 12:24:20 debian5 sm-mta[25342]: n4T9OJqo025342: Milter (spamassassin): to error state May 29 12:24:21 debian5 sm-mta[25342]: n4T9OJqo025342: from=<user@elena.net.nt>, size=49071, class=0, nrcpts=1, msgid=<1243589075.3780.13.camel@debian6.net.nt>, proto=ESMTP, daemon=MTA-v4, relay=debian6.elena.net.nt [192.168.16.6] May 29 12:24:27 debian5 sm-mta[25345]: n4T9OJqo025342: to=<elena@net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:06, xdelay=00:00:06, mailer=esmtp, pri=169071, relay=debian11.net.nt. [192.168.16.11], dsn=4.0.0, stat=Deferred: debian11.net.nt.: No route to host |
#tail -f
May 29 12:22:45 debian5 sm-mta[25332]: n4T9Mibb025332: from=<user@andrey.net.nt>, size=7125, class=0, nrcpts=1, msgid=<1243588968.6502.23.camel@debian7.andrey.net.nt>, proto=ESMTP, daemon=MTA-v4, relay=debian8.andrey.net.nt [192.168.16.8] May 29 12:22:45 debian5 sm-mta[25334]: n4T9Mibb025332: to=<user@elena.net.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=37323, dsn=2.0.0, stat=Sent May 29 12:24:20 debian5 sm-mta[25342]: n4T9OJqo025342: Milter (spamassassin): local socket name /var/run/spamass.sock unsafe May 29 12:24:20 debian5 sm-mta[25342]: n4T9OJqo025342: Milter (spamassassin): to error state May 29 12:24:21 debian5 sm-mta[25342]: n4T9OJqo025342: from=<user@elena.net.nt>, size=49071, class=0, nrcpts=1, msgid=<1243589075.3780.13.camel@debian6.net.nt>, proto=ESMTP, daemon=MTA-v4, relay=debian6.elena.net.nt [192.168.16.6] May 29 12:24:27 debian5 sm-mta[25345]: n4T9OJqo025342: to=<elena@net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:06, xdelay=00:00:06, mailer=esmtp, pri=169071, relay=debian11.net.nt. [192.168.16.11], dsn=4.0.0, stat=Deferred: debian11.net.nt.: No route to host May 29 12:26:23 debian5 sm-mta[25372]: n4T9QNfi025372: Milter (spamassassin): local socket name /var/run/spamass.sock unsafe May 29 12:26:23 debian5 sm-mta[25372]: n4T9QNfi025372: Milter (spamassassin): to error state May 29 12:26:24 debian5 sm-mta[25372]: n4T9QNfi025372: from=<user@elena.net.nt>, size=82953, class=0, nrcpts=1, msgid=<1243589198.3780.15.camel@debian6.net.nt>, proto=ESMTP, daemon=MTA-v4, relay=debian6.elena.net.nt [192.168.16.6] May 29 12:26:27 debian5 sm-mta[25375]: n4T9QNfi025372: to=<user@andrey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=202953, relay=debian8.andrey.net.nt. [192.168.16.8], dsn=2.0.0, stat=Sent (n4T9QSK1003313 Message accepted for delivery) |
##
|
#tail /var/log/mail.log | grep n4T9QNfi025372
May 29 12:26:23 debian5 sm-mta[25372]: n4T9QNfi025372: Milter (spamassassin): local socket name /var/run/spamass.sock unsafe May 29 12:26:23 debian5 sm-mta[25372]: n4T9QNfi025372: Milter (spamassassin): to error state May 29 12:26:24 debian5 sm-mta[25372]: n4T9QNfi025372: from=<user@elena.net.nt>, size=82953, class=0, nrcpts=1, msgid=<1243589198.3780.15.camel@debian6.net.nt>, proto=ESMTP, daemon=MTA-v4, relay=debian6.elena.net.nt [192.168.16.6] May 29 12:26:27 debian5 sm-mta[25375]: n4T9QNfi025372: to=<user@andrey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=202953, relay=debian8.andrey.net.nt. [192.168.16.8], dsn=2.0.0, stat=Sent (n4T9QSK1003313 Message accepted for delivery) |
#vim /etc/spamassassin/local.cf
|
#tail /var/log/mail.log | grep 12:4
|
#vim /etc/default/spamass
|
#vim /etc/default/spamassassin
|
#vim /etc/default/spamass-milter
|
#ls -l /var/run/spamass/
итого 4 -rw-r--r-- 1 spamass-milter nogroup 6 2009-05-29 11:55 spamass.pid srw------- 1 root root 0 2009-05-29 11:55 spamass.sock |
#ls -l /var/run/clamav/
итого 12 srwxr-xr-x 1 clamav clamav 0 2009-05-29 11:20 clamav-milter.ctl -rw-rw---- 1 clamav clamav 5 2009-05-29 11:20 clamav-milter.pid srwxrwxrwx 1 clamav clamav 0 2009-05-29 11:55 clamd.ctl -rw-rw---- 1 clamav clamav 5 2009-05-29 11:55 clamd.pid -rw-rw---- 1 clamav clamav 5 2009-05-29 11:55 freshclam.pid srwxr-xr-x 1 clamav clamav 0 2009-05-29 11:19 milter.ctl |
#vim /etc/mail/sendmail.mc
--- /tmp/l3-saved-25471.5671.30787 2009-05-29 12:33:31.000000000 +0300 +++ /etc/mail/sendmail.mc 2009-05-29 12:34:00.000000000 +0300 @@ -61,7 +61,7 @@ define(`confPRIVACY_FLAGS',dnl `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav/clamav-milter.ctl, F=, T=S:4m;R:4m' )dnl -INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass.sock, F=, T=C:15m;S:4m;R:4m:E:10m' )dnl +INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass/spamass.sock, F=, T=C:15m;S:4m;R:4m:E:10m' )dnl define(`confINPUT_MAIL_FILTERS', `spamassassin,clamav')dnl dnl # Define connection throttling and window length define(`confCONNECTION_RATE_THROTTLE', `15')dnl |
#cd /etc/mail/
[root@debian5:~]# cd /etc/mail/sendmail.mc bash: cd: /etc/mail/sendmail.mc: Это не каталог |
#make
Updating databases ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#vim /etc/mail/sendmail.mc
--- /tmp/l3-saved-25471.19552.2862 2009-05-29 12:34:20.000000000 +0300 +++ /etc/mail/sendmail.mc 2009-05-29 12:35:05.000000000 +0300 @@ -61,7 +61,7 @@ define(`confPRIVACY_FLAGS',dnl `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav/clamav-milter.ctl, F=, T=S:4m;R:4m' )dnl -INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass/spamass.sock, F=, T=C:15m;S:4m;R:4m:E:10m' )dnl +INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass/spamass.sock, F=, T=C:15m;S:4m;R:4m:E:10m')dnl define(`confINPUT_MAIL_FILTERS', `spamassassin,clamav')dnl dnl # Define connection throttling and window length define(`confCONNECTION_RATE_THROTTLE', `15')dnl |
#make
Updating databases ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#vim sendmail.cf
|
#cd /etc/mail/sendmail.mc
bash: cd: /etc/mail/sendmail.mc: Это не каталог |
#vim /etc/mail/sendmail.mc
--- /tmp/l3-saved-25471.3908.25042 2009-05-29 12:36:27.000000000 +0300 +++ /etc/mail/sendmail.mc 2009-05-29 12:36:45.000000000 +0300 @@ -60,7 +60,7 @@ FEATURE(`use_cw_file')dnl define(`confPRIVACY_FLAGS',dnl `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl -INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav/clamav-milter.ctl, F=, T=S:4m;R:4m' )dnl +INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav/clamav-milter.ctl, F=, T=S:4m;R:4m')dnl INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass/spamass.sock, F=, T=C:15m;S:4m;R:4m:E:10m')dnl define(`confINPUT_MAIL_FILTERS', `spamassassin,clamav')dnl dnl # Define connection throttling and window length |
#/etc/init.d/sendmail restart
[root@debian5:mail]# make\ > Updating databases ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Creating /etc/mail/relay-domains ... Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** Restarting Transport Agent: sendmail550 /etc/mail/sendmail.cf: line 1712: Invalid time unit `:' 550 /etc/mail/sendmail.cf: line 1712: Invalid time unit `E' 550 /etc/mail/sendmail.cf: line 1712: Invalid time unit `:' . |
#vim sendmail.cf
|
#grep -v ^# sendmail.cf | less
|
#vim sendmail.
|
#vim sendmail.mc
--- /tmp/l3-saved-25471.23705.9155 2009-05-29 12:38:10.000000000 +0300 +++ sendmail.mc 2009-05-29 12:39:06.000000000 +0300 @@ -61,7 +61,7 @@ define(`confPRIVACY_FLAGS',dnl `needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl INPUT_MAIL_FILTER(`clamav', `S=local:/var/run/clamav/clamav-milter.ctl, F=, T=S:4m;R:4m')dnl -INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass/spamass.sock, F=, T=C:15m;S:4m;R:4m:E:10m')dnl +INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass/spamass.sock, F=, T=C:15m;S:4m;R:4m;E:10m')dnl define(`confINPUT_MAIL_FILTERS', `spamassassin,clamav')dnl dnl # Define connection throttling and window length define(`confCONNECTION_RATE_THROTTLE', `15')dnl |
#make
Updating databases ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/databases... Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Creating /etc/mail/relay-domains # Optional file... Updating Makefile ... Reading configuration from /etc/mail/sendmail.conf. Validating configuration. Creating /etc/mail/Makefile... Updating sendmail.cf ... The following file(s) have changed: /etc/mail/sendmail.cf ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
#/etc/init.d/sendmail restart
Restarting Transport Agent: sendmail. |
#vim sendmail.mc
|
#tail -v /var/log/mail.log
==> /var/log/mail.log <== May 29 12:35:28 debian5 sm-mta[25881]: starting daemon (8.13.8): SMTP+queueing@00:10:00 May 29 12:35:34 debian5 sm-mta[25882]: n4T9OJqo025342: to=<elena@net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:11:13, xdelay=00:00:06, mailer=esmtp, pri=439071, relay=debian11.net.nt. [192.168.16.11], dsn=4.0.0, stat=Deferred: debian11.net.nt.: No route to host May 29 12:36:52 debian5 sm-mta[26060]: gethostbyaddr(192.168.56.190) failed: 1 May 29 12:36:52 debian5 sm-mta[26060]: gethostbyaddr(192.168.56.193) failed: 1 May 29 12:36:52 debian5 sm-mta[26062]: starting daemon (8.13.8): SMTP+queueing@00:10:00 May 29 12:36:58 debian5 sm-mta[26063]: n4T9OJqo025342: to=<elena@net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:12:37, xdelay=00:00:06, mailer=esmtp, pri=529071, relay=debian11.net.nt. [192.168.16.11], dsn=4.0.0, stat=Deferred: debian11.net.nt.: No route to host May 29 12:39:15 debian5 sm-mta[26355]: gethostbyaddr(192.168.56.190) failed: 1 May 29 12:39:15 debian5 sm-mta[26355]: gethostbyaddr(192.168.56.193) failed: 1 May 29 12:39:15 debian5 sm-mta[26357]: starting daemon (8.13.8): SMTP+queueing@00:10:00 May 29 12:39:21 debian5 sm-mta[26358]: n4T9OJqo025342: to=<elena@net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:15:00, xdelay=00:00:06, mailer=esmtp, pri=619071, relay=debian11.net.nt. [192.168.16.11], dsn=4.0.0, stat=Deferred: debian11.net.nt.: No route to host |
#tail /var/log/mail.log | grep 12:
[root@debian5:mail]# tail /var/log/mail.log | grep 12: May 29 12:39:42 debian5 spamc[26421]: connect to spamd on 127.0.0.1 failed, retrying (#1 of 3): Connection refused May 29 12:39:43 debian5 spamc[26421]: connect to spamd on 127.0.0.1 failed, retrying (#2 of 3): Connection refused May 29 12:39:44 debian5 spamc[26421]: connect to spamd on 127.0.0.1 failed, retrying (#3 of 3): Connection refused May 29 12:39:45 debian5 spamc[26421]: connection attempt to spamd aborted after 3 retries May 29 12:39:45 debian5 sm-mta[26416]: n4T9dfRF026416: Milter delete: header X-Spam-Flag: YES May 29 12:39:45 debian5 sm-mta[26416]: n4T9dfRF026416: Milter delete: header X-Spam-Status: Yes, score=2.7 required=1.0 tests=ALL_TRUSTED,AWL,\n\tDRUGS_ERECTILE,LONGWORDS autolearn=no version=3.2.5 May 29 12:39:45 debian5 sm-mta[26416]: n4T9dfRF026416: Milter delete: header X-Spam-Level: ** May 29 12:39:45 debian5 sm-mta[26416]: n4T9dfRF026416: Milter delete: header X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on debian8.net.nt May 29 12:39:45 debian5 sm-mta[26423]: n4T9dfRF026416: to=<user@elena.net.nt>, delay=00:00:03, xdelay=00:00:00, mailer=local, pri=67306, dsn=2.0.0, stat=Sent May 29 12:39:47 debian5 sm-mta[26423]: n4T9dfRF026416: to=<user@andrey.net.nt>, delay=00:00:05, xdelay=00:00:02, mailer=esmtp, pri=67306, relay=debian8.andrey.net.nt. [192.168.16.8], dsn=2.0.0, stat=Sent (n4T9do4P003348 Message accepted for delivery) May 29 12:41:38 debian5 spamd[26574]: spamd: identified spam (2.4/1.0) for spamass-milter:107 in 0.3 seconds, 7580 bytes. May 29 12:41:38 debian5 spamd[26574]: spamd: result: Y 2 - ALL_TRUSTED,DRUGS_ERECTILE,LONGWORDS scantime=0.3,size=7580,user=spamass-milter,uid=107,required_score=1.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=48621,mid=<1243588968.6502.23.camel@debian7.andrey.net.nt>,autolearn=no May 29 12:41:38 debian5 spamd[26545]: prefork: child states: II May 29 12:41:38 debian5 sm-mta[26577]: n4T9fb0A026577: Milter change: header X-Spam-Status: from Yes, score=2.7 required=1.0 tests=ALL_TRUSTED,AWL,\n\tDRUGS_ERECTILE,LONGWORDS autolearn=no version=3.2.5 to Yes, score=2.4 required=1.0 tests=ALL_TRUSTED,DRUGS_ERECTILE,\n\tLONGWORDS autolearn=no version=3.2.5 May 29 12:41:38 debian5 sm-mta[26577]: n4T9fb0A026577: Milter change: header X-Spam-Checker-Version: from SpamAssassin 3.2.5 (2008-06-10) on debian8.net.nt to SpamAssassin 3.2.5 (2008-06-10) on debian5.net.nt May 29 12:41:38 debian5 sm-mta[26577]: n4T9fb0A026577: Milter change: header Subject: from *****SPAM andrey***** qqq to *****SPAM_from_elena***** *****SPAM andrey***** qqq May 29 12:41:38 debian5 sm-mta[26577]: n4T9fb0A026577: Milter change: header Content-Type: from multipart/mixed; boundary="----------=_4A1FA968.57A4AB5B" to multipart/mixed; boundary="----------=_4A1FADD2.DE86F139" May 29 12:41:38 debian5 sm-mta[26577]: n4T9fb0A026577: Milter message: body replaced May 29 12:41:38 debian5 sm-mta[26582]: n4T9fb0A026577: to=<user@elena.net.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=70464, dsn=2.0.0, stat=Sent May 29 12:41:40 debian5 sm-mta[26582]: n4T9fb0A026577: to=<user@andrey.net.nt>, delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=70464, relay=debian8.andrey.net.nt. [192.168.16.8], dsn=2.0.0, stat=Sent (n4T9fhwQ003374 Message accepted for delivery) |
#/etc/init.d/spamassassin restart
7 #$ 8 ###########################################################################$ 9 $ 10 # Add *****SPAM***** to the Subject header of spam e-mails$ 11 #$ 12 rewrite_header Subject *****SPAM_from_elena*****$ 13 $ 14 $ 15 # Save spam messages as a message/rfc822 MIME attachment instead of$ 16 # modifying the original message (0: off, 2: use text/plain instead)$ ... ~ ~ ~ ~ ~ ~ ~ "/etc/spamassassin/local.cf" 53L, 1214C записано сь Restarting SpamAssassin Mail Filter Daemon: No /usr/bin/perl found running; none killed. spamd. |
#/etc/init.d/spamassassin restart
Restarting SpamAssassin Mail Filter Daemon: No /usr/bin/perl found running; none killed. [26522] warn: server socket setup failed, retry 1: spamd: could not create INET socket on 127.0.0.1:783: Адрес уже используется [26522] warn: server socket setup failed, retry 2: spamd: could not create INET socket on 127.0.0.1:783: Адрес уже используется [26522] error: spamd: could not create INET socket on 127.0.0.1:783: Адрес уже используется spamd: could not create INET socket on 127.0.0.1:783: Адрес уже используется |
#/etc/init.d/spamassassin stop
Stopping SpamAssassin Mail Filter Daemon: spamd. |
#/etc/init.d/spamassassin start
Starting SpamAssassin Mail Filter Daemon: spamd. |
#tail -f
May 29 12:44:29 debian5 sm-mta[26668]: n4T9iQ0R026668: Milter add: header: X-Spam-Flag: YES May 29 12:44:29 debian5 sm-mta[26668]: n4T9iQ0R026668: Milter add: header: X-Spam-Status: Yes, score=4.8 required=1.0 tests=ALL_TRUSTED,DRUGS_ERECTILE,\n\tFR_ALMOST_VIAG2,LONGWORDS autolearn=no version=3.2.5 May 29 12:44:29 debian5 sm-mta[26668]: n4T9iQ0R026668: Milter add: header: X-Spam-Level: **** May 29 12:44:29 debian5 sm-mta[26668]: n4T9iQ0R026668: Milter add: header: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on debian5.net.nt May 29 12:44:29 debian5 sm-mta[26668]: n4T9iQ0R026668: Milter change: header Subject: from Re: *****SPAM_from_elena***** *****SPAM andrey***** qqq to *****SPAM_from_elena***** Re: *****SPAM_from_elena***** *****SPAM andrey***** qqq May 29 12:44:29 debian5 sm-mta[26668]: n4T9iQ0R026668: Milter change: header Content-Type: from multipart/mixed; boundary="=-b3ktfd4wm6sif3xGVa0i" to multipart/mixed; boundary="----------=_4A1FAE7D.FA2422FB" May 29 12:44:29 debian5 sm-mta[26668]: n4T9iQ0R026668: Milter message: body replaced May 29 12:44:29 debian5 sm-mta[26668]: n4T9iQ0R026668: milter=clamav, quarantine=quarantined by clamav-milter May 29 12:44:29 debian5 sm-mta[26668]: n4T9iQ0R026668: to=<user@andrey.net.nt>, delay=00:00:02, mailer=esmtp, pri=141791, quarantine=quarantined by clamav-milter, stat=quarantined May 29 12:44:29 debian5 spamd[26545]: prefork: child states: II ... May 29 12:47:50 debian5 sm-mta[27456]: n4T9lmGJ027456: Milter add: header: X-Spam-Level: ** May 29 12:47:50 debian5 sm-mta[27456]: n4T9lmGJ027456: Milter add: header: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on debian5.net.nt May 29 12:47:50 debian5 sm-mta[27456]: n4T9lmGJ027456: Milter change: header Subject: from Fwd:spamtest to *****SPAM_from_elena***** Fwd:spamtest May 29 12:47:50 debian5 sm-mta[27456]: n4T9lmGJ027456: Milter change: header Content-Type: from multipart/mixed; boundary="=-YQFmmh99a2rFSZ0iLgZ8" to multipart/mixed; boundary="----------=_4A1FAF46.11D22776" May 29 12:47:50 debian5 sm-mta[27456]: n4T9lmGJ027456: Milter message: body replaced May 29 12:47:50 debian5 spamd[26545]: prefork: child states: II May 29 12:47:53 debian5 sm-mta[27460]: n4T9lmGJ027456: to=<user@andrey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:04, xdelay=00:00:03, mailer=esmtp, pri=259851, relay=debian8.andrey.net.nt. [192.168.16.8], dsn=2.0.0, stat=Sent (n4T9lti7003404 Message accepted for delivery) May 29 12:47:56 debian5 sm-mta[27460]: n4T9lmGJ027456: to=<user@lnet.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:07, xdelay=00:00:03, mailer=esmtp, pri=259851, relay=debian10.lnet.net.nt. [192.168.16.10], dsn=2.0.0, stat=Sent (n4T9lxPS011445 Message accepted for delivery) May 29 12:47:57 debian5 sm-mta[27460]: n4T9lmGJ027456: to=<user@sergey.net.nt>, ctladdr=<user@elena.net.nt> (1000/1000), delay=00:00:08, xdelay=00:00:01, mailer=esmtp, pri=259851, relay=debian1.sergey.net.nt. [192.168.16.1], dsn=2.0.0, stat=Sent (n4T9m1lI002845 Message accepted for delivery) ^[[B^[[B |
#make
[root@debian5:mail]# tail -f /var/log/mail.log May 29 12:40:46 debian5 spamd[26512]: prefork: child states: II May 29 12:40:47 debian5 spamd[26522]: server socket setup failed, retry 2: spamd: could not create INET socket on 127.0.0.1:783: Ð\220дÑ\200еÑ\201 Ñ\203же иÑ\201полÑ\214зÑ\203еÑ\202Ñ\201Ñ\217 May 29 12:40:48 debian5 spamd[26522]: spamd: could not create INET socket on 127.0.0.1:783: Ð\220дÑ\200еÑ\201 Ñ\203же иÑ\201полÑ\214зÑ\203еÑ\202Ñ\201Ñ\217 May 29 12:40:58 debian5 spamd[26512]: spamd: server killed by SIGTERM, shutting down May 29 12:41:02 debian5 spamd[26543]: logger: removing stderr method May 29 12:41:04 debian5 spamd[26545]: spamd: server started on port 783/tcp (running version 3.2.5) May 29 12:41:04 debian5 spamd[26545]: spamd: server pid: 26545 May 29 12:41:04 debian5 spamd[26545]: spamd: server successfully spawned child process, pid 26574 May 29 12:41:04 debian5 spamd[26545]: spamd: server successfully spawned child process, pid 26575 ... May 29 12:41:38 debian5 spamd[26574]: spamd: identified spam (2.4/1.0) for spamass-milter:107 in 0.3 seconds, 7580 bytes. May 29 12:41:38 debian5 spamd[26574]: spamd: result: Y 2 - ALL_TRUSTED,DRUGS_ERECTILE,LONGWORDS scantime=0.3,size=7580,user=spamass-milter,uid=107,required_score=1.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=48621,mid=<1243588968.6502.23.camel@debian7.andrey.net.nt>,autolearn=no May 29 12:41:38 debian5 spamd[26545]: prefork: child states: II May 29 12:41:38 debian5 sm-mta[26577]: n4T9fb0A026577: Milter change: header X-Spam-Status: from Yes, score=2.7 required=1.0 tests=ALL_TRUSTED,AWL,\n\tDRUGS_ERECTILE,LONGWORDS autolearn=no version=3.2.5 to Yes, score=2.4 required=1.0 tests=ALL_TRUSTED,DRUGS_ERECTILE,\n\tLONGWORDS autolearn=no version=3.2.5 May 29 12:41:38 debian5 sm-mta[26577]: n4T9fb0A026577: Milter change: header X-Spam-Checker-Version: from SpamAssassin 3.2.5 (2008-06-10) on debian8.net.nt to SpamAssassin 3.2.5 (2008-06-10) on debian5.net.nt May 29 12:41:38 debian5 sm-mta[26577]: n4T9fb0A026577: Milter change: header Subject: from *****SPAM andrey***** qqq to *****SPAM_from_elena***** *****SPAM andrey***** qqq May 29 12:41:38 debian5 sm-mta[26577]: n4T9fb0A026577: Milter change: header Content-Type: from multipart/mixed; boundary="----------=_4A1FA968.57A4AB5B" to multipart/mixed; boundary="----------=_4A1FADD2.DE86F139" May 29 12:41:38 debian5 sm-mta[26577]: n4T9fb0A026577: Milter message: body replaced May 29 12:41:38 debian5 sm-mta[26582]: n4T9fb0A026577: to=<user@elena.net.nt>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=70464, dsn=2.0.0, stat=Sent May 29 12:41:40 debian5 sm-mta[26582]: n4T9fb0A026577: to=<user@andrey.net.nt>, delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=70464, relay=debian8.andrey.net.nt. [192.168.16.8], dsn=2.0.0, stat=Sent (n4T9fhwQ003374 Message accepted for delivery) |
#ls -l /var/run/clamav/
итого 12 srwxr-xr-x 1 clamav clamav 0 2009-05-29 11:20 clamav-milter.ctl -rw-rw---- 1 clamav clamav 5 2009-05-29 11:20 clamav-milter.pid srwxrwxrwx 1 clamav clamav 0 2009-05-29 11:55 clamd.ctl -rw-rw---- 1 clamav clamav 5 2009-05-29 11:55 clamd.pid -rw-rw---- 1 clamav clamav 5 2009-05-29 11:55 freshclam.pid srwxr-xr-x 1 clamav clamav 0 2009-05-29 11:19 milter.ctl |
#vim /etc/clamav/clamav-milter.conf
|
#ps aux | grep clam
clamav 22736 0.0 0.1 42976 816 ? Ssl 11:20 0:00 /usr/sbin/clamav-milter -p /var/run/clamav/clamav-milter.pid local:/var/run/clamav/clamav-milter.ctl clamav 24195 0.0 11.3 86564 67612 ? Ssl 11:55 0:00 /usr/sbin/clamd clamav 24461 0.0 0.2 5920 1644 ? Ss 11:55 0:01 /usr/bin/freshclam -d --quiet root 26711 0.0 0.1 4780 772 ttyp3 R+ 12:44 0:00 grep clam |
#/etc/init.d/clamav-daemon restart
LibClamAV debug: regex_list: added new suffix /moc.yabe, for regex: /moc.yabe LibClamAV debug: regex_list: added new suffix /ua.moc.yabe, for regex: /ua.moc.yabe LibClamAV debug: regex_list: added new suffix /nc.moc.yabe, for regex: /nc.moc.yabe LibClamAV debug: regex_list: added new suffix /kh.moc.yabe, for regex: /kh.moc.yabe LibClamAV debug: regex_list: added new suffix /ym.moc.yabe, for regex: /ym.moc.yabe LibClamAV debug: regex_list: added new suffix /gs.moc.yabe, for regex: /gs.moc.yabe LibClamAV debug: regex_list: added new suffix /rf.lapyap, for regex: /rf.lapyap LibClamAV debug: regex_list: added new suffix /ti.lapyap, for regex: /ti.lapyap LibClamAV debug: regex_list: added new suffix /ta.lapyap, for regex: /ta.lapyap LibClamAV debug: regex_list: added new suffix /ac.lapyap, for regex: /ac.lapyap ... LibClamAV debug: regex_list: added new suffix /kh.moc.lapyap, for regex: .+\.paypal\.(de|fr|it|at|ca|be|ch|nl|pl|es|co\.uk|com|com\.(au|cn|hk|my|sg))([/?].*)?:(.+\.)?paypal\.(de|fr|it|at|ca|be|ch|nl|pl|es|co\.uk|com|com\.(au|cn|hk|my|sg))/ LibClamAV debug: regex_list: added new suffix /ym.moc.lapyap, for regex: .+\.paypal\.(de|fr|it|at|ca|be|ch|nl|pl|es|co\.uk|com|com\.(au|cn|hk|my|sg))([/?].*)?:(.+\.)?paypal\.(de|fr|it|at|ca|be|ch|nl|pl|es|co\.uk|com|com\.(au|cn|hk|my|sg))/ LibClamAV debug: regex_list: added new suffix /gs.moc.lapyap, for regex: .+\.paypal\.(de|fr|it|at|ca|be|ch|nl|pl|es|co\.uk|com|com\.(au|cn|hk|my|sg))([/?].*)?:(.+\.)?paypal\.(de|fr|it|at|ca|be|ch|nl|pl|es|co\.uk|com|com\.(au|cn|hk|my|sg))/ LibClamAV debug: regex_list: added new suffix /moc.knabitic, for regex: .+\.citibank\.com([/?].*)?:(.+\.)?citibank\.com/ LibClamAV debug: regex_list: added new suffix /moc.notgnitnuh, for regex: .+\.huntingtonoptout\.com([/?].*)?:(.+\.)?huntington\.com/ LibClamAV debug: regex_list: added new suffix /moc.aciremafoknab.www:moc.erutrevo.vrs.tsae-su.cr, for regex: /moc.aciremafoknab.www:moc.erutrevo.vrs.tsae-su.cr LibClamAV debug: regex_list: added new suffix /moc.sraes.www:moc.gnitekram-sharrah.kcilc, for regex: /moc.sraes.www:moc.gnitekram-sharrah.kcilc LibClamAV debug: regex_list: added new suffix /moc.yenomnigriv:ku.oc.anbm.ecivresremotsuc, for regex: /moc.yenomnigriv:ku.oc.anbm.ecivresremotsuc LibClamAV debug: /tmp/clamav-db87dc0ba438733dbcc8b334c1c77bfd/daily.wdb loaded LibClamAV debug: /tmp/clamav-db87dc0ba438733dbcc8b334c1c77bfd/daily.zmd loaded |
#tail -f /var/log/mail.log
May 29 12:44:29 debian5 sm-mta[26668]: n4T9iQ0R026668: Milter add: header: X-Spam-Flag: YES May 29 12:44:29 debian5 sm-mta[26668]: n4T9iQ0R026668: Milter add: header: X-Spam-Status: Yes, score=4.8 required=1.0 tests=ALL_TRUSTED,DRUGS_ERECTILE,\n\tFR_ALMOST_VIAG2,LONGWORDS autolearn=no version=3.2.5 May 29 12:44:29 debian5 sm-mta[26668]: n4T9iQ0R026668: Milter add: header: X-Spam-Level: **** May 29 12:44:29 debian5 sm-mta[26668]: n4T9iQ0R026668: Milter add: header: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on debian5.net.nt May 29 12:44:29 debian5 sm-mta[26668]: n4T9iQ0R026668: Milter change: header Subject: from Re: *****SPAM_from_elena***** *****SPAM andrey***** qqq to *****SPAM_from_elena***** Re: *****SPAM_from_elena***** *****SPAM andrey***** qqq May 29 12:44:29 debian5 sm-mta[26668]: n4T9iQ0R026668: Milter change: header Content-Type: from multipart/mixed; boundary="=-b3ktfd4wm6sif3xGVa0i" to multipart/mixed; boundary="----------=_4A1FAE7D.FA2422FB" May 29 12:44:29 debian5 sm-mta[26668]: n4T9iQ0R026668: Milter message: body replaced May 29 12:44:29 debian5 sm-mta[26668]: n4T9iQ0R026668: milter=clamav, quarantine=quarantined by clamav-milter May 29 12:44:29 debian5 sm-mta[26668]: n4T9iQ0R026668: to=<user@andrey.net.nt>, delay=00:00:02, mailer=esmtp, pri=141791, quarantine=quarantined by clamav-milter, stat=quarantined May 29 12:44:29 debian5 spamd[26545]: prefork: child states: II |
#make
Updating auth ... sasl2-bin not installed, not configuring sendmail support. To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth" Creating /etc/mail/relay-domains # Optional file... The following file(s) have changed: ** ** You should issue `/etc/init.d/sendmail reload` ** ** |
Время первой команды журнала | 11:02:18 2009- 5-29 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 12:48:29 2009- 5-29 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 25.74 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.26 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.34 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008