Журнал лабораторных работ

Содержание

Журнал

Понедельник (10/30/06)

/dev/pts/4
17:23:33
#ls -l /var/spool/MD-Quarantine/

17:23:35
#chmod 750 /var/spool/MD-Quarantine/

17:23:41
#ls -l /var/spool/MD-Quarantine/
итого 0
17:23:42
#ls -l /var/spool/MIMEDefang/
y:Отправить  q:Прервать  t:To  c:CC  s:Subj  a:Вложить файл  d:Описание  ?:Помощ
        From: root <root@asp.linux.nt>
          To: user@asp.linux.nt
          Cc:
         Bcc:
     Subject: w
    Reply-To:
         Fcc:
    Security: Не применять          [applica/octet-stre, quoted, 0K]итого 8
srwxrwxrwx  1 defang defang 0 Окт 30 17:11 clamd.sock
-rw-r-----  1 defang defang 5 Окт 30 17:21 mimedefang-multiplexor.pid
srw-------  1 defang defang 0 Окт 30 17:21 mimedefang-multiplexor.sock
-rw-r-----  1 defang defang 5 Окт 30 17:21 mimedefang.pidit, us-ascii, 0,1K]
srwxr-x---  1 defang defang 0 Окт 30 17:21 mimedefang.sock
-- Mutt: Compose  [Approx. msg size: 0,1K   Atts: 2]----------------------------
Сообщение отправить не удалось, процесс-потомок вернул 69 (Service unavailable
17:24:06
#vi /etc/mail/mimedefang-filter
186c186
< 	action_bounce("MIME type message/partial not accepted here");
---
> 	return action_bounce("MIME type message/partial not accepted here");
17:24:50
#tail -f /var/log/maillog
Oct 30 17:25:28 asp sendmail[7481]: k9UFPR5K007481: to=<postmaster@asp.linux.nt>, delay=00:00:00, pri=33888, stat=MIME type message/partial not accepted here
Oct 30 17:25:28 asp sendmail[7480]: k9UFPQ2m007480: to=postmaster, delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=32609, relay=[127.0.0.1] [127.0.0.1], dsn=5.0.0, stat=Service unavailable
Oct 30 17:25:28 asp sendmail[7480]: k9UFPQ2l007480: Losing ./qfk9UFPQ2l007480: savemail panic
Oct 30 17:25:28 asp sendmail[7480]: k9UFPQ2l007480: SYSERR(root): savemail: cannot save rejected email anywhere
Oct 30 17:26:07 asp mimedefang[7464]: MIMEDefang-2.57: mi_stop=1
Oct 30 17:26:09 asp mimedefang-multiplexor[7450]: Received SIGTERM: Stopping slaves and terminating
Oct 30 17:26:09 asp mimedefang-multiplexor[7450]: Reap: slave 1 (pid 7475) exited normally with status 0
Oct 30 17:26:09 asp mimedefang-multiplexor[7450]: Slave 1 resource usage: req=0, scans=0, user=0.700, sys=0.036, nswap=0, majflt=0, minflt=5053, maxrss=0, bi=0, bo=0
Oct 30 17:26:09 asp mimedefang-multiplexor[7450]: Reap: slave 0 (pid 7451) exited normally with status 0
Oct 30 17:26:09 asp mimedefang-multiplexor[7450]: Slave 0 resource usage: req=3, scans=3, user=0.744, sys=0.088, nswap=0, majflt=0, minflt=5139, maxrss=0, bi=0, bo=0
Oct 30 17:26:09 asp mimedefang-multiplexor[7548]: started; minSlaves=2, maxSlaves=10, maxRequests=500, maxIdleTime=300, busyTimeout=600, clientTimeout=10
Oct 30 17:26:09 asp mimedefang-multiplexor[7548]: Starting slave 0 (pid 7549) (1 running): Bringing slaves up to minSlaves (2)
Oct 30 17:26:09 asp mimedefang[7562]: MIMEDefang alive. slavesReservedForLoopback=-1 AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0 doSenderCheck=0 doRecipientCheck=0
Oct 30 17:26:09 asp mimedefang[7562]: Multiplexor alive - entering main loop
Oct 30 17:26:09 asp mimedefang-multiplexor[7548]: Slave 0 stderr: Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 186, near ""MIME type message/partial not accepted here")" Compilation failed in require at /usr/bin/mimedefang.pl line 5012.
Oct 30 17:26:09 asp mimedefang-multiplexor[7548]: Reap: slave 0 (pid 7549) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
Oct 30 17:26:09 asp mimedefang-multiplexor[7548]: Slave 0 resource usage: req=0, scans=0, user=0.300, sys=0.024, nswap=0, majflt=0, minflt=2488, maxrss=0, bi=0, bo=0
Oct 30 17:26:12 asp mimedefang-multiplexor[7548]: Starting slave 0 (pid 7574) (1 running): Bringing slaves up to minSlaves (2)
Oct 30 17:26:12 asp mimedefang-multiplexor[7548]: Slave 0 stderr: Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 186, near ""MIME type message/partial not accepted here")" Compilation failed in require at /usr/bin/mimedefang.pl line 5012.
Oct 30 17:26:12 asp mimedefang-multiplexor[7548]: Reap: slave 0 (pid 7574) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
Oct 30 17:26:12 asp mimedefang-multiplexor[7548]: Slave 0 resource usage: req=0, scans=0, user=0.296, sys=0.024, nswap=0, majflt=0, minflt=2487, maxrss=0, bi=0, bo=0
/dev/pts/6
17:25:05
#/etc/init.d/mimedefang restart
Shutting down mimedefang:                                  [  ОК  ]
Shutting down mimedefang-multiplexor:                      [  ОК  ]
Waiting for daemons to exit
Starting mimedefang-multiplexor:                           [  ОК  ]
Starting mimedefang:                                       [  ОК  ]
17:25:13
#mutt
         d:Удалить  u:Восстановить  s:Сохранить  m:Создать  r:Ответить  g:Вс
+asp.linux.nt              3:01
   1   F Oct 27 To root@asp.lin (   1) test
X-Virus-Status: Clean
   2   F Oct 27 To root@asp.lin (   2) test
Zn Fri, Oct 27, 2006 at 10:13:01PM +0300, root wrote:
> rerewr
> rwerwe
[-- Вложение #2: test.exe --]
[-- Тип: application/octet-stream, кодировка: quoted-printable, размер: 0K --]
[-- тип application/octet-stream не поддерживается (используйте 'v' для
+просмотра этой части) --]
                                  Re: test                             -- (all)
   F- 2                           test
Почтовый ящик не изменился.
17:25:40
#mutt user -a test.exe

17:25:45
#vi /etc/mail/mimedefang-filter
186c186
< 	return action_bounce("MIME type message/partial not accepted here");
---
> 	return action_quarantine("MIME type message/partial not accepted here");
17:26:02
#/etc/init.d/mimedefang restart
Shutting down mimedefang:                                  [  ОК  ]
Shutting down mimedefang-multiplexor:                      [  ОК  ]
Waiting for daemons to exit
Starting mimedefang-multiplexor:                           [  ОК  ]
Starting mimedefang:                                       [  ОК  ]
17:26:10
#vi /etc/mail/mimedefang-filter
186c186,187
< 	return action_quarantine("MIME type message/partial not accepted here");
---
> 	return action_quarantine;
> ####("MIME type message/partial not accepted here");
/dev/pts/4
17:26:15
#tail -f /var/log/maillog
Oct 30 17:32:41 asp mimedefang-multiplexor[7977]: Slave 0 stderr: syntax error at /etc/mail/mimedefang-filter line 24, near "/var/spool" Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 186, near "action_quarantine;" Compilation failed in require at /usr/bin/mimedefang.pl line 5012.
Oct 30 17:32:41 asp mimedefang-multiplexor[7977]: Reap: slave 0 (pid 8040) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
Oct 30 17:32:41 asp mimedefang-multiplexor[7977]: Slave 0 resource usage: req=0, scans=0, user=0.296, sys=0.024, nswap=0, majflt=0, minflt=2485, maxrss=0, bi=0, bo=0
Oct 30 17:32:44 asp mimedefang-multiplexor[7977]: Starting slave 0 (pid 8041) (1 running): Bringing slaves up to minSlaves (2)
Oct 30 17:32:44 asp mimedefang-multiplexor[7977]: Slave 0 stderr: Bareword found where operator expected at /etc/mail/mimedefang-filter line 24, near "/var/spool"
Oct 30 17:32:44 asp mimedefang-multiplexor[7977]: Slave 0 stderr:       (Missing operator before pool?)
Oct 30 17:32:44 asp mimedefang-multiplexor[7977]: Slave 0 stderr: syntax error at /etc/mail/mimedefang-filter line 24, near "/var/spool" Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 186, near "action_quarantine;" Compilation failed in require at /usr/bin/mimedefang.pl line 5012.
Oct 30 17:32:44 asp mimedefang-multiplexor[7977]: Reap: slave 0 (pid 8041) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
Oct 30 17:32:44 asp mimedefang-multiplexor[7977]: Slave 0 resource usage: req=0, scans=0, user=0.296, sys=0.028, nswap=0, majflt=0, minflt=2485, maxrss=0, bi=0, bo=0
Oct 30 17:32:47 asp mimedefang-multiplexor[7977]: Starting slave 0 (pid 8042) (1 running): Bringing slaves up to minSlaves (2)
...
Oct 30 17:33:53 asp mimedefang-multiplexor[7977]: Starting slave 0 (pid 8085) (1 running): Bringing slaves up to minSlaves (2)
Oct 30 17:33:54 asp mimedefang-multiplexor[7977]: Slave 0 stderr: Too many arguments for main::get_quarantine_dir at /etc/mail/mimedefang-filter line 185, near "'/var/spool/MD-Quarantine')" Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 186, near "action_quarantine;" Compilation failed in require at /usr/bin/mimedefang.pl line 5012.
Oct 30 17:33:54 asp mimedefang-multiplexor[7977]: Reap: slave 0 (pid 8085) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
Oct 30 17:33:54 asp mimedefang-multiplexor[7977]: Slave 0 resource usage: req=0, scans=0, user=0.264, sys=0.056, nswap=0, majflt=0, minflt=2488, maxrss=0, bi=0, bo=0
Oct 30 17:33:56 asp mimedefang-multiplexor[7977]: Received SIGTERM: Stopping slaves and terminating
Oct 30 17:33:56 asp mimedefang-multiplexor[8121]: started; minSlaves=2, maxSlaves=10, maxRequests=500, maxIdleTime=300, busyTimeout=600, clientTimeout=10
Oct 30 17:33:56 asp mimedefang-multiplexor[8121]: Starting slave 0 (pid 8122) (1 running): Bringing slaves up to minSlaves (2)
Oct 30 17:33:56 asp mimedefang[8135]: MIMEDefang alive. slavesReservedForLoopback=-1 AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0 doSenderCheck=0 doRecipientCheck=0
Oct 30 17:33:56 asp mimedefang[8135]: Multiplexor alive - entering main loop
Oct 30 17:33:56 asp mimedefang-multiplexor[8121]: Slave 0 stderr: Too many arguments for main::get_quarantine_dir at /etc/mail/mimedefang-filter line 185, near "'/var/spool/MD-Quarantine')" Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 186, near "action_quarantine;" Compilation failed in require at /usr/bin/mimedefang.pl line 5012.
/dev/pts/8
17:27:41
#man mime
17:27:41
#man mime
17:27:41
#man mimedefang-filter
/dev/pts/6
17:30:12
#vi /etc/mail/mimedefang-filter
24c24
< 
---
>  get_quarantine_dir(/var/spool/MD-Quarantine
17:30:58
#ls /var/spool/MD-Quarantine/q

17:31:13
#/etc/init.d/mimedefang resatrt
Usage: /etc/init.d/mimedefang {start|stop|restart|condrestart|reread|reload|status}
17:31:19
#/etc/init.d/mimedefang restart
Shutting down mimedefang:                                  [  ОК  ]
Shutting down mimedefang-multiplexor:                      [  ОК  ]
Waiting for daemons to exit
Starting mimedefang-multiplexor:                           [  ОК  ]
Starting mimedefang:                                       [  ОК  ]
17:31:27
#vi /etc/mail/mimedefang-filter
24d23
<  get_quarantine_dir(/var/spool/MD-Quarantine
119c118
<  action_quarantine_entire_message("Message quarantined because of suspicious characters in headers");
---
>  	action_quarantine_entire_message("Message quarantined because of suspicious characters in headers");
186c185,186
< 	return action_quarantine;
---
> get_quarantine_dir('/var/spool/MD-Quarantine');	
> return action_quarantine;
17:33:49
#/etc/init.d/mimedefang restart
Shutting down mimedefang:                                  [  ОК  ]
Shutting down mimedefang-multiplexor:                      [  ОК  ]
Waiting for daemons to exit
Starting mimedefang-multiplexor:                           [  ОК  ]
Starting mimedefang:                                       [  ОК  ]
17:33:57
#vi /etc/mail/mimedefang-filter
186,187c186
< return action_quarantine;
< ####("MIME type message/partial not accepted here");
---
> return action_quarantine("Отправлено в карантин");
17:34:48
#/etc/init.d/mimedefang restart
Shutting down mimedefang:                                  [  ОК  ]
Shutting down mimedefang-multiplexor:                      [  ОК  ]
Waiting for daemons to exit
Starting mimedefang-multiplexor:                           [  ОК  ]
Starting mimedefang:                                       [  ОК  ]
17:34:54
#vi /etc/mail/mimedefang-filter
276c276
<     send_quarantine_notifications();
---
> #    send_quarantine_notifications();
17:35:41
#/etc/init.d/mimedefang restart
Shutting down mimedefang:                                  [  ОК  ]
Shutting down mimedefang-multiplexor:                      [  ОК  ]
Waiting for daemons to exit
Starting mimedefang-multiplexor:                           [  ОК  ]
Starting mimedefang:                                       [  ОК  ]
17:35:48
#vi /etc/mail/mimedefang-filter
17:35:54
#mv /etc/mail/mimedefang-filter.rpm
mimedefang-filter.rpmnew   mimedefang-filter.rpmsave
17:35:54
#mv /etc/mail/mimedefang-filter
mimedefang-filter          mimedefang-filter.rpmsave
mimedefang-filter.rpmnew
17:36:18
#vi
17:36:18
#/etc/init.d/mimedefang restart
Shutting down mimedefang:                                  [  ОК  ]
Shutting down mimedefang-multiplexor:                      [  ОК  ]
Waiting for daemons to exit
Starting mimedefang-multiplexor:                           [  ОК  ]
Starting mimedefang:                                       [  ОК  ]
17:36:27
#/etc/init.d/mimedefang restart

17:36:27
#vi
17:36:27
#vi /etc/mail/mimedefang-filter
17:36:37
#yum remove mimedefang*
Setting up Remove Process
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package mimedefang-debuginfo.i386 0:2.57-1 set to be erased
---> Package mimedefang-contrib.i386 0:2.57-1 set to be erased
---> Package mimedefang.i386 0:2.57-1 set to be erased
--> Running transaction check
Dependencies Resolved
=============================================================================
 Package                 Arch       Version          Repository        Size
...
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Removing  : mimedefang-contrib           ######################### [1/3]
warning: /etc/sysconfig/mimedefang saved as /etc/sysconfig/mimedefang.rpmsave
warning: /etc/mail/mimedefang-filter saved as /etc/mail/mimedefang-filter.rpmsave
  Removing  : mimedefang                   ######################### [2/3]
Removed: mimedefang.i386 0:2.57-1 mimedefang-contrib.i386 0:2.57-1 mimedefang-debuginfo.i386 0:2.57-1
Complete!
17:37:01
#yum searcm mimedefang
usage: yum [options] < update | install | info | remove | list |
    clean | provides | search | check-update | groupinstall |
    groupupdate | grouplist | groupinfo | groupremove |
    makecache | localinstall | erase | upgrade | whatprovides |
    localupdate | resolvedep | shell | deplist >
options:
  -h, --help            show this help message and exit
  -t, --tolerant        be tolerant of errors
  -C                    run entirely from cache, don't update cache
  -c  [config file]     config file location
  -R  [minutes]         maximum command wait time
  -d  [debug level]     debugging output level
  -e  [error level]     error output level
  -y                    answer yes for all questions
  --version             show Yum version and exit
  --installroot=[path]  set install root
  --enablerepo=[repo]   enable one or more repositories (wildcards allowed)
  --disablerepo=[repo]  disable one or more repositories (wildcards allowed)
  --exclude=[package]   exclude package(s) by name or glob
  --obsoletes           enable obsoletes processing during updates
  --noplugins           disable Yum plugins
17:37:14
#yum search mimedefang
Searching Packages:
Setting up repositories
base                      100% |=========================|  951 B    00:00
updates-released          100% |=========================|  951 B    00:00
Reading repository metadata in from local files
No Matches found
17:37:32
#rpm -i /usr/src/asplinux/RPMS/i386/mimedefang-*
ошибка: Неудовлетворенные зависимости:
        perl(Unix::Syslog) нужен для mimedefang-2.57-1.i386
17:37:53
#rpm -i /usr/src/asplinux/RPMS/i386/mimedefang-* --no-deps
--no-deps: неизвестный параметр
17:37:58
#rpm -i /usr/src/asplinux/RPMS/i386/mimedefang-* --nodeps
In order to complete the installation of mimedefang, you will need to add the
following line to your sendmail mc file:
   INPUT_MAIL_FILTER(`mimedefang', `S=unix:/var/spool/MIMEDefang/mimedefang.sock, F=T, T=S:1m;R:1m;E:5m')
Use the sendmail-cf package to rebuild your /etc/mail/sendmail.cf file and
restart your sendmail daemon.
17:38:02
#/etc/init.d/mimedefang restart
Starting mimedefang-multiplexor:                           [  ОК  ]
Starting mimedefang:                                       [  ОК  ]
17:38:14
#vi /etc/mail/mimedefang-filter
230c230,233
< 	return action_drop_with_warning("An attachment of type $type, named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
---
> 	
> 
> #return action_drop_with_warning("An attachment of type $type, named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
> 	eturn action_quarantine("An attachment of type $type, named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
236,237c239,241
< 	return action_drop_with_warning("A non-message/rfc822 attachment named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
<     }
---
> 	return action_quarantine("A non-message/rfc822 attachment named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
>     
> }
/dev/pts/8
17:38:21
#mutt
q:Выход  c:Перейти в:   m:Маска  ?:Помощь
 1     drwxr-xr-x 25 root     root         4096 Oct 30 13:06 ../
 1     drwxr-xr-x 25 root     root        16384 Oct 27 02:37 lost+found/
 2     drwx------  2 root     root        16384 Oct 27 02:37 lost+found/
 3     drwxr-xr-x 18 user     user
-- Mutt: Каталог [/home], маска файла: !^\.[^.]
прошло 12 минут
/dev/pts/4
17:51:00
#/usr/lib/sendmail -bv -d0.1]
Version 8.13.7
 Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
                MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
                NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
                TCPWRAPPERS USERDB USE_LDAP_INIT
============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = asp
  (canonical domain name) $j = asp.linux.nt
         (subdomain name) $m = linux.nt
              (node name) $k = asp.linux.nt
========================================================
Recipient names must be specified
17:51:02
#/usr/lib/sendmail -bv -d0.1
Version 8.13.7
 Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
                MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
                NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
                TCPWRAPPERS USERDB USE_LDAP_INIT
============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = asp
  (canonical domain name) $j = asp.linux.nt
         (subdomain name) $m = linux.nt
              (node name) $k = asp.linux.nt
========================================================
Recipient names must be specified
17:51:07
#vi /etc/mail/mimedefang-filter
17:54:37
#q
bash: q: command not found
17:54:38
#tail -f /var/log/maillog
Oct 30 17:56:09 asp mimedefang[8636]: MIMEDefang-2.57: mi_stop=1
Oct 30 17:56:09 asp mimedefang-multiplexor[8622]: Received SIGTERM: Stopping slaves and terminating
Oct 30 17:56:09 asp mimedefang-multiplexor[8622]: Reap: slave 1 (pid 8647) exited normally with status 0
Oct 30 17:56:09 asp mimedefang-multiplexor[8622]: Slave 1 resource usage: req=0, scans=0, user=0.660, sys=0.064, nswap=0, majflt=0, minflt=5052, maxrss=0, bi=0, bo=0
Oct 30 17:56:09 asp mimedefang-multiplexor[8622]: Reap: slave 0 (pid 8623) exited normally with status 0
Oct 30 17:56:09 asp mimedefang-multiplexor[8622]: Slave 0 resource usage: req=1, scans=1, user=1.280, sys=0.092, nswap=0, majflt=0, minflt=8068, maxrss=0, bi=0, bo=0
Oct 30 17:56:09 asp mimedefang-multiplexor[8954]: started; minSlaves=2, maxSlaves=10, maxRequests=500, maxIdleTime=300, busyTimeout=600, clientTimeout=10
Oct 30 17:56:09 asp mimedefang-multiplexor[8954]: Starting slave 0 (pid 8955) (1 running): Bringing slaves up to minSlaves (2)
Oct 30 17:56:09 asp mimedefang[8968]: MIMEDefang alive. slavesReservedForLoopback=-1 AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0 doSenderCheck=0 doRecipientCheck=0
Oct 30 17:56:09 asp mimedefang[8968]: Multiplexor alive - entering main loop
...
Oct 30 17:56:12 asp mimedefang-multiplexor[8954]: Slave 0 resource usage: req=0, scans=0, user=0.284, sys=0.036, nswap=0, majflt=0, minflt=2488, maxrss=0, bi=0, bo=0
Oct 30 17:56:15 asp mimedefang-multiplexor[8954]: Starting slave 0 (pid 8981) (1 running): Bringing slaves up to minSlaves (2)
Oct 30 17:56:15 asp mimedefang-multiplexor[8954]: Slave 0 stderr: Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 233, near ")" Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 239, near ")" Compilation failed in require at /usr/bin/mimedefang.pl line 5012.
Oct 30 17:56:15 asp mimedefang-multiplexor[8954]: Reap: slave 0 (pid 8981) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
Oct 30 17:56:15 asp mimedefang-multiplexor[8954]: Slave 0 resource usage: req=0, scans=0, user=0.292, sys=0.028, nswap=0, majflt=0, minflt=2487, maxrss=0, bi=0, bo=0
Oct 30 17:56:18 asp mimedefang-multiplexor[8954]: Starting slave 0 (pid 8982) (1 running): Bringing slaves up to minSlaves (2)
Oct 30 17:56:18 asp mimedefang-multiplexor[8954]: Slave 0 stderr: Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 233, near ")" Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 239, near ")" Compilation failed in require at /usr/bin/mimedefang.pl line 5012.
Oct 30 17:56:18 asp mimedefang-multiplexor[8954]: Reap: slave 0 (pid 8982) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
Oct 30 17:56:18 asp mimedefang-multiplexor[8954]: Slave 0 resource usage: req=0, scans=0, user=0.296, sys=0.028, nswap=0, majflt=0, minflt=2494, maxrss=0, bi=0, bo=0
    330     # Some viruses produce malformed MIME messages tha342,2         99%
/dev/pts/10
17:55:58
#/etc/init.d/mimedefang restart
Shutting down mimedefang:                                  [  ОК  ]
Shutting down mimedefang-multiplexor:                      [  ОК  ]
Waiting for daemons to exit
Starting mimedefang-multiplexor:                           [  ОК  ]
Starting mimedefang:                                       [  ОК  ]
17:56:10
#/etc/init.d/mimedefang restart
Shutting down mimedefang:                                  [  ОК  ]
Shutting down mimedefang-multiplexor:                      [  ОК  ]
Waiting for daemons to exit
Starting mimedefang-multiplexor:                           [  ОК  ]
Starting mimedefang:                                       [  ОК  ]
/dev/pts/4
17:56:20
#tail -f /var/log/maillog
        me was removed from this document as it\nconstituted a security hazard.
         If you require this document, please contact\nthe sender and arrange ann
         alternate means of receiving it.\n");
    234     }
    235
    236     # eml is bad if it's not message/rfc822
        $fname was removed from this document as it\nconstituted a security hazaa
        rd.  If you require this document, please contact\nthe sender and arrangg
        e an alternate means of receiving it.\n");
    238         md_graphdefang_log('non_rfc822',$fname);
...
Oct 30 17:58:41 asp mimedefang-multiplexor[9097]: Starting slave 0 (pid 9098) (1 running): Bringing slaves up to minSlaves (2)
    252
Oct 30 17:58:41 asp mimedefang[9111]: Multiplexor alive - entering main loop
    253
Oct 30 17:58:41 asp mimedefang-multiplexor[9097]: Slave 0 stderr: Bareword found where operator expected at /etc/mail/mimedefang-filter line 233, near "eturn action_quarantine"
    254 #***********************************************************************
Oct 30 17:58:41 asp mimedefang-multiplexor[9097]: Slave 0 stderr: 5     (Do you need to predeclare eturn?)
Oct 30 17:58:41 asp mimedefang-multiplexor[9097]: Slave 0 stderr: syntax error at /etc/mail/mimedefang-filter line 233, near "eturn action_quarantine" Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 239, near ")" Compilation failed in require at /usr/bin/mimedefang.pl line 5012.
Oct 30 17:58:41 asp mimedefang-multiplexor[9097]: Reap: slave 0 (pid 9098) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
Oct 30 17:58:41 asp mimedefang-multiplexor[9097]: Slave 0 resource usage: req=0, scans=0, user=0.288, sys=0.040, nswap=0, majflt=0, minflt=2490, maxrss=0, bi=0, bo=0
/dev/pts/6
17:58:31
#vi /etc/mail/mimedefang-filter
233c233
< 	eturn action_quarantine("An attachment of type $type, named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
---
> return action_quarantine("An attachment of type $type, named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
/dev/pts/10
17:58:42
#/etc/init.d/mimedefang restart
Shutting down mimedefang:                                  [  ОК  ]
Shutting down mimedefang-multiplexor:                      [  ОК  ]
Waiting for daemons to exit
Starting mimedefang-multiplexor:                           [  ОК  ]
Starting mimedefang:                                       [  ОК  ]
/dev/pts/4
17:58:44
#tail -f /var/log/maillog
    236     # eml is bad if it's not message/rfc822
        $fname was removed from this document as it\nconstituted a security hazaa
        rd.  If you require this document, please contact\nthe sender and arrangg
        e an alternate means of receiving it.\n");
    238         md_graphdefang_log('non_rfc822',$fname);
    240
    239 Oct 30 17:58:59 asp mimedefang-multiplexor[9097]: Slave 0 resource usage: req=0, scans=0, user=0.268, sys=0.052, nswap=0, majflt=0, minflt=2488, maxrss=0, bi=0, bo=0
    241 }
Oct 30 17:59:01 asp mimedefang[9111]: MIMEDefang-2.57: mi_stop=1
    242
...
Oct 30 17:59:06 asp mimedefang-multiplexor[9186]: Slave 0 resource usage: req=0, scans=0, user=0.276, sys=0.044, nswap=0, majflt=0, minflt=2488, maxrss=0, bi=0, bo=0
    254 #*****************************************************233,1*********69%*
Oct 30 17:59:08 asp mimedefang-multiplexor[9186]: Starting slave 0 (pid 9213) (1 running): Bringing slaves up to minSlaves (2)
Oct 30 17:59:08 asp mimedefang-multiplexor[9186]: Slave 0 stderr: Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 233, near ")" Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 239, near ")" Compilation failed in require at /usr/bin/mimedefang.pl line 5012.
Oct 30 17:59:08 asp mimedefang-multiplexor[9186]: Reap: slave 0 (pid 9213) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
Oct 30 17:59:08 asp mimedefang-multiplexor[9186]: Slave 0 resource usage: req=0, scans=0, user=0.312, sys=0.016, nswap=0, majflt=0, minflt=2488, maxrss=0, bi=0, bo=0
Oct 30 17:59:11 asp mimedefang-multiplexor[9186]: Starting slave 0 (pid 9215) (1 running): Bringing slaves up to minSlaves (2)
Oct 30 17:59:11 asp mimedefang-multiplexor[9186]: Slave 0 stderr: Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 233, near ")" Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 239, near ")" Compilation failed in require at /usr/bin/mimedefang.pl line 5012.
Oct 30 17:59:11 asp mimedefang-multiplexor[9186]: Reap: slave 0 (pid 9215) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
Oct 30 17:59:11 asp mimedefang-multiplexor[9186]: Slave 0 resource usage: req=0, scans=0, user=0.284, sys=0.040, nswap=0, majflt=0, minflt=2488, maxrss=0, bi=0, bo=0
/dev/pts/6
17:58:56
#vi /etc/mail/mimedefang-filter
239c239
< 	return action_quarantine("A non-message/rfc822 attachment named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
---
> #	return action_quarantine("A non-message/rfc822 attachment named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
/dev/pts/10
17:59:03
#/etc/init.d/mimedefang restart
Shutting down mimedefang:                                  [  ОК  ]
Shutting down mimedefang-multiplexor:                      [  ОК  ]
Waiting for daemons to exit
Starting mimedefang-multiplexor:                           [  ОК  ]
Starting mimedefang:                                       [  ОК  ]
/dev/pts/4
17:59:12
#Ãtail -f /var/log/maillog
Oct 30 17:59:41 asp mimedefang-multiplexor[9186]: Slave 0 resource usage: req=0, scans=0, user=0.288, sys=0.036, nswap=0, majflt=0, minflt=2488, maxrss=0, bi=0, bo=0
    249
Oct 30 17:59:44 asp mimedefang-multiplexor[9186]: Starting slave 0 (pid 9248) (1 running): Bringing slaves up to minSlaves (2)
    250     return action_accept();
Oct 30 17:59:44 asp mimedefang-multiplexor[9186]: Slave 0 stderr: Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 233, near ")" Compilation failed in require at /usr/bin/mimedefang.pl line 5012.
    251 }
Oct 30 17:59:44 asp mimedefang-multiplexor[9186]: Reap: slave 0 (pid 9248) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
    252
Oct 30 17:59:44 asp mimedefang-multiplexor[9186]: Slave 0 resource usage: req=0, scans=0, user=0.308, sys=0.016, nswap=0, majflt=0, minflt=2496, maxrss=0, bi=0, bo=0
    253
...
Oct 30 17:59:52 asp mimedefang-multiplexor[9291]: Starting slave 0 (pid 9292) (1 running): Bringing slaves up to minSlaves (2)
Oct 30 17:59:52 asp mimedefang[9305]: MIMEDefang alive. slavesReservedForLoopback=-1 AllowNewConnectionsToQueue=0 doRelayCheck=0 doHeloCheck=0 doSenderCheck=0 doRecipientCheck=0
Oct 30 17:59:52 asp mimedefang[9305]: Multiplexor alive - entering main loop
Oct 30 17:59:52 asp mimedefang-multiplexor[9291]: Slave 0 stderr: Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 233, near ")" Compilation failed in require at /usr/bin/mimedefang.pl line 5012.
Oct 30 17:59:52 asp mimedefang-multiplexor[9291]: Reap: slave 0 (pid 9292) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
Oct 30 17:59:52 asp mimedefang-multiplexor[9291]: Slave 0 resource usage: req=0, scans=0, user=0.304, sys=0.016, nswap=0, majflt=0, minflt=2490, maxrss=0, bi=0, bo=0
Oct 30 17:59:55 asp mimedefang-multiplexor[9291]: Starting slave 0 (pid 9316) (1 running): Bringing slaves up to minSlaves (2)
Oct 30 17:59:55 asp mimedefang-multiplexor[9291]: Slave 0 stderr: Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 233, near ")" Compilation failed in require at /usr/bin/mimedefang.pl line 5012.
Oct 30 17:59:55 asp mimedefang-multiplexor[9291]: Reap: slave 0 (pid 9316) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
Oct 30 17:59:55 asp mimedefang-multiplexor[9291]: Slave 0 resource usage: req=0, scans=0, user=0.296, sys=0.028, nswap=0, majflt=0, minflt=2487, maxrss=0, bi=0, bo=0
/dev/pts/6
17:59:38
#vi /etc/mail/mimedefang-filter
230,233c230
< 	
< 
< #return action_drop_with_warning("An attachment of type $type, named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
< return action_quarantine("An attachment of type $type, named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
---
> 	return action_drop_with_warning("An attachment of type $type, named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
239c236
< #	return action_quarantine("A non-message/rfc822 attachment named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
---
> 	return action_drop_with_warning("A non-message/rfc822 attachment named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
/dev/pts/10
17:59:53
#/etc/init.d/mimedefang restart
Shutting down mimedefang:                                  [  ОК  ]
Shutting down mimedefang-multiplexor:                      [  ОК  ]
Waiting for daemons to exit
Starting mimedefang-multiplexor:                           [  ОК  ]
Starting mimedefang:                                       [  ОК  ]
/dev/pts/4
17:59:56
#tail -f /var/log/maillog
Oct 30 18:01:20 asp mimedefang-multiplexor[9453]: Starting slave 0 (pid 9487) (1 running): Bringing slaves up to minSlaves (2)
Oct 30 18:01:21 asp mimedefang-multiplexor[9453]: Slave 0 stderr: Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 233, near ")" Compilation failed in require at /usr/bin/mimedefang.pl line 5012.
Oct 30 18:01:21 asp mimedefang-multiplexor[9453]: Reap: slave 0 (pid 9487) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
Oct 30 18:01:21 asp mimedefang-multiplexor[9453]: Slave 0 resource usage: req=0, scans=0, user=0.284, sys=0.036, nswap=0, majflt=0, minflt=2487, maxrss=0, bi=0, bo=0
Oct 30 18:01:23 asp mimedefang-multiplexor[9453]: Starting slave 0 (pid 9488) (1 running): Bringing slaves up to minSlaves (2)
Oct 30 18:01:23 asp mimedefang-multiplexor[9453]: Slave 0 stderr: Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 233, near ")" Compilation failed in require at /usr/bin/mimedefang.pl line 5012.
Oct 30 18:01:23 asp mimedefang-multiplexor[9453]: Reap: slave 0 (pid 9488) exited normally with status 255 (SLAVE DIED UNEXPECTEDLY)
Oct 30 18:01:23 asp mimedefang-multiplexor[9453]: Slave 0 resource usage: req=0, scans=0, user=0.280, sys=0.040, nswap=0, majflt=0, minflt=2487, maxrss=0, bi=0, bo=0
Oct 30 18:01:26 asp mimedefang-multiplexor[9453]: Starting slave 0 (pid 9490) (1 running): Bringing slaves up to minSlaves (2)
Oct 30 18:01:26 asp mimedefang-multiplexor[9453]: Slave 0 stderr: Not enough arguments for main::action_quarantine at /etc/mail/mimedefang-filter line 233, near ")" Compilation failed in require at /usr/bin/mimedefang.pl line 5012.
...
Oct 30 18:15:56 asp mimedefang.pl[9772]: MDLOG,k9UGFslK010056,bad_filename,Thunderbird Setup 1.5.0.4.exe,application/octet-stream,<root@asp.linux.nt>,<user@asp.linux.nt>,re
Oct 30 18:15:56 asp mimedefang.pl[9772]: MDLOG,k9UGFslK010056,mail_in,,,<root@asp.linux.nt>,<user@asp.linux.nt>,re
Oct 30 18:15:57 asp mimedefang.pl[9772]: filter: k9UGFslK010056:  quarantine=1
Oct 30 18:15:57 asp sendmail[10056]: k9UGFslK010056: Milter change: header Content-Type: from multipart/mixed; boundary="fdj2RfSjLxBAspz7" to multipart/mixed; boundary="fdj2RfSjLxBAspz7"
Oct 30 18:15:57 asp sendmail[10056]: k9UGFslK010056: Milter change: header MIME-Version: from 1.0 to 1.0
Oct 30 18:15:57 asp sendmail[10056]: k9UGFslK010056: Milter change: header Content-Disposition: from inline to inline
Oct 30 18:15:57 asp sendmail[10056]: k9UGFslK010056: Milter message: body replaced
Oct 30 18:15:58 asp sendmail[10056]: k9UGFslK010056: Milter add: header: X-Scanned-By: MIMEDefang 2.57 on 192.168.15.150
Oct 30 18:15:58 asp sendmail[10055]: k9UGFr4G010055: to=user@asp.linux.nt, ctladdr=root (0/0), delay=00:00:05, xdelay=00:00:04, mailer=relay, pri=8588821, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k9UGFslK010056 Message accepted for delivery)
Oct 30 18:15:59 asp sendmail[10059]: k9UGFslK010056: to=<user@asp.linux.nt>, ctladdr=<root@asp.linux.nt> (0/0), delay=00:00:05, xdelay=00:00:01, mailer=local, pri=8613319, dsn=2.0.0, stat=Sent
/dev/pts/10
18:00:31
#/etc/init.d/mimedefang restart
Shutting down mimedefang:                                  [  ОК  ]
Shutting down mimedefang-multiplexor:                      [  ОК  ]
Waiting for daemons to exit
Starting mimedefang-multiplexor:                           [  ОК  ]
Starting mimedefang:                                       [  ОК  ]
18:01:00
#/etc/init.d/mimedefang restart
Shutting down mimedefang:                                  [  ОК  ]
Shutting down mimedefang-multiplexor:                      [  ОК  ]
Waiting for daemons to exit
Starting mimedefang-multiplexor:                           [  ОК  ]
Starting mimedefang:                                       [  ОК  ]
/dev/pts/6
18:02:00
#vi /etc/mail/mimedefang-filter
119c119
< 	# action_quarantine_entire_message("Message quarantined because of suspicious characters in headers");
---
> 	action_quarantine_entire_message("Message quarantined because of suspicious characters in headers");
135c135
<     # $FoundVirus = ($action eq "quarantine");
---
>     $FoundVirus = ($action eq "quarantine");
186c186,187
< 	return action_drop_with_warning("An attachment named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
---
> 	action_quarantine($entity, "A known virus was discovered and deleted. Virus-scanner messages follow:\n$VirusScannerMessages\n\n");
> #return action_drop_with_warning("An attachment named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
192c193,194
< 	return action_drop_with_warning("A non-multipart attachment named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
---
> 	action_quarantine($entity, "A known virus was discovered and deleted. Virus-scanner messages follow:\n$VirusScannerMessages\n\n");
> 	#return action_drop_with_warning("A non-multipart attachment named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
230c232,233
< 	return action_drop_with_warning("An attachment of type $type, named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
---
> 	action_quarantine($entity, "A known virus was discovered and deleted. Virus-scanner messages follow:\n$VirusScannerMessages\n\n");
> #	return action_drop_with_warning("An attachment of type $type, named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
236c239,240
< 	return action_drop_with_warning("A non-message/rfc822 attachment named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
---
> 	action_quarantine($entity, "A known virus was discovered and deleted. Virus-scanner messages follow:\n$VirusScannerMessages\n\n");
> #	return action_drop_with_warning("A non-message/rfc822 attachment named $fname was removed from this document as it\nconstituted a security hazard.  If you require this document, please contact\nthe sender and arrange an alternate means of receiving it.\n");
/dev/pts/10
18:02:12
#man mime
18:02:12
#man mimedefang.pl
18:04:17
#mimedefang.pl -f /etc/mail/mimedefang-filter -test
Filter /etc/mail/mimedefang-filter seems syntactically correct.
18:04:36
#mimedefang.pl -f /etc/mail/mimedefang-filter -test
Filter /etc/mail/mimedefang-filter seems syntactically correct.
18:06:43
#mimedefang.pl -f /etc/mail/mimedefang-filter -test
Filter /etc/mail/mimedefang-filter seems syntactically correct.
18:08:20
#mimedefang.pl -f /etc/mail/mimedefang-filter -test
Filter /etc/mail/mimedefang-filter seems syntactically correct.
18:08:50
#mimedefang.pl -f /etc/mail/mimedefang-filter -test
Filter /etc/mail/mimedefang-filter seems syntactically correct.
18:10:22
#/etc/init.d/mimedefang restart
Shutting down mimedefang:                                  [  ОК  ]
Shutting down mimedefang-multiplexor:                      [  ОК  ]
Waiting for daemons to exit
Starting mimedefang-multiplexor:                           [  ОК  ]
Starting mimedefang:                                       [  ОК  ]
18:10:35
#ls -l /var/
account/    db/         local/      mail/       opt/        spool/
cache/      empty/      lock/       MIMEDefang/ preserve/   tmp/
clamav/     gdm/        log/        named/      racoon/     www/
cvs/        lib/        lost+found/ nis/        run/        yp/
18:10:35
#ls -l /var/MIMEDefang/
итого 0
18:11:46
#ls -l /var/spool/MD-Quarantine/
итого 4
drwxr-x---  2 defang defang 4096 Окт 30 18:11 qdir-2006-10-30-18.11.04-001
18:11:53
#ls -l /var/spool/MD-Quarantine/qdir-2006-10-30-18.11.04-001/
HEADERS         PART.1.BODY     RECIPIENTS      SENDMAIL-QID
MSG.1           PART.1.HEADERS  SENDER
18:11:53
#ls -l /var/spool/MD-Quarantine/qdir-2006-10-30-18.11.04-001/
итого 24
-rw-r-----  1 defang defang 432 Окт 30 18:11 HEADERS
-rw-r-----  1 defang defang  76 Окт 30 18:11 MSG.1
-rw-r-----  1 defang defang   0 Окт 30 18:11 PART.1.BODY
-rw-r-----  1 defang defang 136 Окт 30 18:11 PART.1.HEADERS
-rw-r-----  1 defang defang  20 Окт 30 18:11 RECIPIENTS
-rw-r-----  1 defang defang  20 Окт 30 18:11 SENDER
-rw-r-----  1 defang defang  15 Окт 30 18:11 SENDMAIL-QID
18:12:05
#vi /var/spool/MD-Quarantine/qdir-2006-10-30-18.11.04-001/HEADERS
18:12:21
#vi /var/spool/MD-Quarantine/qdir-2006-10-30-18.11.04-001/PART.1.
18:12:39
#vi /var/spool/MD-Quarantine/qdir-2006-10-30-18.11.04-001/SENDER
18:12:56
#vi /var/spool/MD-Quarantine/qdir-2006-10-30-18.11.04-001/RECIPIEN
18:13:09
#vi /var/spool/MD-Quarantine/qdir-2006-10-30-18.11.04-001/PART.1.B
18:13:09
#ls -l /var/MD
ls: /var/MD: Нет такого файла или каталога
18:13:24
#ls -l /var/spool/MD-Quarantine/
итого 8
drwxr-x---  2 defang defang 4096 Окт 30 18:13 qdir-2006-10-30-18.11.04-001
drwxr-x---  2 defang defang 4096 Окт 30 18:11 qdir-2006-10-30-18.11.57-001
18:13:29
#ls -l /var/spool/MD-Quarantine/

18:13:33
#tree /var/spool/MD-Quarantine/
bash: tree: command not found
18:13:36
#yum install tree
Setting up Install Process
Setting up repositories
base                      100% |=========================|  951 B    00:00
updates-released          100% |=========================|  951 B    00:00
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for tree to pack into transaction set.
tree-1.5.0-3.i386.rpm     100% |=========================| 4.8 kB    00:00
...
Is this ok [y/N]: y
Downloading Packages:
(1/1): tree-1.5.0-3.i386. 100% |=========================|  26 kB    00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: tree                         ######################### [1/1]
Installed: tree.i386 0:1.5.0-3
Complete!
18:13:59
#tree /var/spool/MD-Quarantine/
/var/spool/MD-Quarantine/
|-- qdir-2006-10-30-18.11.04-001
|   |-- HEADERS
|   |-- MSG.1
|   |-- PART.1.BODY
|   |-- PART.1.HEADERS
|   |-- RECIPIENTS
|   |-- SENDER
|   `-- SENDMAIL-QID
`-- qdir-2006-10-30-18.11.57-001
    |-- HEADERS
    |-- MSG.1
    |-- PART.1.BODY
    |-- PART.1.HEADERS
    |-- RECIPIENTS
    |-- SENDER
    `-- SENDMAIL-QID
2 directories, 14 files
18:14:02
#tree /var/spool/MD-Quarantine/
/var/spool/MD-Quarantine/
|-- qdir-2006-10-30-18.11.04-001
|   |-- HEADERS
|   |-- MSG.1
|   |-- PART.1.BODY
|   |-- PART.1.HEADERS
|   |-- RECIPIENTS
|   |-- SENDER
|   `-- SENDMAIL-QID
`-- qdir-2006-10-30-18.11.57-001
    |-- HEADERS
    |-- MSG.1
    |-- PART.1.BODY
    |-- PART.1.HEADERS
    |-- RECIPIENTS
    |-- SENDER
    `-- SENDMAIL-QID
2 directories, 14 files
18:14:12
#tree /var/spool/MD-Quarantine/
/var/spool/MD-Quarantine/
|-- qdir-2006-10-30-18.11.04-001
|   |-- HEADERS
|   |-- MSG.1
|   |-- PART.1.BODY
|   |-- PART.1.HEADERS
|   |-- RECIPIENTS
|   |-- SENDER
|   `-- SENDMAIL-QID
|-- qdir-2006-10-30-18.11.57-001
...
|   `-- SENDMAIL-QID
`-- qdir-2006-10-30-18.15.56-001
    |-- HEADERS
    |-- MSG.1
    |-- PART.1.BODY
    |-- PART.1.HEADERS
    |-- RECIPIENTS
    |-- SENDER
    `-- SENDMAIL-QID
3 directories, 21 files
/dev/pts/8
18:15:38
#mutt
         Bcc:
   3 r F Oct 27 To root@asp.lin (  16) Re: test
     Subject: re
   4   F Oct 28 To root@asp.lin (  33) Re: test
    Reply-To:
         Fcc:
    Security: Не применять
-- Вложения
- I     1 /tmp/mutt-asp-0-10051-0            [text/plain, 7bit, us-ascii, 0,1K]
СообщениÐено.
  -      /var/spool/mail/root [Msgs:4 4,6K]---(date/date)               (all)
Почтовый ящик не изменился.
/dev/pts/10
18:16:07
#tree /var/spool/MIMEDefang/
clamd.sock                   mimedefang.pid
mimedefang-multiplexor.pid   mimedefang.sock
mimedefang-multiplexor.sock
18:16:07
#tree /var/spool/MD-Quarantine/
/var/spool/MD-Quarantine/
|-- qdir-2006-10-30-18.11.04-001
|   |-- HEADERS
|   |-- MSG.1
|   |-- PART.1.BODY
|   |-- PART.1.HEADERS
|   |-- RECIPIENTS
|   |-- SENDER
|   `-- SENDMAIL-QID
|-- qdir-2006-10-30-18.11.57-001
...
|   `-- SENDMAIL-QID
`-- qdir-2006-10-30-18.15.56-001
    |-- HEADERS
    |-- MSG.1
    |-- PART.1.BODY
    |-- PART.1.HEADERS
    |-- RECIPIENTS
    |-- SENDER
    `-- SENDMAIL-QID
3 directories, 21 files
18:16:29
#cat /var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/
cat: /var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/: Это каталог
18:16:42
#cat /var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/*
mí¼òÿÿÿÿðíìêë
m®®µµ           ݵµ®®
mïððòÿÿÿÿÿÿÿÿó¼÷ìm®µÝÝÝÝóôò®®
ì¼ð¼¼òÿÿÿÿÿÿÿÿÿÜÜÜ´®ìÖÝÝÝÝÝÝóôôÿï®
÷ð÷¼òÿÿÿÿÿÿÿÿÿÜÜÜ       ®µÖÖÝÝÝÝÝÝÝóôÿÿò®
÷ï÷¼ðòÿÿÿqôÿÜÜÜ®µÖÖÖÖÝÝÝÝÝÝÝôÿÿÿò®
÷¼¼ïò----Uq‘´´®ÖÖÖÖÖÖÝÝÝÝÝÝÝÿÿÿÿÿñ®
÷¼íïðò--------®ÖÖÖÖÖÖÖÖÝÝÝÝÝÝÿÿÿÿÿÿï®
÷¼ðñðñ....---lìÝÖÖÖÖÖÖÖÖÝÝÝÝÝôÿÿÿÿÿÿÿ®
÷ñññññUUUU---®  ÝÝÖÖÖÖÖÖÖÖÝÝÝÝÿÿÿÿÿÿÿÿ¼®
...
ïòòòòòÝÝÝ}}}}ySëµÝÝÝÝÝÝÝôÿÝ®Ý   ®ÝÿÝÝÝÝÝÝÝÝìì
ïòòòòòÝÝÝ}ySSSSLµÝÝÝÝÝÝÝôÿÿ¼®ì®µÝÿÝÖÝÝÝÝÝÝìì
ïóòòòòÜÜÜSSSSSSLìÝÝÝÝôÿÿÿÞÿݵÖÝÿÿÖÖÖÝÝÝÝÝ®
ïóóòòòÜÜÜSSSSSSL®ÝÝôÿÿÿÿÿÿÿÞÞÞÞÞÿÝÖÖÖÖÝÝÝ       ®
ïóÔ     òÜÜܓSSSSSSëÿÿÿÿÿÿÿÿÿÞÞÞÞÞÝÖÖÖÖÖÖÝݵ®ì
ïÜÓÓ    òÜÜÜÜÜܼ“LL®ÿÿÿÿÿÿÿÿÿÝÝÝÝÝÖÖÖÖÖÖÖÖÝì
ÛÓÓ     òÜÜÜÜÜÜÜÜÜÜÖ®¼ÿÿÿÿÿÿÿÿÝÝÝÝÝÝÖÖÖÖÖÖÖÖ®m
ÛÓ¬     òÜÜÜÜÜÜÜÜÜÜܵ®ôÿÿÿÿÿÿóÝÝÝÝÝÝÝÖÖÖÖÖÖµ
Û¬¬     òÜÜÜÜÜÜÜÜÜÜÜÜ®µÿÿÿÿÿÿÝÝÝÝÝÝÝÝÖÖÖÖÖ®ì
Û¬¬     ÛÛÛÛÛÛÛÛÛÛÛÛ    ®µÿÿÿÿÿóÝÝÝÝÝÝÝÝÖÖÖ®®
18:16:49
#cat /var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/
HEADERS         PART.1.BODY     RECIPIENTS      SENDMAIL-QID
MSG.1           PART.1.HEADERS  SENDER
18:16:55
#cat /var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/HEADERS

18:16:55
#cat /var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/MSG.1
A known virus was discovered and deleted. Virus-scanner messages follow:
18:17:23
#file /var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/PART.1

18:17:23
#file /var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/PART.1.
HEADERS
/var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/PART.1.HEADERS: application/octet-stream
18:17:41
#cat /var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/PART.1.

18:17:41
#cat /var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/PART.1.
PART.1.BODY     PART.1.HEADERS

Файлы

  • /var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/
  • /var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/HEADERS
  • /var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/MSG.1
  • /var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/PART.1.
  • /var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/
    >
    HEADERS         PART.1.BODY     RECIPIENTS      SENDMAIL-QID
    MSG.1           PART.1.HEADERS  SENDER
    
    /var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/HEADERS
    >
    /var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/MSG.1
    >
    A known virus was discovered and deleted. Virus-scanner messages follow:
    
    /var/spool/MD-Quarantine/qdir-2006-10-30-18.15.56-001/PART.1.
    >
    PART.1.BODY     PART.1.HEADERS
    

    Статистика

    Время первой команды журнала17:23:33 2006-10-30
    Время последней команды журнала18:17:41 2006-10-30
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %14.85
    Процент синтаксически неверно набранных команд, % 1.98
    Суммарное время работы с терминалом *, час 0.90
    Количество командных строк в единицу времени, команда/мин 1.87
    Частота использования команд
    vi22|=====================| 21.78%
    /etc/init.d/mimedefang18|=================| 17.82%
    ls12|===========| 11.88%
    cat7|======| 6.93%
    tail6|=====| 5.94%
    tree6|=====| 5.94%
    man5|====| 4.95%
    mimedefang.pl5|====| 4.95%
    mutt4|===| 3.96%
    yum4|===| 3.96%
    rpm3|==| 2.97%
    sendmail2|=| 1.98%
    mv2|=| 1.98%
    file2|=| 1.98%
    q1|| 0.99%
    chmod1|| 0.99%
    Ãtail1|| 0.99%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ 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
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$